beautypg.com

Wd enabling sequence – Rainbow Electronics AT75C310 User Manual

Page 121

background image

AT75C310

121

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:

Write 0x373C to WD_CMR
(HPCV = 15 and WDCLKS = MCK/8)

3.

Restart the timer:

Write 0xC071 to WD_CR

4.

Enable the watchdog:

Write 0x2345 to WD_OMR (interrupt enabled)