| поискавой системы для электроныых деталей |
|
PC87591L датащи(PDF) 165 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
PC87591L датащи(HTML) 165 Page - National Semiconductor (TI) |
|
165 / 437 page ![]() Embedded Controller Modules (Continued) Revision 1.07 165 www.national.com Pre-Scale A pre-scale counter divides the input clock (32.768 KHz) by a factor of 2MDIV. MDIV in TWCP register is in the range of 0 through 5 (i.e., divide ratio of 1:1 through 1:32). The pre-scaled output is used as an input clock for a 16-bit timer (TWDT0) and is referred to as T0IN. TWD Timer 0 TWD Timer 0 is a 16-bit, programmable, automatically re-triggered down-counter. It counts on the rising edge of T0IN. It starts from the value loaded to TWDT0 register down to zero and then restarts counting from TWDT0 at the next T0IN cycle. When the counter reaches 0, T0OUT is set (1) for one T0IN cycle. This makes the Timer 0 cycle: (TWDT0 + 1) x T0IN-cycle. T0OUT is input to the ICU and can be used as the time base for activities such as system tick. When TWDT0 is loaded with a new value, the counter uses it the next time it restarts counting (i.e., after reaching zero). If RST in Timer Control register (T0CSR) is written 1, the timer is restarted on the next rising edge of T0IN. Notes: ● RST bit in T0CSR register is cleared after completing this load. ● When MDIV in TWCP register is 0, the timer counter may skip one count when loaded with a new value. WATCHDOG Operation The WATCHDOG is an 8-bit down counter, operating on the rising edge of its currently selected clock source. On reset, it is disabled (i.e., it does not count and no WATCHDOG signal is generated). A write to the WATCHDOG Count register (WDCNT) or the WATCHDOG Service Data Match (WDSDM) register either starts the counter or, if WATCHDOG is already running, performs a restart (“touch”) operation. Once the WATCHDOG is counting down, only a reset can stop it. Writing to WDCNT register is enabled while LWDCNT in TWCFG register is 0. A write to WDCNT starts the WATCHDOG, and it begins counting down from the written value. If the service on data match is enabled (WDSDME in TWCFG register is 1), writing to WDSDM register with 5C16 restarts the WATCHDOG counter from the value stored in WDCNT. A WATCHDOG signal is triggered if one of the following occurs: ● The counter reaches zero (too late service). ● The WATCHDOG is written to more than once per WATCHDOG clock cycle for the currently selected clock (too early service). Writing to the WATCHDOG more than once per three WATCHDOG clock cycles (for the currently selected clock) may cause the WATCHDOG signal to trigger. ● Data other than 5C16 is written to WDSDM when WDSDME in TWCFG register is 1. WATCHDOG Clock Source Selection Select the clock source as follows: ● WDCT01 bit in TWCFG register is 0: T0OUT ● WDCT01 bit in TWCFG register is 1: T0IN Changing the WATCHDOG clock source may cause it to gain or lose one clock cycle. Notes: ● When MDIV in TWCP register is 0, the WATCHDOG counter may skip one count when loaded with a new value. ● After activating WATCHDOG, avoid entering Idle mode in the first four low-frequency clock cycles. TWD Control and Configuration The TWD Configuration register (TWCFG) allows you to: ● Set the WATCHDOG clock source: T0IN or T0OUT ● Enable WATCHDOG service on write to WDSDM register ● Define which of TWCFG, TWCPR, TWDT0, T0CSR and WDCNT is locked. Once LTWCFG, LTWCP, LTWDT0 or LWDCNT, in TWCFG register, is set its respective resources are locked and can be cleared only by reset. Setting any of these registers prevents runaway software from tampering with the respective WATCH- DOG function. Operation in Idle Mode The TWD is active in Idle mode: the counters continue to function, and interrupts and error signals are issued. Write operations to TWCP, TWDT0 and WDCNT may be delayed by up to three 32.768 KHz clock cycles. The software should avoid entering Idle mode during this period. WDTLD bit in T0CSR register indicates when it is safe to switch power modes. |
|
ссылки 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 |