
80C196KB USER’S GUIDE
270651 – 5
Figure 7-1. Timer Block Diagram
Bit
e
1
Bit
e
0
IOC0.1
Reset Timer2 each write
No action
IOC0.3
Enable external reset
Disable
IOC0.5
HSI.0 is ext. reset source
T2RST is reset source
IOC0.7
HSI.1 is T2 clock source
T2CLK is clock source
IOC1.3
Enable Timer2 overflow int.
Disable overflow interrupt
IOC2.0
Enable fast increment
Disable fast increment
IOC2.1
Enable downcount feature
Disable downcount
P2.6
Count down if IOC2.1
e
1
Count up
IOC2.5
Interrupt on 7FFFH/8000H
Interrupt on 0FFFFH/0000H
P2.7
Capture Timer2 into
T2CAPture on rising edge
Figure 7-2. Timer2 Configuration and Control Pins
270651 – 17
Figure 7-3. Timer2 Clock and Reset Options
7.4 Timer Interrupts
Both Timer1 and Timer2 can trigger a timer overflow
interrupt and set a flag in the I/O Status Register 1
(IOS1). Timer1 overflow is controlled by setting
IOC1.2 and the interrupt status is indicated in IOS1.5.
The TIMER OVERFLOW interrupt is enabled by set-
ting INTÐMASK.0.
A Timer2 overflow condition interrupts through loca-
tion 2000H by setting IOC1.3 and setting INTÐ
MASK.0. Alternatively, Timer2 overflow can interrupt
through location 2038H by setting INTÐMASK1.3.
The status of the Timer2 overflow interrupt is indicated
in IOS1.4.
Interrupts can be generated if Timer2 crosses the
0FFFFH/0000H boundary or the 7FFFH/8000H
boundary in either direction. By having two interrupt
points it is possible to have interrupts enabled even if
37
数控原理与维修
http://www.agreenleaf.cn
Содержание 80C196KB Series
Страница 1: ...November 1990 80C196KB User s Guide Order Number 270651 003 http www agreenleaf cn...
Страница 59: ...80C196KB USER S GUIDE Figure 11 7 Ideal A D Characteristic 270651 37 55 http www agreenleaf cn...
Страница 60: ...80C196KB USER S GUIDE Figure 11 8 Actual and Ideal Characteristics 270651 38 56 http www agreenleaf cn...
Страница 61: ...80C196KB USER S GUIDE Figure 11 9 Terminal Based Characteristic 270651 39 57 http www agreenleaf cn...
Страница 70: ...80C196KB USER S GUIDE Figure 13 5 Reset Sequence 80C196KB Reset Sequence 270651 45 66 http www agreenleaf cn...
Страница 83: ...80C196KB USER S GUIDE 270651 80 Figure 15 14 AC Timing Diagrams 79 http www agreenleaf cn...
Страница 84: ...80C196KB USER S GUIDE 270651 81 270651 84 Figure 15 14 AC Timing Diagrams Continued 80 http www agreenleaf cn...