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

Back to Subject List

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


 
#180052 - Watchdog rate?
Responding to: ???'s previous message
Hitesh Mahant said:
I am using Atmel's AT89S8253

Always helpful to post a link to the Datasheet: http://www.atmel.com/dyn/resou...oc3286.pdf

watchdog I am recalling at 2.5msec with help of counter.

I said:
Are you sure that isn't interfering with your buzzer beeps and serial IO?

I mean, do you really need to refresh the watchdog that often?


Hitesh Mahant said:
stlwd: mov wdtcon, #0a4h 
  lwd: mov wdtrst, #01eh 
       mov wdtrst, #0e1h 
       ret 

You'd help yourself & others by using meaningful named constants rather than "magic numbers" like this!

And, where a register is a bitmap, write the value in binary!

If I understand correctly, you are setting the watchdog timeout to about 512ms - so a refresh rate of 2.5ms does seem excessive?



List of 8 messages in thread
TopicAuthorDate
problem with watchdog of 8253            01/01/70 00:00      
   oscillator starts at wrong frequency?            01/01/70 00:00      
      Watchdog rate?            01/01/70 00:00      
   example            01/01/70 00:00      
      How to post formatted source code            01/01/70 00:00      
   Not a good way to handle a watchdog!            01/01/70 00:00      
   If I recall            01/01/70 00:00      
   Avoid the AT89S8253...            01/01/70 00:00      

Back to Subject List