Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/24/09 07:53
Read: times


 
#163812 - A bit too hard
Responding to: ???'s previous message
More specifically: Don't juse a high-level language to implement the delays with just a busy-loop with a magic loop count.

C is ok to use when the delay is long enough that it is meaningful to poll a hw timer or use an interrupt handler. And better C compilers should have correctly handled nop constructs to implement minimum delays (no guaranteed upper bound) of a number of instruction cycle lengths, for example when toggling a processor pin.

But a HLL should never be used to generate loops of fixed length without "binding" the timing to some hardware of known speed.

List of 5 messages in thread
TopicAuthorDate
EEPROM 25AA1024 and 8051            01/01/70 00:00      
   do You really need delays?            01/01/70 00:00      
   Do NOT write delay loops in 'C'            01/01/70 00:00      
      A bit too hard            01/01/70 00:00      
   Duplicate thread!            01/01/70 00:00      

Back to Subject List