PIC16C770 Datasheet

  • PIC16C770

  • 18/20-Pin, 8-Bit CMOS Microcontrollers with 10/12-bit A/D

  • 3585.57KB

  • 220页

  • MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16C717/770/771
5.2.1
SWITCHING PRESCALER ASSIGNMENT
5.3
Timer0 Interrupt
The prescaler assignment is fully under software con-
trol, i.e., it can be changed 鈥渙n-the-fly鈥?during program
execution.
Note:
To avoid an unintended device RESET, a
specific instruction sequence (shown in the
PICmicro鈩?Mid-Range Reference Man-
ual, DS33023) must be executed when
changing the prescaler assignment from
Timer0 to the WDT. This sequence must
be followed even if the WDT is disabled.
The TMR0 interrupt is generated when the TMR0 reg-
ister overflows from FFh to 00h. This overflow sets bit
T0IF (INTCON<2>). The interrupt can be masked by
clearing bit T0IE (INTCON<5>). Bit T0IF must be
cleared in software by the Timer0 module interrupt ser-
vice routine before re-enabling this interrupt. The
TMR0 interrupt cannot awaken the processor from
SLEEP since the timer is shut off during SLEEP.
FIGURE 5-2:
BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER
Data Bus
8
1
0
M
U
X
SYNC
2
Cycles
TMR0 reg
CLKOUT (= F
OSC
/4)
0
RA4/T0CKI
Pin
1
T0SE
M
U
X
T0CS
PSA
Set flag bit T0IF
on Overflow
0
M
U
X
8-bit Prescaler
8
8 - to - 1MUX
PS<2:0>
Watchdog
Timer
1
PSA
0
MUX
1
PSA
WDT Enable Bit
WDT
Time-out
Note:
T0CS, T0SE, PSA, PS<2:0> are (OPTION_REG<5:0>).
TABLE 5-1:
Address
01h,101h
0Bh,8Bh,
10Bh,18Bh
81h,181h
85h
REGISTERS ASSOCIATED WITH TIMER0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
xxxx xxxx
T0IE
T0CS
INTE
T0SE
RBIE
PSA
T0IF
PS2
INTF
PS1
RBIF
PS0
0000 000x
1111 1111
1111 1111
Value on all
other resets
uuuu uuuu
0000 000u
1111 1111
1111 1111
Name
TMR0
INTCON
OPTION_REG
TRISA
Timer0 register
GIE
PEIE
RBPU INTEDG
PORTA Data Direction Register
Legend:
x
= unknown,
u
= unchanged,
-
= unimplemented locations read as 鈥?鈥? Shaded cells are not used by Timer0.
DS41120A-page 48
Advanced Information
1999 Microchip Technology Inc.

PIC16C770 PDF文件相关型号

PIC16C771

PIC16C770相关型号PDF文件下载

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

热门IC型号推荐

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

在线人工客服

买家服务:
卖家服务:

0571-85317607

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

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

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

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