Auto programming repeats the pulse five times, using the pulse width you specify in the external
EPROM. Slave mode repeats the pulse until PROG# is deasserted. In slave programming mode,
the PALE# signal controls the pulse width. In all cases, the pulse width must be at least 100 µs
for successful programming.
16.6 PROGRAMMING MODE PINS
Figure 16-4 illustrates the signals used in programming and Table 16-6 describes them. The EA#,
, and PMODE pins combine to control entry into programming modes. You must configure
V
PP
the PMODE (P0.7:4) pins to select the desired programming mode (see Table 16-7 on page
16-14). Each programming routine configures the port 2 pins to operate as the appropriate spe-
cial-function signals. Ports 3 and 4 automatically serve as the PBUS during programming.
Programming
Voltage
PMODE.3:0
† For auto programming, P1.2:1 replace P4.7:6 as the high address bits.
Figure 16-4. Pin Functions in Programming Modes
Special
Port Pin
Function
Signal
P0.7:4
PMODE.3:
PMODE.0
PROGRAMMING THE NONVOLATILE MEMORY
V
PP
EA#
4
P0.7:4
8XC196 Device
Table 16-6. Pin Descriptions
Program-
Type
ming
Mode
I
All
Programming Mode Select
Determines the programming mode. PMODE is sampled
after a device reset and must be static while the part is
operating. (Table 16-7 on page 16-14 lists the PMODE
values and programming modes.)
P4.7:0
PBUS †
P3.7:0
P2.7
PACT#
P2.6
CPVER
P2.4
AINC#
P2.2
PROG#
P2.1
PALE#/RXD
P2.0
PVER/TXD
Description
A0314-03
16-11