| 数据搜索系统,热门电子元器件搜索 |
|
STC89LE52RC 数据表(PDF) 101 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC89LE52RC 数据表(HTML) 101 Page - STCmicro Technology Co,.Ltd |
|
101 / 165 page ![]() Timer 2 Interrupt SYSclk TF2 control C/T2=0 C/T2=1 T2 Pin T2EX Pin MCU in 12T mode MCU in 6T mode TL2 (8 Bits) RCAP2L Timer 2 in Capture Mode ÷12 ÷6 TR2 TH2 (8 Bits) RCAP2H EXF2 Transition Detector control EXEN2 capture Auto-Reload Mode In 16-bit auto-reload mode, Timer 2 can be configured to count up or down. The counting direction is determined by DCEN in special function register T2MOD and T2EX pin. If DCEN=0, counting up. If DCEN=1, the counting direction is determined by T2EX pin. If T2EX=1, counting up, otherwise counting down. The following figure shows DCEN=0, which enables Timer 2 to count up automatically. In this mode there are two options selected by bit EXEN2 in T2CON register. If EXEN2=0, then Timer 2 counts up to 0FFFFH and sets the TF2 (Overflow Flag) bit upon overflow. This causes the Timer 2 registers to be reloaded with the 16-bit value in RCAP2L and RCAP2H. The values in RCAP2L and RCAP2H are preset by firmware. If EXEN2=1, then a 16-bit reload can be triggered either by an overflow or by a 1-to-0 transition at input T2EX. This transition also sets the EXF2 bit. The Timer 2 interrupt, if enabled, can be generated when either TF2 or EXF2 are 1. Timer 2 Interrupt SYSclk TF2 control C/T2=0 C/T2=1 T2 Pin T2EX Pin MCU in 12T mode MCU in 6T mode TL2 (8 Bits) RCAP2L Timer 2 in Auto-Reload Mode (DCEN=0) ÷12 ÷6 TR2 TH2 (8 Bits) RCAP2H EXF2 Transition Detector control EXEN2 reload 101 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |