| Zakładka z wyszukiwarką danych komponentów |
|
ST7MC1K2 Arkusz danych(PDF) 87 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7MC1K2 Arkusz danych(HTML) 87 Page - STMicroelectronics |
|
87 / 371 page ![]() Obsolete Product(s) - Obsolete Product(s) ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto On-chip peripherals 87/371 Figure 30. Watchdog block diagram The application program must write in the WDGCR register at regular intervals during normal operation to prevent an MCU reset. This operation must occur only when the counter value is lower than the window register value. The value to be stored in the WDGCR register must be between FFh and C0h (see Figure 31). Enabling the watchdog When software watchdog is selected (by option byte), the watchdog is disabled after a reset. It is enabled by setting the WDGA bit in the WDGCR register, then it cannot be disabled again except by a reset. When hardware watchdog is selected (by option byte), the watchdog is always active and the WDGA bit is not used. Controlling the downcounter This downcounter is free-running and counts down even if the watchdog is disabled. When the watchdog is enabled, the T6 bit must be set to prevent generating an immediate reset. The T[5:0] bits contain the number of increments which represent the time delay before the watchdog produces a reset (see Figure 31: Approximate timeout duration). The timing varies between a minimum and a maximum value due to the unknown status of the prescaler when writing to the WDGCR register (see Figure 32). The window register (WDGWR) contains the high limit of the window: To prevent a reset, the downcounter must be reloaded when its value is lower than the window register value and greater than 3Fh. Figure 33 describes the window watchdog process. Reset WDGA 6-bit downcounter (CNT) T6 T0 Watchdog control register (WDGCR) T1 T2 T3 T4 T5 - W6 W0 Watchdog window register (WDGWR) W1 W2 W3 W4 W5 Comparator = 1 when T6:0 > W6:0 CMP Write WDGCR WDG prescaler Div 4 fOSC2 12-bit MCC RTC counter MSB LSB Div 64 0 5 6 11 MCC/RTC TB[1:0] bits (MCCSR register) Obsolete Product(s) - Obsolete Product(s) |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |