MC68HC711PH8 Motorola, MC68HC711PH8 Datasheet - Page 73

no-image

MC68HC711PH8

Manufacturer Part Number
MC68HC711PH8
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
Manufacturer
Motorola
Datasheet
PH8.DS03/Modes+mem
During EEPROM programming, the ROW and BYTE bits of PPROG are not used. If the frequency
of the E clock is 1MHz or less, set the CSEL bit in the OPTION register. Remember that the
EEPROM must be erased by a separate erase operation before programming. The following
example of how to program an EEPROM byte assumes that the appropriate bits in BPROT have
been cleared.
PROG
3.4.2.2
To erase the EEPROM, ensure that the proper bits of the BPROT register are cleared, then
complete the following steps using the PPROG register:
The following is an example of how to bulk erase the 768-byte EEPROM. The CONFIG register is
not affected in this example.
BULKE LDAB
MC68HC11PH8
1) Write to PPROG with the ERASE, EELAT and appropriate BYTE and ROW
2) Write to the appropriate EEPROM address with any data. Row erase only
3) Write to PPROG with ERASE, EELAT, EEPGM and the appropriate BYTE
4) Delay for time t
5) Clear the EEPGM bit in PPROG to turn off the high voltage.
6) Clear the PPROG register to reconfigure the EEPROM address and data
LDAB
STAB
STAA
LDAB
STAB
JSR
CLR
STAB
STAA
LDAB
STAB
JSR
CLR
bits set.
requires a write to any location in the row. Bulk erase is accomplished by
writing to any location in the array.
and ROW bits set.
buses for normal operation.
EEPROM bulk erase
#$02
$003B Set EELAT bit
$0D00 Store data to EEPROM address
#$03
$003B Turn on programming voltage
DLY10 Delay tEEPROG
$003B Turn off high voltage and set to READ mode
#$06
$003B Set EELAT bit
$0D00 Store data to any EEPROM address
#$07
$003B Turn on programming voltage
DLY10 Delay tEEPROG
$003B Turn off high voltage and set to READ mode
OPERATING MODES AND ON-CHIP MEMORY
EEPROG
EELAT=1
EELAT=EEPGM=1
EELAT=ERASE=1
EELAT=ERASE=EEPGM=1
—this line does not form part of the document—
(See Section A.5.6).
[DS97 v 4.1] 08/Apr/97@13:55
MOTOROLA
TPG
3-27
10
12
13
14
15
11
1
2
3
4
5
6
7
8
9

Related parts for MC68HC711PH8