
80C196KB USER’S GUIDE
7
6
5
4
3
2
1
0
HSOÐ
CAM
TMR2/
SET/
INT/
CHANNEL
06H
COMMAND
LOCK
TMR1 CLEAR
INT
CAM Lock
Ð Locks event in CAM if this is enabled by IOC2.6 (ENAÐLOCK)
TMR/TMR1 Ð Events Based on Timer2/Based on Timer1 if 0
SET/CLEAR Ð Set HSO pin/Clear HSO pin if 0
INT/INT
Ð Cause interrupt/No interrupt if 0
CHANNEL:
0–5:
HSO pins 0 – 5 separately
(in Hex)
6:
HSO pins 0 and 1 together
7:
HSO pins 2 and 3 together
8 – B: Software Timers 0 – 3
C – D: Unflagged Events (Do not use for future compatibility)
E:
Reset Timer2
F:
Start A to D Conversion
Figure 9-1. HSO Command Register
directional pins which are multiplexed with HSI.2 and
HSI.3 respectively. Bits 4 and 6 of I/O Control Regis-
ter 1 (IOC1.4, IOC1.6) enable HSO.4 and HSO.5 as
outputs. The Control Registers can be read in Window
15 to determine the programmed modes for the HSO.
However, the IOC2.7(CAM CLEAR) bit is not latched
and will read as a one. Entries can be locked in the
CAM to generate periodic events or waveforms.
9.1 HSO Interrupts and Software
Timers
The HSO unit can generate two types of interrupts. The
High Speed Output execution interrupt can be generat-
ed (if enabled) for HSO commands which change one
or more of the six output pins. The other HSO inter-
rupt is the interrupt which can be generated by any
other HSO command, (e.g. triggering the A/D, reset-
ting Timer2 or generating a software time delay).
HSO Interrupt Status
Register IOS2 at location 17H displays the HSO events
which have occurred. IOS2 is shown in Figure 9-2. The
events displayed are HSO.0 through HSO.5, Timer2
Reset and start of an A/D conversion. IOS2 is cleared
when accessed, therefore, the register should be saved
in an image register if more than one bit is being tested.
The status register is useful in determining which
events have caused an HSO generated interrupt. Writ-
ing to this register in Window 15 will set the status bits
but not cause interrupts. In Window 15, writing to
IOS2 can set the High Speed Output lines to an initial
value. Refer to Section 2.2 for more information on
Window 15.
IOS2:
7
6
5
4
3
2
1
0
START
T2
HSO.5 HSO.4 HSO.3 HSO.2 HSO.1 HSO.0
A/D
RESET
17H
read
Indicates which HSO event occcured
START A/D: HSOÐCMD 15, start A/D
T2RESET:
HSOÐCMD 14, Timer2 Reset
HSO.0 – 5:
Output pins HSO.0 through HSO.5
Figure 9-2. I/O Status Register 2
41
数控原理与维修
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...