99/317
5 - Peripherals
05-EI311
Note: Although the pins of the ports may be individually selected as interrupt inputs, the direc-
tion of the edge or the active level is selected by groups in the Miscellaneous Register. This
implies that the electrical schematic takes this into account, and that signals that are rising-
edge active be wired to a different group from those either falling-edge active or level-active
5.4 WATCHDOG TIMER
5.4.1 Aim of the watchdog
The watchdog timer is a safety device rather than a peripheral. Its purpose is not to handle ex-
ternal events, but to detect and correct internal malfunctions. However, it is implemented just
like a peripheral, and this is why it has been included in this chapter with the peripherals.
A microcontroller, or any programmed machine, is not an electronic brain, in spite of how it
was first introduced. Rather, it is an automaton that has a precise job to perform, taking into
account events and conditions that are considered when the program is written. However, not
all events can be taken into account; some occurrences are even neglected, since they are
supposed to never happen. Rightly or wrongly, the code is thus made shorter. If, however, ei-
ther because the programmer made a mistake or because a hardware failure produced an un-
PEI3 PEI2
PEI1 PEI0
MC0
-
-
SMS
ST72311
0
0
1
0
0
1
1
1
Falling edge and low level (reset state)
Falling edge only
Rising edge only
Rising and falling edge
External interrupt polarity Options EI0, EI1, EI2 and EI3
of the Miscellaneous register
EI3: Pb4-Pb7
Vector address:
FFF0-FFF1
EI1: Pf0-P f2
Vector address:
FFF4-FFF5
E I2: P b0-Pb3
Vector address:
FFF2-FFF 3
EI0: Pa0-Pa3
Vector address:
FFF6-FFF7
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...