English
Language : 

68HC805P18 Datasheet, PDF (53/111 Pages) Freescale Semiconductor, Inc – SPECIFICATION (General Release)
Freescale Semiconductor, Inc.
GENERAL RELEASE SPECIFICATION
8.3 Programming/Erasing Procedures
To program a byte of EEPROM, set LATCH = CPEN = 1, set ER1 = ER0 = 0, write
8
data to the desired address and then set EEPGM for a time, tEPGM.
2
NOTE
3
Any bit should be erased before it is programmed. However, if
write/erase cycling is a concern, the following procedure will
4
minimize the cycling of each bit in each EEPROM byte.
5
If PB • EB = 0, then program the new data over the existing data
without erasing it first. If PB • EB ≠ 0, then erase the byte before
6
programming where PB = byte data to be programmed and
EB = existing EEPROM byte data.
7
8
To erase a byte of EEPROM, set LATCH = 1, CPEN = 1, ER1 = 0 and ER0 = 1,
write to the address to be erased and set EEPGM for a time, tEBYT.
9
To erase a block of EEPROM, set LATCH = 1, CPEN = 1, ER1 = 1 and ER0 = 0,
write to any address in the block, and set EEPGM for a time, tEBLOCK.
10
For a bulk erase, set LATCH = 1, CPEN = 1, ER1 = 1, and ER0 = 1, write to any
11
address in the array, and set EEPGM for a time, tEBULK.
To terminate the programming or erase sequence, clear EEPGM, delay for a time
12
tFPV to allow the program voltage to fall, and then clear LATCH and CPEN to free
up the buses. Following each erase or programming sequence, clear all
13
programming control bits.
14
NOTE
A
Erased/programmed state of the programming EEPROM (128 bytes)
and the user EEPROM (8064 bytes) is opposite. An erased
16
EEPROM memory location is a logic zero for user EEPROM, while it
is a logic one for programming EEPROM.
17
18
19
20
Rev. 1.0
EEPROM
For More Information On This Product,
Go to: www.freescale.com