The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UF - User Diary Index

The Lurker Returns! by LongFist2008-08-28 13:11:45
  Thread jack: regarding post by EnzoMatrix2011-11-07 23:55:38
    Thanks. Let me tell you about it... by LongFist2011-11-08 08:46:33
      A few comments from a EE who hacks firmware... by AndyA2011-11-08 09:37:32
        'only' 1 KHz..? =) by EnzoMatrix2011-11-09 00:53:29
          A/D converts speed would be the limiting issue ;-) by AndyA 2011-11-09 10:03:32
A polling loop would normally be at least 4 instructions in assembler which means 2.5MHz max.
More importantly it means the time taken to respond will be anywhere between 1 and 4 instruction cycles with no method of knowing how long. That indeterminate nature can be a killer at times.
Interrupts aren't instant and response time can vary depending what the CPU is doing but if you give it a high priority on something simple like an AVR it will generally be far better than any polling loop could be.
With the added benefit that you don't need your cpu sitting in a loop doing nothing useful for it to work.

Sure it's only 20MHz but things like timers, A/D captures etc... can all take place in the background with zero CPU cost once you have configured them. All you get is an interrupt once the task is done and the data is ready.

Things like the AVR and PIC also have very active communities.

Like I said, they have their place. If you want to do a one off thing and never touch a micro controller again then they are great. If on the other hand you want to gain experience in how real world products are developed then it's worth learning on the real thing.
[ Reply ]
            Ah, to play with the real thing... by LongFist2011-11-10 09:58:41
            So far anything analog I've done on by EnzoMatrix2011-11-11 00:13:33
              Well, this project is really straightforward, by LongFist2011-11-11 07:02:17
                They actually invented a chip to read thermo- by EnzoMatrix2011-11-14 00:02:36

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)