Datasheet
1999-2013 Microchip Technology Inc. DS41106C-page 33
PIC16C712/716
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 F
OSC/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 produces
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. Writ-
ing 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.