I am facing difficulty using watchdog timer for lpc2214.I feed the watchdog(0xaa,0x55) once every scan cycle, which is around 20ms.I have five interrupts enabled;but the wd resets controller periodically . watchdog timeout is around 2sec. Are there any special precations to be taken to avoid interrupts during watchdog feeding sequence.
Are there any special precations to be taken to avoid interrupts during watchdog feeding sequence. my best guess ios you do not apply KISS (Keep Isrs Short and Simple). If you have ANY ISR taking more than, say, 100us you WILL be in trouble, not only with the puppy. Also, any7 ISR that get invoked very frequently should be even shorter. Erik
more... The time between feeding the puppy is the time spent in main() plus the time taken to execute each and every invocation of each and every ISR while main() get from a feeding to the next. Erik
Hello, I'd suggest you read these two FAQs from ARM: http://www.arm.com/support/faqip/3677.html and this: http://www.arm.com/support/faqip/3678.html Then, there is Philips' AppNote AN10414, if you haven't already got it: http://www.standardics.philips.com/support/faq/microcontrollers/lpc2000/core/ (bottom of the page) ARM's FAQ deal with ARM7TDMI-S specifics of latching interrupt while disabling it. The AN10414 is about VIC PL190 issues. Hope this helps.