English
Language : 

DS87C550 Datasheet, PDF (29/50 Pages) Dallas Semiconductor – EPROM High-Speed Micro with A/D and PWM
WATCHDOG TIMEOUT VALUES Table 8
INTERRUPT TIMEOUT (CLOCKS)
4X/ 2X
1
0
x
x
x
CD1:0
00
00
01
10
11
WD1:0=00
215
216
217
217
225
WD1:0=01
218
219
220
220
228
WD1:0=10
221
222
223
223
231
WD1:0=11
224
225
226
226
234
DS87C550
WD1:0=00
215+512
216+512
217+512
217+512
225+512
RESET TIME-CLOCKS
WD1:0=01
218+512
219+512
220+512
220+512
228+512
WD1:0=10
221+512
222+512
223+512
223+512
231+512
WD1:0=11
224+512
225+512
226+512
226+512
234+512
The watchdog timer uses the internal system clock as a time base so its timeout periods are very accurate.
From the table, it can be seen that for a 33 MHz crystal frequency, the watchdog timer is capable of
producing timeout periods from 3.97 ms (2 17 * 1/33 MHz) to over two seconds (2.034 = 226 * 1/33 MHz)
with the default setting of CD1:0 (=10). This wide variation in timeout periods allows very flexible
system implementation.
In a typical initialization, the user selects one of the possible counter values to determine the timeout.
Once the counter chain has completed a full count, hardware will set the interrupt flag
(WDIF=WDCON.3). There is no hardware support for a watchdog interrupt, but this flag may be polled
to determine if the timeout period has been completed. Regardless of whether the software makes use of
this flag, there are then 512 clocks left until the reset flag (WTRF=WDCON.2) is set. Software can
enable (1) or disable (0) the reset using the Enable Watchdog Reset (EWT=WDCON.1) bit. Note that the
watchdog is a free running timer and does not require an enable.
POWER-FAIL RESET
The DS87C550 incorporates an internal precision band-gap voltage reference which, when coupled with a
comparator circuit, provides a full power-on and power-fail reset function. This circuit monitors the
processor’s incoming power supply voltage (VCC) and holds the processor in reset while V CC is out of
tolerance. Once VCC has risen above VRST, the DS87C550 will restart the oscillator for the external
crystal and count 65,536 clock cycles before program execution begins at location 0000h. This power
supply monitor will also invoke the reset state when V CC drops below the threshold condition. This reset
condition will remain while power is below the minimum voltage level. When power exceeds the reset
threshold, a full power-on reset will be performed. In this way, this internal voltage monitoring circuitry
handles both power-up and power down conditions without the need for additional external components.
The processor exits the reset condition automatically once V CC meets VRST. This helps the system
maintain reliable operation by only permitting processor operation when its supply voltage is in a known
good state. Software can determine that a Power-On Reset has occurred by checking the Power-On Reset
flag (POR=WDCON.6). Software should clear the POR bit after reading it.
The Reset pin of the DS87C550 is both an input and an output. When the processor is being held in reset
by the power-fail detection circuitry, the reset pin will be actively pulled high by the processor, and can
therefore be used as an input to other external devices.
POWER-FAIL INTERRUPT
The band-gap voltage reference that sets a precise reset threshold also generates an optional early warning
Power-fail Interrupt (PFI). When enabled by software, the processor will vector to ROM address 0033h if
VCC drops below VPFW. PFI has the highest priority. The PFI enable is in the Watchdog Control SFR
(EPFI=WDCON.5). Setting this bit to a logic 1 will enable the PFI. Application software can also read
the PFI flag at WDCON.4. A PFI condition sets this bit to a 1. The flag is independent of the interrupt
enable and software must manually clear it.
29 of 50