PIC16F72X/PIC16LF72X
DS41341E-page 116
2009 Microchip Technology Inc.
12.1
Timer1 Operation
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.
12.2
Clock Source Selection
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
INTERNAL CLOCK SOURCE
When the internal clock source is selected the
TMR1H:TMR1L register pair will increment on multiples
of FOSC as determined by the Timer1 prescaler.
12.2.2
EXTERNAL CLOCK SOURCE
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
system
clock
or
they
can
run
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.
TABLE 12-1:
TIMER1 ENABLE
SELECTIONS
TMR1ON
TMR1GE
Timer1
Operation
00
Off
01
Off
10
Always On
11
Count Enabled
Note:
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:
Timer1 enabled after POR reset
Write to TMR1H or TMR1L
Timer1 is disabled
Timer1 is disabled (TMR1ON = 0)
when T1CKI is high then Timer1 is
enabled (TMR1ON=1) when T1CKI is
low.
TABLE 12-2:
CLOCK SOURCE SELECTIONS
TMR1CS1
TMR1CS0
T1OSCEN
Clock Source
01
x
System Clock (FOSC)
00
x
Instruction Clock (FOSC/4)
11
x
Capacitive Sensing Oscillator
10
0
External Clocking on T1CKI Pin
10
1
Oscillator Circuit on T1OSI/T1OSO Pins
相关PDF资料
PIC18LF44J10T-I/ML IC PIC MCU FLASH 8KX16 44QFN
PIC16LF727-I/PT IC PIC MCU FLASH 8K 1.8V 44-TQFP
PIC24F08KA102-I/SO IC PIC MCU FLASH 8K 28-SOIC
PIC18LF44J10T-I/PT IC PIC MCU FLASH 8KX16 44TQFP
PIC24F16KL401-I/SO IC MCU 16BIT 16KB FLASH 20-SOIC
PIC18LF25J10T-I/SS IC PIC MCU FLASH 16KX16 28-SSOP
PIC16LF1527-I/PT MCU PIC 28KB FLASH 64TQFP
PIC18F25K20-I/SP IC PIC MCU FLASH 16KX16 28-DIP
相关代理商/技术参数
PIC16LF724-I/ML 功能描述:8位微控制器 -MCU 7KB Flash Prog 16MHz Int Osc 1.8V-5.5V RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724-I/MV 功能描述:8位微控制器 -MCU 7KB Flash RAM 192b nanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724-I/P 功能描述:8位微控制器 -MCU 7KB 1.8-3.6V 16MHz 8b ADC CCP Lo Pwr RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724-I/PT 功能描述:8位微控制器 -MCU 7KB 1.8-3.6V 16MHz 8b ADC CCP Lo Pwr RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724T-I/ML 功能描述:8位微控制器 -MCU 7KB Flash Prog 16MHz Int Osc 1.8V-5.5V RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724T-I/MV 功能描述:8位微控制器 -MCU 7KB Flash RAM 192b nanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF724T-I/PT 功能描述:8位微控制器 -MCU 7KB Flash Prog 16MHz Int Osc 1.8V-5.5V RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF726-E/ML 功能描述:8位微控制器 -MCU 14KBFlash Prog 16MHz Int Osc 1.8V-5.5V RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT