Atmel AT91M55800A Answering Machine User Manual


 
94
1745D–ATARM–04-Nov-05
AT91M55800A
14.0.5 WD Status Register
Name: WD_SR
Access: Read-only
Reset Value: 0x0
Offset: 0x0C
WDOVF: Watchdog Overflow (Code Label WD_WDOVF)
0 = No watchdog overflow.
1 = A watchdog overflow has occurred since the last restart of the watchdog counter or since internal or external reset.
14.0.6 WD Enabling Sequence
To enable the Watchdog Timer, the sequence is as follows:
1. Disable the Watchdog by clearing the bit WDEN:
Write 0x2340 to WD_OMR
This step is unnecessary if the WD is already disabled (reset state).
2. Initialize the WD Clock Mode Register:
3. Write 0x373C to WD_CMR
(HPCV = 15 and WDCLKS = MCK/8)
4. Restart the timer: Write 0xC071 to WD_CR
5. Enable the watchdog:
Write 0x2345 to WD_OMR (interrupt enabled)
31 30 29 28 27 26 25 24
––––––––
23 22 21 20 19 18 17 16
––––––––
15 14 13 12 11 10 9 8
––––––––
76543210
–––––––
WDOVF