PIC17C752 Datasheet

  • PIC17C752

  • High-Performance 8-bit CMOS EPROM Microcontrollers with 10-b...

  • 3053.02KB

  • 304页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC17C75X
13.1.2
TIMER1 AND TIMER2 IN 16-BIT MODE
13.1.2.1
To select 16-bit mode, set the T16 bit. In this mode
TMR2 and TMR1 are concatenated to form a 16-bit
timer (TMR2:TMR1). The 16-bit timer increments until
it matches the 16-bit period register (PR2:PR1). On
the following timer clock, the timer value is reset to 0h,
and the TMR1IF bit is set.
When selecting the clock source for the16-bit timer, the
TMR1CS bit controls the entire 16-bit timer and
TMR2CS is a 鈥渄on鈥檛 care鈥? however ensure that
TMR2ON is set (allows TMR2 to increment). When
TMR1CS is clear, the timer increments once every
instruction cycle (Fosc/4). When TMR1CS is set, the
timer increments on every falling edge of the
RB4/TCLK12 pin. For the 16-bit timer to increment,
both TMR1ON and TMR2ON bits must be set
(Table 13-2).
EXTERNAL CLOCK INPUT FOR
TMR2:TMR1
When TMR1CS is set, the 16-bit TMR2:TMR1 incre-
ments on the falling edge of clock input TCLK12. The
input on the RB4/TCLK12 pin is sampled and synchro-
nized by the internal phase clocks twice every instruc-
tion cycle. This causes a delay from the time a falling
edge appears on RB4/TCLK12 to the time
TMR2:TMR1 is actually incremented. For the external
clock input timing requirements, see the Electrical
Speci铿乧ation section.
TABLE 13-2:
TURNING ON 16-BIT TIMER
Result
16-bit timer
(TMR2:TMR1) ON
Only TMR1 increments
16-bit timer OFF
Timers in 8-bit mode
T16 TMR2ON TMR1ON
1
1
1
0
1
0
x
1
1
1
0
1
FIGURE 13-5: TMR2 AND TMR1 IN 16-BIT TIMER/COUNTER MODE
1
RB4/TCLK12
Fosc/4
0
TMR1ON
(TCON2<0>)
Reset
MSB
TMR2 x 8
LSB
TMR1 x 8
TMR1CS
(TCON1<0>)
Set Interrupt TMR1IF
(PIR1<4>)
Equal
Comparator<8>
Comparator x16
PR2 x 8
PR1 x 8
1997 Microchip Technology Inc.
Preliminary
DS30264A-page 95

PIC17C752相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!