Auto Page CPX-3600 Specifikace Strana 78

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 243
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 77
Watchdog timer (WDG) ST72321xx-Auto
78/243 Doc ID 13829 Rev 1
Figure 31. Watchdog block diagram
10.4 How to program the watchdog timeout
Figure 32 shows the linear relationship between the 6-bit value to be loaded in the
Watchdog Counter (CNT) and the resulting timeout duration in milliseconds. This can be
used for a quick calculation without taking the timing variations into account. If more
precision is needed, use the formulae in Figure 33.
Caution: When writing to the WDGCR register, always write 1 in the T6 bit to avoid generating an
immediate reset.
Figure 32. Approximate timeout duration
RESET
WDGA
6-BIT DOWNCOUNTER (CNT)
f
OSC2
T6 T0
WDG PRESCALER
WATCHDOG CONTROL REGISTER (WDGCR)
DIV 4
T1T2T3T4T5
12-BIT MCC
RTC COUNTER
MSB
LSB
DIV 64
0611
MCC/RTC
TB[1:0] bits
(MCCSR
Register)
5
CNT Value (hex.)
Watchdog timeout (ms) @ 8 MHz f
OSC2
3F
00
38
128
1.5 65
30
28
20
18
10
08
503418 82 98 114
Zobrazit stránku 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 242 243

Komentáře k této Příručce

Žádné komentáře