| Os motores de busca de Datasheet de Componentes eletrônicos |
|
PIC16C712 Folha de dados(PDF) 33 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C712 Folha de dados(HTML) 33 Page - Microchip Technology |
|
33 / 108 page ![]() PIC16C712/716 © 1999 Microchip Technology Inc. Preliminary DS41106A-page 33 TABLE 5-1 TMR1 MODULE AND PORTB OPERATION TMR1 Module Mode Clock Source Control Bits TMR1 Module Operation PORTB<2:1> Operation Off N/A T1CON = --xx 0x00 Off PORTB<2:1> function as normal I/O Timer Fosc/4 T1CON = --xx 0x01 TMR1 module uses the main oscillator as clock source. TMR1ON can turn on or turn off Timer1. PORTB<2:1> function as normal I/O Counter External circuit T1CON = --xx 0x11 TR1SCCP = ---- -x-1 TMR1 module uses the external signal on the RB1/T1OSO/T1CKI pin as a clock source. TMR1ON can turn on or turn off Timer1. DT1CK can read the signal on the RB1/T1OSO/T1CKI pin. PORTB<2> functions as normal I/O. PORTB<1> always reads 0 when configured as input . If PORTB<1> is configured as out- put, reading PORTB<1> will read the data latch. Writing to PORTB<1> will always store the result in the data latch, but not to the RB1/T1OSO/T1CKI pin. If the TMR1CS bit is cleared (TMR1 reverts to the timer mode), then pin PORTB<1> will be driven with the value in the data latch. Firmware T1CON = --xx 0x11 TR1SCCP = ---- -x-0 DATACCP<0> bit drives RB1/T1OSO/T1CKI and pro- duces the TMR1 clock source. TMR1ON can turn on or turn off Timer1. The DATACCP<0> bit, DT1CK, can read and write to the RB1/T1OSO/T1CKI pin. Timer1 oscillator T1CON = --xx 1x11 RB1/T1OSO/T1CKI and RB2/T1OSI are configured as a 2 pin crystal oscillator. RB1/T1OSI/T1CKI is the clock input for TMR1. TMR1ON can turn on or turn off Timer1. DATACCP<1> bit, DT1CK, always reads 0 as input and can not write to the RB1/T1OSO/T1CK1 pin. PORTB<2:1> always read 0 when configured as inputs. If PORTB<2:1> are configured as outputs, reading PORTB<2:1> will read the data latches. Writing to PORTB<2:1> will always store the result in the data latches, but not to the RB2/T1OSI and RB1/T1OSO/T1CKI pins. If the TMR1CS and T1OSCEN bits are cleared (TMR1 reverts to the timer mode and TMR1 oscillator is disabled), then pin PORTB<2:1> will be driven with the value in the data latches. |
|
Ligação URL |
| ALLDATASHEET é útil para você? [ DONATE ] |
Sobre Alldatasheet | Publicidade | Contato conosco | Privacy Policy | Link para a ficha técnica | roca de Link | Lista de Fabricantes 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 |