| Electronic Components Datasheet Search |
|
AT89C5132-ROTIL Datasheet(PDF) 51 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT89C5132-ROTIL Datasheet(HTML) 51 Page - ATMEL Corporation |
|
51 / 182 page ![]() 51 4173E–USB–09/07 AT89C5132 12.3.2 Mode 1 (16-bit Timer) Mode 1 configures Timer 0 as a 16-bit Timer with TH0 and TL0 registers connected in cascade (see Figure 12-4). The selected input increments TL0 register. Figure 12-5 gives the overflow period calculation formula when in timer mode. Figure 12-4. Timer/Counter x (x = 0 or 1) in Mode 1 Figure 12-5. Mode 1 Overflow Period Formula 12.3.3 Mode 2 (8-bit Timer with Auto-Reload) Mode 2 configures Timer 0 as an 8-bit Timer (TL0 register) that automatically reloads from TH0 register (see Table 42). TL0 overflow sets TF0 flag in TCON register and reloads TL0 with the contents of TH0, which is preset by software. When the interrupt request is serviced, hardware clears TF0. The reload leaves TH0 unchanged. The next reload value may be changed at any time by writing it to TH0 register. Figure 12-7 gives the autoreload period calculation formula when in timer mode. Figure 12-6. Timer/Counter x (x = 0 or 1) in Mode 2 Figure 12-7. Mode 2 Autoreload Period Formula 12.3.4 Mode 3 (Two 8-bit Timers) Mode 3 configures Timer 0 such that registers TL0 and TH0 operate as separate 8-bit Timers (see Figure 12-8). This mode is provided for applications requiring an additional 8-bit Timer or TRx TCON Reg TFx TCON Reg 0 1 GATEx TMOD Reg Overflow Timer x Interrupt Request C/Tx# TMOD Reg TLx (8 Bits) THx (8 Bits) INTx Tx TIMx CLOCK ÷ 6 6 ⋅ (65536 – (THx, TLx)) TFx PER= FTIMx TRx TCON Reg TFx TCON Reg 0 1 GATEx TMOD Reg Overflow Timer x Interrupt Request C/Tx# TMOD Reg TLx (8 Bits) THx (8 Bits) INTx Tx TIMx CLOCK ÷ 6 TFx PER= FTIMx 6 ⋅ (256 – THx) |
|
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 |