| Electronic Components Datasheet Search |
|
HT45F0057 Datasheet(PDF) 29 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F0057 Datasheet(HTML) 29 Page - Holtek Semiconductor Inc |
|
29 / 88 page ![]() Rev. 1.00 �8 ��to�e� �0� �01� Rev. 1.00 �9 ��to�e� �0� �01� HT45F0057 Induction Cooker Flash MCU HT45F0057 Induction Cooker Flash MCU Watchdog Timer The Watchdog Timer is provided to prevent program malfunctions or sequences from jumping to unknown locations, due to certain uncontrollable external events such as electrical noise. Watchdog Timer Clock Source The Watchdog Timer clock source is provided by the LIRC or fSYS/4 clock, selected by configuration option. The WDT oscillator has an approximate period of 65μs at a supply voltage of 5V. Note that the oscillation frequency can vary with VDD, temperature and process variations. Another clock source is supplied by fSYS/4. The Watchdog Timer source clock is then subdivided by a ratio of 213 to 216 to give longer timeouts, the actual value being chosen using the configuration option. Note that the LIRC is running during MCU normal mode. Once the device entering power down mode, the LIRC will keep running if the WDT is enabled and stop if the WDT is disabled. Watchdog Timer Operation The Watchdog Timer operates by providing a device reset when its timer overflows. This means that in the application program and during normal operation the user has to strategically clear the Watchdog Timer before it overflows to prevent the Watchdog Timer from executing a reset. This is done using the clear watchdog instructions. If the program malfunctions for whatever reason, jumps to an unknown location, or enters an endless loop, these clear instructions will not be executed in the correct manner, in which case the Watchdog Timer will overflow and reset the device. Most of the Watchdog Timer options, such as enable/disable, Watchdog Timer clock source and clear instruction type are selected using configuration options. There are not any related register. Note that if the Watchdog Timer configuration option has been disabled, then any instruction relating to its operation will result in no operation. Under normal program operation, a Watchdog Timer time-out will initialise a device reset and set the status bit TO. However, if the system is in the Power Down Mode, when a Watchdog Timer time-out occurs, the TO bit in the status register will be set and only the Program Counter and Stack Pointer will be reset. Two methods can be adopted to clear the contents of the Watchdog Timer. The first is using the Watchdog Timer software clear instructions and the second is via a HALT instruction. There are two methods of using software instructions to clear the Watchdog Timer, one of which must be chosen by configuration option. The first option is to use the single “CLR WDT” instruction while the second is to use the two commands “CLR WDT1” and “CLR WDT2”. For the first option, a simple execution of “CLR WDT” will clear the WDT while for the second option, both “CLR WDT1” and “CLR WDT2” must both be executed to successfully clear the Watchdog Timer. Note that for this second option, if “CLR WDT1” is used to clear the Watchdog Timer, successive executions of this instruction will have no effect, only the execution of a “CLR WDT2” instruction will clear the Watchdog Timer. Similarly after the “CLR WDT2” instruction has been executed, only a successive “CLR WDT1” instruction can clear the Watchdog Timer. The maximum time out period is when the 216 division ratio is selected. As an example, with the WDT oscillator as its source clock, this will give a maximum watchdog period of around 4.7μs for the 216 division ratio. If the device operates in a noisy environment, using the WDT oscillator is strongly recommended, since the system clock will be stopped under the power down mode. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |