Content originally posted in LPCWare by IanB on Wed Jul 23 02:33:32 MST 2014
Thanks for that.
. . and if I want to disable the watchdog in the software, am I correct in thinking that what is it means by saying that "Any subsequent writes to this bit require a valid feed sequence before the change can take effect" is that I should do the feed sequence then reset bit 0 of MOD immediately afterwards:
LDR R3,=LPC_WDT_BASE /* reset watchdog timer */
MOVS R2,#0xAA
STR R2,[R3,FEED]
MOVS R2,#0x55
STR R2,[R3,FEED]
LDR R2,[R3,MOD]
MOVS R1,#0b00000001
BICS R2,R2,R1
STR R2,[R3,MOD]