| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SH33F2801P/032PR bảng dữ liệu(PDF) 73 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH33F2801P/032PR bảng dữ liệu(HTML) 73 Page - SINOWEALTH Electronic Ltd |
|
73 / 407 page ![]() SH33F2801 73 11. Watchdog Timer (WDT) 11.1 Independent Watchdog Timer (IWDT) The independent watchdog (IWDG) is clocked by its own dedicated low-speed clock (LSI) and thus stays active even if the main clock fails. If the IWDT feature is enabled through the customer option "OP_IWDT", the watchdog is automatically enabled at power-on, and will generate a reset unless the IWDT_CLR register is written by the software before the counter reaches end of count. If the IWDT feature is disabled through the customer option "OP_IWDT", the watchdog can be turned on in the program via the control bit IWDTON@IWDT_CR by software. When the independent watchdog is enabled, the counter starts down-count operation from the reset value of IWDTRLR@IWDT_CR. When it reaches the end of count value (0x000) a reset signal is generated (IWDG reset) and the IWDTRSTF@RCC_CSR flag will be set. Before the timer overflows, the counter is restarted by writing 0xAAAA to the dog feeding register IWDT_CLR to update the counter and then avoid overflow. If the IWDT is on, it can’t be off by software. IWDT can operate in stop mode, so it can be used as a wake-up timer. The code option OP_WDTPD can be used to select whether to turn the watchdog on or off during the stop mode (turned on in stop mode by default). The independent watchdog timer is a 12-bit decreasing counter with a separate built-in RC oscillator as its clock source, and the default overflow time is 4096*32/128 = 1024ms. Of course due to the inaccuracy of LSI, this overflow time is also inaccurate. When the microcontroller enters debug mode (The core halted), the IWDG counter either continues to work normally or stops, depending on DBG_IWDT@ DBGCR configuration bit. 11.2 Window Watchdog Timer(WWDT) The window watchdog (WWDG) clock is prescaled from the APB clock and has a configurable time-window that can be programmed to detect abnormally late or early application behavior. It is suitable for applications that work in a precise timing window. A reset signal is generated when the window watchdog is refreshed too early or too late. The window watchdog is an 8-bit decreasing counter. The dog feeding area is a window area. Feeding the dog earlier than the window dog feeding area will generate an advanced abnormal event. Feeding the dog later than the window dog feeding area will generate a delayed abnormal event. In both cases, a reset will be caused. In addition, when the counter reaches the lower boundary of the window feeding dog area, it is the latest feeding time, and the WWDT interrupt can be applied. The lower boundary of the WWDT window in SH33F2801 is fixed to 0. When the counter of WWDT is 0, the WWDT interrupt occurs(if INT is enabled). In the handle, feeding the dog must be done in one WWDT cycle. If not, a reset is generated when the counter reaches 0xFF. The window watchdog is turned on in WWDT_CR. Once turned on, it can be turned off only when it is reset. The window watchdog’s working clock is PCLK. WT t1 t2 time Counter Latest Feeding Time Delayed Abnormal Area Advanced Abnormal Area The Window of Feeding Dog RL 0 Figure11-1 Window Watchdog Diagram When applying WWDT, first set the WWDT window reload value WWDTRLR (labeled RL in the figure) and the window value WWDTWTR (labeled WT in the figure), then turn on WWDT, and the counter starts running (counter is initially the reload value, down-count operation). In the normal dog feeding area, the dog is fed by writing 0x5555 to the dog feeding register WWDTCLR. By setting RL>WT, the normal window monitoring function can be achieved, and advanced abnormality and delayed abnormality can be monitored. If RL<=WT is set, there is no advanced abnormality monitoring function, leaving only delayed abnormality monitoring function, and the function is similar to ordinary watchdog. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |