| поискавой системы для электроныых деталей |
|
CR16MFS5 датащи(PDF) 42 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
CR16MFS5 датащи(HTML) 42 Page - National Semiconductor (TI) |
|
42 / 99 page ![]() www.national.com 42 13.0 Real-Time Timer and WATCHDOG The Timing and WATCHDOG Module (TWM) generates the clocks and interrupts used for timing periodic functions in the system, and also provides Watchdog protection against soft- ware errors. The module operates off the slow clock either generated by the external 32kHz oscillator or from the pres- caled high speed system clock. The maximum operating clock frequency is 100kHz. The WATCHDOG is designed to detect program execution errors. Once WATCHDOG operation is initiated, the software must periodically write a specific value to a WATCHDOG reg- ister. If the software fails to do so, a WATCHDOG error is trig- gered, which resets the device. The TWM is flexible in allowing selection of a variety of clock ratios and clock sources for the WATCHDOG circuit. Once the software configures the TWM, it can lock the configura- tion for a higher level of protection against erroneous soft- ware action. Once locked, the TWM can be released only by a device reset. 13.1 TWM STRUCTURE Figure9 is a block diagram showing the internal structure of the Timing and WATCHDOG module. There are two main sections: the Real-Time Timer (T0) section at the top and the WATCHDOG section on the bottom. All counting activities of the module are based on the slow clock (SLCLK). A prescaler counter divides this clock to make a slower clock. The prescaler factor is defined by a 3- bit field in the Timer and WATCHDOG Prescaler register, which selects either 1, 2, 4, 8, 16, or 32 and the divide-by fac- tor. Thus, the prescaled clock period can be set to 1, 2, 4, 8, 16, or 32 times the slow clock period. The prescaled clock signal is called T0IN. 13.2 TIMER T0 OPERATION Timer T0 is a programmable 16-bit down counter that can be used as the time base for real-time operations such as a pe- riodic audible tick. It can also be used to drive the WATCH- DOG circuit. The timer starts counting from the value loaded into the TWMT0 register and counts down on each rising edge of T0IN. When the timer reaches zero, it is automatically reload- ed from the TWMT0 register and continues counting down from that value. Thus, the frequency of the timer is: fSLCLK / [ (TWMT0+1) * prescaler ] When an external crystal oscillator is used as the SLCLK source or when the fast clock is divided accordingly, fSLCLK is 32.768 kHz. The value stored in TWMT0 can range from 0001 hex to FFFF hex. Figure 9. Timing and WATCHDOG Module Block Diagram (TWCP) 16-bit Timer (Timer0) 5-bit pre-scaler counter WATCHDOG Timer Peripheral Bus CLKIN1 T0OUT WATCHDOG ERROR TWMT0 register WDCNT WDSDM WATCHDOG Service Logic Restart Underflow T0CSR Contrl. Reg. Restart Underflow T0LINT WDERR (to ICU) (to Multi-Input- Wake-up) slow clock from dual clock and reset module REAL TIME TIMER (T0) WATCHDOG T0IN |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |