I have an MP3 development board I picked up from sparkfun that runs off the LPC2148 ARM processor. In looking through the code, I see a function to force a watchdog reset. My question is, how do you figure out what values to feed to the watchdog register? I looked through the LPC2148 data sheet and couldn't figure it out. I don't just want to use other people's code, I want to understand why they did what they did and how they figured out what to do.
Electronic – ARM watchdog reset
armwatchdog
Related Topic
- Electronic – Using LPCxpresso with barebones LPC4337 board
- Electronic – Low power strategy for dealing with spontainious bit flips durring sleep on AVR 8-bit
- Electronic – How to set up SPI using Atmel Studio and C code for ARM processor
- Electronic – Lockup when executing relocated ISR in ARM Cortex-M0+
- Electronic – How to stop/reset the watchdog timer from low-power sleep mode on an STM32L0C8
- Electronic – Is POR Secure Memory/peripherals on ARM common in real hardware just a feature of QEMU
Best Answer
This is the code I use for an LPC2148:
WDTC = 0x00000FFF; // very short timeout
WDMOD = 0x03; // watchdog resets CPU
WDFEED = 0xAA; // start watchdog
WDFEED = 0x55;