| 数据搜索系统,热门电子元器件搜索 |
|
STLC1502 数据表(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STLC1502 数据表(HTML) 32 Page - STMicroelectronics |
|
32 / 81 page ![]() STLC1502 32/81 7.1 Timer The Timer module connects to the Advanced Peripheral Bus. Figure 9: Timer block diagram This implementation consists of two major sections comprising: • All the control logic • Two instantiations of the free-running counters (FRCs) The timer module has a series of memory-mapped locations that allow the state of the timer module to be read from and written to via the APB. 7.1.1 Timer introduction Two timers are defined and can be selected by the Control register: • Free-running mode:The timer wraps after reaching its zero value, and continues to count down from the maximum value. • Periodic timer mode:The counter generates an interrupt at a constant interval. 7.1.2 Timer operation The timer is loaded by writing to the load register and, if enabled, counts down to zero. When zero is reached, an interrupt is generated. The interrupt may be cleared by writing to the Clear register. After reaching a zero count, if the timer is operating in free-running mode it continues to decrement from its max- imum value. If periodic timer mode is selected, the timer reloads from the load register and continues to decre- ment. In this mode the timer effectively generates a periodic interrupt. The mode is selected by a bit in the Control register. At any point, the current timer value may be read from the Value register. The timer is enabled by a bit in the control register. At reset, the timer is disabled, the interrupt is cleared and the Load register is undefined. The mode and prescale values are also undefined. CKTIMER PWDATA [15:0] PA[15:0] PWRITE PENABLE BnRES DSEL_TIMER INTCT1 INTCT2 Prescaler Load Registers Control Registers Control Logic Control Section FRC - Free Running counter FRC - Free Running counter Timer Section PRDATA [15:0] INTCT3 INTCT4 To PIC To EDM |
|
链接网址 |
| 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 |