
80C196KB USER’S GUIDE
If 16 or fewer 87C196KBs are to be gang programmed
at once, a more flexible form of verification is available
by giving each device a unique SID. The master pro-
grammer can issue a Data Verify Command after the
Data Program Command. When a verify command is
seen by the slaves, each will drive a bit of Ports 3 or 4
corresponding to its unique SID. A 1 indicates the ad-
dress verified, while a 0 means it failed.
SLAVE PROGRAMMING MODE AND THE
CCB/PCCB
Devices in the Slave Programming Mode use Ports 3
and 4 as the command/data path. The data bus is not
used. Therefore, you do not need to program either the
CCB or the PCCB before starting slave programming.
You can program the CCB like any other location in
slave mode. Data programmed into the CCB takes ef-
fect upon reset. If you enable either the READ or the
WRITE lock bits in the CCB during slave program-
ming and do not reset the device, slave programming
will continue. If you do reset the device, the device first
does a security key verification. The same security keys
that reside at internal addresses 2020H – 202FH must
reside at external addresses 4020H – 402FH. If the keys
match, slave programming continues. If the keys do not
match, the device enters an endless loop of internal exe-
cution.
16.7 Run-Time Programming
The 87C196KB can program itself under software con-
trol. One byte or word can be programmed instead of
the entire array. The only additional requirement is
that you apply a programming voltage to V
PP
and have
the ambient temperature at 25
§
C. Run-time program-
ming is done with EA at a TTL high (internal memory
enabled).
To Run-Time Program, the user writes to the location
to be programmed. The value of the PPW register de-
termines the programming pulse. To ensure 87C196KC
compatibility, the Idle Mode should be used for Run-
Time Programming. Figure 16-9 is the recommended
code sequence for Run-Time Programming. The Modi-
fied Quick Pulse algorithm guarantees the programmed
EPROM cell for the life of the part.
RUN-TIME PROGRAMMING AND THE
CCB/PCCB
For run-time programming, the CCR is loaded with the
CCB. Run-time programming is done with EA equal to
a TTL-high (internal execution) so the internal CCB
must correspond to the memory system of the applica-
tion setup. You can use Auto Configuration Byte Pro-
gramming or a generic programmer to program the
CCB before using Run-Time Programming.
LD WSR,
#
14
;Initialize programmable
LD PPW,
#
VALUE
;pulse width
PROGRAM:
POP ADDRESS TEMP
;Load program data
POP DATA TEMP
;and address
PUSHF
LD COUNT,
#
25T
LOOP:
ST DATA TEMP,
[
ADDR TEMP
]
;begin programming
;enter idle mode
DJNZ COUNT, L00P
;loop 25 times
POPF
RET
NOTE:
*
Not Really Needed on Current 87C196KB Part
Figure 16-9. Future Run-Time Programming Algorithm
92
数控原理与维修
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...