English
Language : 

MC68HC11F1_13 Datasheet, PDF (54/158 Pages) Freescale Semiconductor, Inc – Technical Data
Freescale Semiconductor, Inc.
ROWE
LDAB
STAB
STAB
LDAB
STAB
JSR
CLR
#$0E
$103B
0,X
#$0F
$103B
DLY10
$103B
ROW=1, ERASE=1, EELAT=1, EEPGM=0
Set to ROW erase mode
Store any data to any address in ROW
ROW=1, ERASE=1, EELAT=1, EEPGM=1
Turn on high voltage
Delay 10 ms
Turn off high voltage and set to READ mode
4.4.1.4 EEPROM Byte Erase
The following is an example of how to erase a single byte of EEPROM and assumes
that index register X contains the address of the byte to be erased.
BYTEE
LDAB
STAB
STAB
LDAB
STAB
JSR
CLR
#$16
$103B
0,X
#$17
$103B
DLY10
$103B
BYTE=1, ROW=0, ERASE=1, EELAT=1, EEPGM=0
Set to BYTE erase mode
Store any data to address to be erased
BYTE=1, ROW=0, ERASE=1, EELAT=1, EEPGM=1
Turn on high voltage
Delay 10 ms
Turn off high voltage and set to READ mode
4.4.2 PPROG EEPROM Programming Control Register
Bits in PPROG register control parameters associated with EEPROM programming.
PPROG — EEPROM Programming Control
Bit 7
6
5
4
ODD
EVEN
—
BYTE
RESET:
0
0
0
0
3
ROW
0
2
ERASE
0
1
EELAT
0
ODD — Program Odd Rows in Half of EEPROM (TEST)
EVEN — Program Even Rows in Half of EEPROM (TEST)
Bit 5 — Not implemented
Always reads zero
BYTE — Byte/Other EEPROM Erase Mode
0 = Row or bulk erase mode used
1 = Erase only one byte of EEPROM
ROW — Row/All EEPROM Erase Mode (only valid when BYTE = 0)
0 = All 512 bytes of EEPROM erased
1 = Erase only one 16-byte row of EEPROM
Bit 0
EEPGM
0
$103B
4-16
OPERATING MODES AND ON-CHIP MEMORY
For More Information On This Product,
Go to: www.freescale.com
MC68HC11F1
TECHNICAL DATA