mfacen
Member level 1

watchdog pic eprom
I'm designing a entry lock system based on a PIC16F84. The system is working fine but once every few months or so it blocks, I think is due to interference in the mains. I tryied to start using the Watch Dog Timer to reset the microcontroller if it stalls but it resets the chip everytime it tryies to write a new code into the EEPROM even if I use the prescaler to the maximum. I use the EEPROM to store the codes.
Any idea what is causing the Watchdog to reset the chip ? I even used CLRWDT right at the begin of the eeprom write rutine .
I'm designing a entry lock system based on a PIC16F84. The system is working fine but once every few months or so it blocks, I think is due to interference in the mains. I tryied to start using the Watch Dog Timer to reset the microcontroller if it stalls but it resets the chip everytime it tryies to write a new code into the EEPROM even if I use the prescaler to the maximum. I use the EEPROM to store the codes.
Any idea what is causing the Watchdog to reset the chip ? I even used CLRWDT right at the begin of the eeprom write rutine .