| Electronic Components Datasheet Search |
|
MCP19124 Datasheet(PDF) 139 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP19124 Datasheet(HTML) 139 Page - Microchip Technology |
|
139 / 236 page ![]() 2016 Microchip Technology Inc. DS20005619A-page 139 MCP19124/5 22.0 TIMER1 MODULE WITH GATE CONTROL The Timer1 module is a 16-bit timer with the following features: • 16-bit timer register pair (TMR1H:TMR1L) • Readable and writable (both registers) • Selectable internal clock source • 2-bit prescaler • Interrupt on overflow Figure 22-1 is a block diagram of the Timer1 module. FIGURE 22-1: TIMER1 BLOCK DIAGRAM 22.1 Timer1 Operation The Timer1 module is a 16-bit incrementing timer that is accessed through the TMR1H:TMR1L register pair. Writes to TMR1H or TMR1L directly update the counter. The timer is incremented on every instruction cycle. Timer1 is enabled by configuring the TMR1ON bit in the T1CON register. Register 22-1 displays the Timer1 enable selections. 22.2 Clock Source Selection The TMR1CS bit in the T1CON register is used to select the clock source for Timer1. Table 22-1 displays the clock source selections. 22.2.1 INTERNAL CLOCK SOURCE The TMR1H:TMR1L register pair will increment on multiples of FOSC or FOSC/4 as determined by the Timer1 prescaler. As an example, when the FOSC internal clock source is selected, the Timer1 register value will increment by four counts every instruction clock cycle. TMR1H TMR1L TMR1CS T1CKPS<1:0> 1 0 2 Set flag bit TMR1IF on Overflow TMR1ON Note 1: TMR1 register increments on rising edge. FOSC TMR1 (1) Prescaler 1, 2, 4, 8 TABLE 22-1: CLOCK SOURCE SELECTIONS TMR1CS Clock Source 1 8 MHz system clock (FOSC) 0 2 MHz instruction clock (FOSC/4) |
|
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 |