![](http://datasheet.mmic.net.cn/30000/MC68HC711EA9CFN2_datasheet_2370039/MC68HC711EA9CFN2_17.png)
MC68HC11EA9
MOTOROLA
MC68HC11EA9TS/D
17
5.
Clear the PGM bit to turn off the VPPE voltage.
6.
Clear all bits in the PPROG register to reconfigure the EPROM address and data buses for nor-
mal operation.
NOTE
PROG mode is initiated when RESET, MODA, and MODB pins are pulled low (the
pin state required to enter bootstrap mode). This means that if these three pins are
pulled low and VPPE is present on the XIRQ pin, the EPROM will be programmed.
To prevent this, place a pull-up resistor on the IRQ pin (CE pin in PROG mode).
When the device goes into reset, the PGM bit is forced to the voltage disable state
(EPGM = 0) before the address/data latches are enabled to the external input lines.
Only after this occurs is voltage control returned to the IRQ pin.
4.9.3 Programming EPROM with Downloaded Data
When using this method, the EPROM is programmed by software while in the special test or bootstrap
modes. User-developed software can be uploaded through the SCI, or a ROM resident EPROM pro-
gramming utility can be used. To use the resident utility, bootload a three-byte program consisting of a
single jump instruction to $BF00. $BF00 is the starting address of a resident EPROM programming util-
ity. The utility program sets the X and Y index registers to default values, then receives programming
data from an external host and puts it in EPROM. The value in IX determines programming delay time.
The value in IY is a pointer to the first address in EPROM to be programmed (default = $D000).
When the utility program is ready to receive programming data, it sends the host the $FF character.
Then it waits. When the host sees the $FF character, the EPROM programming data is sent, starting
with the first location in the EPROM array. After the last byte to be programmed is sent and the corre-
sponding verification data is returned, the programming operation is terminated by resetting the MCU.
* MC68HC711EA9 only.
ODD — Program Odd Rows in Half of EEPROM (TEST)
EVEN — Program Even Rows in Half of EEPROM (TEST)
ELAT — EPROM/OTPROM Latch Control
When ELAT = 1, writes to EPROM cause address and data to be latched and the EPROM/OTPROM
cannot be read. ELAT can be read any time. ELAT can be written any time except when EPGM = 1;
then the write to ELAT is disabled. For MC68HC711EA9, EPGM enables the high voltage necessary
for both EPROM/OTPROM and EEPROM programming. For MC68HC711EA9 ELAT and EELAT are
mutually exclusive and cannot both equal one.
0 = EPROM address and data bus configured for normal reads
1 = EPROM address and data bus configured for programming
BYTE — Byte/Other EEPROM Erase Mode
ROW — Row/All EEPROM Erase Mode
PPROG — EPROM and EEPROM Programming Control Register
$103B
BIT 7
654321
BIT 0
ODD
EVEN
ELAT*
BYTE
ROW
ERASE
EELAT
PGM
RESET:
00000001
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.