| 数据搜索系统,热门电子元器件搜索 |
|
PIC16F1507-E/SS. 数据表(PDF) 131 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F1507-E/SS. 数据表(HTML) 131 Page - Microchip Technology |
|
131 / 278 page ![]() 2011-2015 Microchip Technology Inc. DS40001586D-page 131 PIC16(L)F1507 16.0 TIMER0 MODULE The Timer0 module is an 8-bit timer/counter with the following features: • 8-bit timer/counter register (TMR0) • 3-bit prescaler (independent of Watchdog Timer) • Programmable internal or external clock source • Programmable external clock edge selection • Interrupt on overflow • TMR0 can be used to gate Timer1 Figure 16-1 is a block diagram of the Timer0 module. 16.1 Timer0 Operation The Timer0 module can be used as either an 8-bit timer or an 8-bit counter. 16.1.1 8-BIT TIMER MODE The Timer0 module will increment every instruction cycle, if used without a prescaler. 8-bit Timer mode is selected by clearing the TMR0CS bit of the OPTION_REG register. When TMR0 is written, the increment is inhibited for two instruction cycles immediately following the write. 16.1.2 8-BIT COUNTER MODE In 8-Bit Counter mode, the Timer0 module will increment on every rising or falling edge of the T0CKI pin. 8-Bit Counter mode using the T0CKI pin is selected by setting the TMR0CS bit in the OPTION_REG register to ‘1’. The rising or falling transition of the incrementing edge for either input source is determined by the TMR0SE bit in the OPTION_REG register. FIGURE 16-1: TIMER0 BLOCK DIAGRAM Note: The value written to the TMR0 register can be adjusted, in order to account for the two instruction cycle delay when TMR0 is written. Rev. 10-000017A 8/5/2013 TMR0SE 0 1 Fosc/4 Prescaler T0_overflow R write to TMR0 set bit TMR0IF T0CKI Sync Circuit FOSC/2 TMR0CS T0CKI (1) Note 1: The T0CKI prescale output frequency should not exceed FOSC/8. PS<2:0> 0 1 PSA TMR0 Q1 |
|
链接网址 |
| 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 |