PIC16F726-I/SP Microchip Technology Inc., PIC16F726-I/SP Datasheet - Page 116

no-image

PIC16F726-I/SP

Manufacturer Part Number
PIC16F726-I/SP
Description
28 PIN, 14 KB FLASH, 1.8V-5.5V, 16 MHZ INT. OSC.
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F726-I/SP

A/d Inputs
11-Channel, 8-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Frequency
20 MHz
Input Output
25
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin SPDIP
Programmable Memory
14K Bytes
Ram Size
368 Bytes
Resistance, Drain To Source On
Bytes
Serial Interface
I2C, SPI, AUSART
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
PIC16F72X/PIC16LF72X
12.1
The Timer1 module is a 16-bit incrementing counter
which is accessed through the TMR1H:TMR1L register
pair. Writes to TMR1H or TMR1L directly update the
counter.
When used with an internal clock source, the module is
a timer and increments on every instruction cycle.
When used with an external clock source, the module
can be used as either a timer or counter and incre-
ments on every selected edge of the external source.
Timer1 is enabled by configuring the TMR1ON and
TMR1GE bits in the T1CON and T1GCON registers,
respectively. Table 12-1 displays the Timer1 enable
selections.
TABLE 12-1:
TABLE 12-2:
DS41341B-page 114
TMR1CS1
TMR1ON
0
0
1
1
0
0
1
1
1
Timer1 Operation
TIMER1 ENABLE
SELECTIONS
CLOCK SOURCE SELECTIONS
TMR1CS0
TMR1GE
0
1
0
1
1
0
1
0
0
Off
Off
Always On
Count Enabled
Operation
T1OSCEN
Timer1
x
x
x
0
1
Preliminary
System Clock (F
Instruction Clock (F
Capacitive Sensing Oscillator
External Clocking on T1CKI Pin
Oscillator Circuit on T1OSI/T1OSO Pins
12.2
The TMR1CS<1:0> and T1OSCEN bits of the T1CON
register are used to select the clock source for Timer1.
Table 12-2 displays the clock source selections.
12.2.1
When the internal clock source is selected the
TMR1H:TMR1L register pair will increment on multiples
of F
12.2.2
When the external clock source is selected, the Timer1
module may work as a timer or a counter.
When enabled to count, Timer1 is incremented on the
rising edge of the external clock input T1CKI or the
capacitive sensing oscillator signal. Either of these
external clock sources can be synchronized to the
microcontroller
asynchronously.
When used as a timer with a clock oscillator, an
external 32.768 kHz crystal can be used in conjunction
with the dedicated internal oscillator circuit.
Note:
OSC
as determined by the Timer1 prescaler.
OSC
Clock Source Selection
OSC
• Timer1 enabled after POR reset
• Write to TMR1H or TMR1L
• Timer1 is disabled
• Timer1 is disabled (TMR1ON = 0)
INTERNAL CLOCK SOURCE
EXTERNAL CLOCK SOURCE
In Counter mode, a falling edge must be
registered by the counter prior to the first
incrementing rising edge after any one or
more of the following conditions:
)
when T1CKI is high then Timer1 is
enabled (TMR1ON=1) when T1CKI is
low.
/4)
Clock Source
system
© 2008 Microchip Technology Inc.
clock
or
they
can
run

Related parts for PIC16F726-I/SP