欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC17LC42-16I/JW 参数 Datasheet PDF下载

PIC17LC42-16I/JW图片预览
型号: PIC17LC42-16I/JW
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能8位CMOS EPROM / ROM微控制器 [High-Performance 8-Bit CMOS EPROM/ROM Microcontroller]
分类和应用: 微控制器可编程只读存储器电动程控只读存储器
文件页数/大小: 240 页 / 1141 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第61页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第62页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第63页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第64页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第66页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第67页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第68页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第69页  
PIC17C4X  
10.3  
Timer2 Overview  
10.0 OVERVIEW OF TIMER  
RESOURCES  
The PIC17C4X has four timer modules. Each module  
can generate an interrupt to indicate that an event has  
occurred. These timers are called:  
The TMR2 module is an 8-bit timer/counter with an 8-  
bit period register (PR2). When the TMR2 value rolls  
over from the period match value to 0h, the TMR2IF  
flag is set, and an interrupt will be generated when  
enabled. In counter mode, the clock comes from the  
RB4/TCLK12 pin, which can also be selected to be the  
clock for the TMR1 module.  
• Timer0 - 16-bit timer with programmable 8-bit  
prescaler  
• Timer1 - 8-bit timer  
TMR1 can be concatenated to TMR2 to form a 16-bit  
timer. The TMR2 register is the MSB and TMR1 is the  
LSB. When in the 16-bit timer mode, there is a corre-  
sponding 16-bit period register (PR2:PR1). When the  
TMR2:TMR1 value rolls over from the period match  
value to 0h, the TMR1IF flag is set, and an interrupt  
will be generated when enabled.  
• Timer2 - 8-bit timer  
• Timer3 - 16-bit timer  
For enhanced time-base functionality, two input Cap-  
tures and two Pulse Width Modulation (PWM) outputs  
are possible. The PWMs use the TMR1 and TMR2  
resources and the input Captures use the TMR3  
resource.  
10.4  
Timer3 Overview  
10.1  
Timer0 Overview  
The TImer3 module is a 16-bit timer/counter with a 16-  
bit period register. When the TMR3H:TMR3L value  
rolls over to 0h, the TMR3IF bit is set and an interrupt  
will be generated when enabled. In counter mode, the  
clock comes from the RB5/TCLK3 pin.  
The Timer0 module is a simple 16-bit overflow counter.  
The clock source can be either the internal system  
clock (Fosc/4) or an external clock.  
The Timer0 module also has a programmable pres-  
caler option. The PS3:PS0 bits (T0STA<4:1>) deter-  
mine the prescaler value. TMR0 can increment at the  
following rates: 1:1, 1:2, 1:4, 1:8, 1:16, 1:32, 1:64,  
1:128, 1:256.  
When operating in the dual capture mode, the period  
registers become the second 16-bit capture register.  
10.5  
Role of the Timer/Counters  
When TImer0’s clock source is an external clock, the  
Timer0 module can be selected to increment on either  
the rising or falling edge.  
The timer modules are general purpose, but have ded-  
icated resources associated with them. TImer1 and  
Timer2 are the time-bases for the two Pulse Width  
Modulation (PWM) outputs, while Timer3 is the time-  
base for the two input captures.  
Synchronization of the external clock occurs after the  
prescaler. When the prescaler is used, the external  
clock frequency may be higher then the device’s fre-  
quency. The maximum frequency is 50 MHz, given the  
high and low time requirements of the clock.  
10.2  
Timer1 Overview  
The TImer0 module is an 8-bit timer/counter with an 8-  
bit period register (PR1). When the TMR1 value rolls  
over from the period match value to 0h, the TMR1IF  
flag is set, and an interrupt will be generated when  
enabled. In counter mode, the clock comes from the  
RB4/TCLK12 pin, which can also be selected to be the  
clock for the Timer2 module.  
TMR1 can be concatenated to TMR2 to form a 16-bit  
timer. The TMR1 register is the LSB and TMR2 is the  
MSB. When in the 16-bit timer mode, there is a corre-  
sponding 16-bit period register (PR2:PR1). When the  
TMR2:TMR1 value rolls over from the period match  
value to 0h, the TMR1IF flag is set, and an interrupt  
will be generated when enabled.  
1996 Microchip Technology Inc.  
DS30412C-page 65  
This document was created with FrameMaker 4 0 4  
 复制成功!