Feed Sequence - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Figure 50
13-bit prescaler, and an 8-bit down counter. The down counter is clocked (decremented)
by a tap taken from the prescaler. The clock source for the prescaler is either PCLK or the
watchdog oscillator selected by the WDCLK bit in the WDCON register. (Note that
switching of the clock sources will not take effect immediately - see
The watchdog asserts the watchdog reset when the watchdog count underflows and the
watchdog reset is enabled. When the watchdog reset is enabled, writing to WDL or
WDCON must be followed by a feed sequence for the new values to take effect.
If a watchdog reset occurs, the internal reset is active for at least one watchdog clock
cycle (PCLK or the watchdog oscillator clock). If CCLK is still running, code execution will
begin immediately after the reset cycle. If the processor was in Power-down mode, the
watchdog reset will start the oscillator and code execution will resume after the oscillator
is stable.
Table 101: Watchdog timer configuration
WDTE WDSE FUNCTION
0
1
1
Watchdog
÷ 32
oscillator
PCLK
WDCLK after a
Watchdog feed
sequence
PRE2
PRE1
DECODE
PRE0
Fig 48. Watchdog Prescaler.

16.2 Feed sequence

The watchdog timer control register and the 8-bit down counter (See
directly loaded by the user. The user writes to the WDCON and the WDL SFRs. At the end
of a feed sequence, the values in the WDCON and WDL SFRs are loaded to the control
register and the 8-bit down counter. Before the feed sequence, any new values written to
User manual
shows the watchdog timer in watchdog mode. It consists of a programmable
x
The watchdog reset is disabled. The timer can be used as an internal timer and
can be used to generate an interrupt. WDSE has no effect.
0
The watchdog reset is enabled. The user can set WDCLK to choose the clock
source.
1
The watchdog reset is enabled, along with additional safety features:
1. WDCLK is forced to 1 (using watchdog oscillator)
2. WDCON and WDL register can only be written once
3. WDRUN is forced to 1
÷ 2
÷ 2
÷ 32
÷ 64
÷ 128
000
001
010
011
100
101
110
111
Rev. 03 — 7 June 2005
÷ 2
÷ 2
÷ 2
÷ 256
÷ 512
÷ 1024
÷ 2048
UM10119
P89LPC938 User manual
Section
16.3).
÷ 2
÷ 2
÷ 4096
TO WATCHDOG
DOWN COUNTER
(after one prescaler
count delay)
002aaa938
Figure
49) are not
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
106 of 139

Advertisement

Table of Contents
loading

Table of Contents