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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/17/01 09:08
Read: times


 
#9421 - Watch dog timer in 8051, doubt?
Hi everybody,

I am working on Philips 8051 microcontroller. It has hardware watch dog. As per its manual I am invoking watchdog in C as follows. I am confused that the same code statement written twice, for loading 2 byte value in the watch dog timer.

How is it working or I am wrong?

See below code for "WDTRST"


void main(void)
{
init_HW();
while(True)
{ /* Never ending loop */
WDTRST = 0x1E;
/* WDT watchdog is fed with 10.66mS time */
WDTRST = 0x1E;
WDTRST = 0xE1;
process();
/* Process any message received on any channel */
}
}




List of 2 messages in thread
TopicAuthorDate
Watch dog timer in 8051, doubt?            01/01/70 00:00      
RE: Watch dog timer in 8051, doubt?            01/01/70 00:00      

Back to Subject List