Content originally posted in LPCWare by Ex-Zero on Wed Dec 22 16:12:23 MST 2010
UM10398 17.7.3 Watchdog Feed register (WDFEED - 0x4000 4008)
Quote:
... After writing 0xAA to WDFEED, access to any Watchdog register other than writing 0x55 to WDFEED causes an immediate reset/interrupt when the Watchdog is enabled.
[LEFT]So, if an ISR is executed between this 2 feeding commands, WDT interrupt is executed.:mad:[/LEFT]
[LEFT]To avoid this, you can[/LEFT]
[LEFT]1. disable/enable interrupts before/after WDT Feed[/LEFT]
[LEFT]2. use this 2 commands within ISR (e.g. SysTick) with higher interrupt priority. So UART ISR (with lower priority) can't interrupt them.[/LEFT]