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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/12/09 10:16
Read: times


 
#168335 - be precise
Responding to: ???'s previous message
The crystal is most probably 11.0592MHz rather than just 11.05, isn't it? You want precise timing so you must be precise in your terms, too.

With autoreloaded timer, you need to set TH only once, at the beginning, before the first loop. You don't want to start and stop the timer, but leave it running freely. If you set TH to reload value 0, the frequency of the timer overflow will be 11059200/12/256=3600Hz. So, if you count 3600 overflows, that will give you an exact 1 second timing.

JW

List of 6 messages in thread
TopicAuthorDate
8 bit auto reload            01/01/70 00:00      
   what crystal frequency?            01/01/70 00:00      
      11.05 Mhz            01/01/70 00:00      
         be precise            01/01/70 00:00      
   what happen at MOV R3,#250H            01/01/70 00:00      
      250            01/01/70 00:00      

Back to Subject List