
MOTOROLA
H-8
MC68HC05B6
Rev. 4
MC68HC705B32
14
Preliminary
H.4.1
EPROM read operation
The execution of a program in the EPROM address range or a load from the EPROM are both read
operations. The E6LAT bit in the EPROM/EEPROM control register should be cleared to ‘0’ which
automatically resets the E6PGM bit. In this way the EPROM is read like a normal ROM. Reading
the EPROM with the E6LAT bit set will give data that does not correspond to the actual memory
content. As interrupt vectors are in EPROM, they will not be loaded when E6LAT is set. Similarly,
the bootstrap ROM routines cannot be executed when E6LAT is set. In read mode, the VPP6 pin
must be at the VDD level. When entering the STOP mode, the EPROM is automatically set to the
read mode.
Note:
An erased byte reads as $00.
H.4.2
EPROM program operation
Typically, the EPROM will be programmed by the bootstrap routines resident in the on-chip ROM.
However, the user program can be used to program some EPROM locations if the proper
procedure is followed. In particular, the programming sequence must be running in RAM, as the
EPROM will not be available for code execution while the E6LAT bit is set. The VPP6 switching must
occur externally after EPGM is set, for example under control of a signal generated on a pin by the
programming routine.
Note:
Unless the part has a window for reprogramming, only the cumulative programming of
bits to logic ‘1’ is possible if multiple programming is made on the same byte.
To allow simultaneous programming of up to sixteen bytes, these bytes must be in the same group
of addresses which share the same most signicant address bits; only the four LSBs can change.
H.4.3
EPROM/EEPROM control register
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
EPROM/EEPROM/ECLK control
$0007
0
E6LAT E6PGM ECLK E1ERA E1LAT E1PGM u000 0000
TPG
250
05B6Book Page 8 Tuesday, April 6, 1999 8:24 am