
80C196KB USER’S GUIDE
Programming control and test operations are done in
Window 14. Registers in this window that are not la-
beled should be considered reserved and should not be
either read or written.
In register Window 15 (WSR
e
15), the operation of
the SFRs is changed, so that those which were read-
only in Window 0 space are write-only and vice versa.
The only major exception to this is that Timer2 is read/
write in Window 0, and T2 Capture is read/write
in Window 15. (Timer2 was read-only on the 8096.)
Registers which can be read and written in Window 0
can also be read and written in Window 15.
Figure 2-4 contains brief descriptions of the SFR regis-
ters. Detailed descriptions are contained in the section
which discusses the peripheral controlled by the regis-
ter. Figure 2-5 contains a description of the alternate
function in Window 15.
ADÐCOMMAND (02H)
Ð Read the last written command
ADÐRESULT (02H, 03H) Ð Write a value into the result register
HSIÐMODE (03H)
Ð Read the value in HSIÐMODE
HSIÐTIME (04H, 05H)
Ð Write to FIFO Holding register
HSOÐTIME (04H, 05H)
Ð Read the last value placed in the holding register
HSIÐSTATUS (06H)
Ð Write to status bits but not to HSI pin bits. (Pin bits are 1, 3, 5, 7)
HSOÐCOMMAND (06H)
Ð Read the last value placed in the holding register
SBUF(RX) (07H)
Ð Write a value into the receive buffer
SBUF(TX) (07H)
Ð Read the last value written to the transmit buffer
WATCHDOG (0AH)
Ð Read the value in the upper byte of the WDT
TIMER1 (0AH, 0BH)
Ð Write a value to Timer1
TIMER2 (0CH, 0DH)
Ð Read/Write the Timer2 capture register.
(Timer2 read/write is done with WSR
e
0)
IOC2 (0BH)
Ð Last written value is readable, except bit 7 (Note 1)
BAUDÐRATE (0EH)
Ð No function, cannot be read
PORT0 (0EH)
Ð No function, no output drivers on the pins
SPÐSTAT (11H)
Ð Set the status bits, TI and RI can be set, but it will not cause an interrupt
SPÐCON (11H)
Ð Read the current control byte
IOS0 (15H)
Ð Writing to this register controls the HSO pins. Bits 6 and 7 are inactive for
writes.
IOC0 (15H)
Ð Last written value is readable, except bit 1 (Note 1)
IOS1 (16H)
Ð Writing to this register will set the status bits, but not cause interrupts. Bits
6 and 7 are not functional.
IOC1 (16H)
Ð Last written value is readable
IOS2 (17H)
Ð Writing to this register will set the status bits, but not cause interrupts.
PWMÐCONTROL (17H)
Ð Read the duty cycle value written to PWMÐCONTROL
NOTE:
1. IOC2.7 (CAM CLEAR) and IOC0.1 (T2RST) are not latched and will read as a 1 (precharged bus).
Being able to write to the read-only registers and vice-versa provides a lot of flexibility. One of the most useful
advantages is the ability to set the timers and HSO lines for initial conditions other than zero.
Figure 2-5. Alternate SFR Function in Window 15
7
数控原理与维修
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...