PIC16C712/716
FIGURE 5-2: TIMER1 BLOCK DIAGRAM
Set flag bit
TMR1IF on
Overflow
RB1/T1OSO/T1CKI
RB2/T1OSI
TMR1
0
Synchronized
clock input
TMR1H TMR1L
1
T1OSC
TMR1ON
on/off
T1SYNC
T1OSCEN FOSC/4
Enable
Oscillator(1)
Internal
Clock
1
Prescaler
1, 2, 4, 8
0
2
T1CKPS1:T1CKPS0
Synchronize
det
SLEEP input
TMR1CS
Note 1: When the T1OSCEN bit is cleared, the inverter and feedback resistor are turned off. This eliminates power drain.
5.2 Timer1 Module and PORTB Operation
When Timer1 is configured as timer running from the
main oscillator, PORTB<2:1> operate as normal I/O
lines. When Timer1 is configured to function as a
counter however, the clock source selection may affect
the operation of PORTB<2:1>. Multiplexing details of
the Timer1 clock selection on PORTB are shown in Fig-
ure 3-4 and Figure 3-5.
The clock source for Timer1 in the counter mode can
be from one of the following:
1. External circuit connected to the
RB1/T1OSO/T1CKI pin
2. Firmware controlled DATACCP<0> bit, DT1CKI
3. Timer1 oscillator
Table 5-1 shows the details of Timer1 mode selections,
control bit settings, TMR1 and PORTB operations.
DS41106A-page 32
Preliminary
© 1999 Microchip Technology Inc.