| 数据搜索系统,热门电子元器件搜索 |
|
ST7LITE3XF2 数据表(PDF) 67 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7LITE3XF2 数据表(HTML) 67 Page - STMicroelectronics |
|
67 / 173 page ![]() ST7LITE3xF2 67/173 DUAL 12-BIT AUTORELOAD TIMER 3 (Cont’d) 11.2.6 Register Description TIMER CONTROL STATUS REGISTER (ATCSR) Read / Write Reset Value: 0x00 0000 (x0h) Bit 7 = Reserved. Bit 6 = ICF Input Capture Flag. This bit is set by hardware and cleared by software by reading the ATICR register (a read access to ATICRH or ATICRL will clear this flag). Writing to this bit does not change the bit value. 0: No input capture 1: An input capture has occurred Bit 5 = ICIE IC Interrupt Enable. This bit is set and cleared by software. 0: Input capture interrupt disabled 1: Input capture interrupt enabled Bits 4:3 = CK[1:0] Counter Clock Selection. These bits are set and cleared by software and cleared by hardware after a reset. They select the clock frequency of the counter. Bit 2 = OVF1 Overflow Flag. This bit is set by hardware and cleared by software by reading the TCSR register. It indicates the tran- sition of the counter1 CNTR1 from FFh to ATR1 value. 0: No counter overflow occurred 1: Counter overflow occurred Bit 1 = OVFIE1 Overflow Interrupt Enable. This bit is read/write by software and cleared by hardware after a reset. 0: Overflow interrupt disabled. 1: Overflow interrupt enabled. Bit 0 = CMPIE Compare Interrupt Enable. This bit is read/write by software and cleared by hardware after a reset. It can be used to mask the interrupt generated when any of the CMPFx bit is set. 0: Output compare interrupt disabled. 1: Output Compare interrupt enabled. COUNTER REGISTER 1 HIGH (CNTR1H) Read only Reset Value: 0000 0000 (000h) COUNTER REGISTER 1 LOW (CNTR1L) Read only Reset Value: 0000 0000 (000h) Bits 15:12 = Reserved. Bits 11:0 = CNTR1[11:0] Counter Value. This 12-bit register is read by software and cleared by hardware after a reset. The counter CNTR1 is incremented continuously as soon as a counter clock is selected. To obtain the 12-bit value, soft- ware should read the counter value in two consec- utive read operations. The CNTR1H register can be incremented between the two reads, and in or- der to be accurate when fTIMER=fCPU, the software should take this into account when CNTR1L and CNTR1H are read. If CNTR1L is close to its high- est value, CNTR1H could be incremented before it is read. When a counter overflow occurs, the counter re- starts from the value specified in the ATR1 regis- ter. 76 0 0 ICF ICIE CK1 CK0 OVF1 OVFIE1 CMPIE Counter Clock Selection CK1 CK0 OFF 0 0 OFF 1 1 fLTIMER (1 ms timebase @ 8 MHz) 0 1 fCPU 10 15 8 0 000 CNTR1_ 11 CNTR1_ 10 CNTR1_ 9 CNTR1_ 8 70 CNTR1_ 7 CNTR1_ 6 CNTR1_ 5 CNTR1_ 4 CNTR1_ 3 CNTR1_ 2 CNTR1_ 1 CNTR1_ 0 1 |
|
链接网址 |
| 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 |