| Electronic Components Datasheet Search |
|
HMS91C8032 Datasheet(PDF) 48 Page - Hynix Semiconductor |
|
|
|||||||||||||||||||||||||||||
HMS91C8032 Datasheet(HTML) 48 Page - Hynix Semiconductor |
|
48 / 157 page ![]() HMS91C8032/97C8032 NOV., 2001 Ver 1.02 45 Timer 2 In addition to timer/counter 0, 1, 3 and 4 of the HMS9XC8032, the HMS9XC8032 contains timer/counter 2. Like timer 0, 1, 3 and 4, timer 2 can operate as either an event timer or as an event counter. This is selected by bit C/T2 in the special function regis- ter T2CON (see Figure 4-9). It has three operating modes: cap- ture, auto-load, and baud rate generator, which are selected by bits in the T2CON as shown in Table 4-24.In the Capture Mode there are two options which are selected by bit EXEN2 in T2CON. if EXEN2 = 0, then Timer 2 is a 16-bit timer or counter which upon overflowing sets bit TF2, the Timer 2 overflow bit, which can be used to generate an interrupt. If EXEN2 = 1, then Timer 2 still does the above, but with the added feature that a 1-to-0 transition at external input T2EX causes the current value in the Timer 2 registers, TL2 and TH2, to be captured into regis- ters RCAP2L and RCAP2H, respectively. In addition, the transi- tion at T2EX causes bit EXF2 in T2CON to be set, and EXF2 like TF2 can generate an interrupt. The Capture Mode is illustrated in Figure 4-10. In the auto-reload mode, there are again two options, which are selected by bit EXEN2 in T2CON. If EXEN2 = 0, then when Timer 2 rolls over it not only sets TF2 but also causes the Timer 2 registers to be reloaded with the 16-bit value in registers RCAP2L and RCAP2H, which are preset by software. If EXEN2 = 1, then Timer 2 still does the above, but with the added feature that a 1-to-0 transition at external input T2EX will also trigger the 16-bit reload and set EXF2. The auto-reload mode is illustrated in Standard Serial Interface (UART)Figure 4-11. The baud rate generation mode is selected by RCLK = 1 and/or TCLK = 1. It will be described in conjunction with the serial port. Figure 4-7 Timer/Counter Mode 2: 8-bit Auto-reload TL1 (8-Bits) osc. 12 T1 Pin Control TH1 (8-Bits) TF1 TR1 Gate Reload Interrupt C/ = 0 T C/ = 1 Pin INT1 T ÷÷ 6 fCPU Figure 4-8 Timer/Counter Mode 3: Two 8-bit Counters TL0 (8-Bits) osc. 12 T0 Pin Control TF0 TR0 Gate Interrupt C/ = 0 T C/ = 1 T Pin INT0 TH0 (8-Bits) TF1 Interrupt Control TR1 osc. 12 ÷ ÷ ÷ 6 ÷ 6 fCPU ÷ 6 fCPU |
|
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 |