English
Language : 

MC68HC912D60 Datasheet, PDF (415/432 Pages) Freescale Semiconductor, Inc – M68HC12 Microcontrollers
Freescale Semiconductor, Inc.
Appendix: 68HC912D60A EEPROM
Program/Erase Operation
23.5 Program/Erase Operation
A program or erase operation should follow the sequence below if AUTO
bit is clear:
1. Write BYTE, ROW and ERASE to desired value, write EELAT = 1
2. Write a byte or an aligned word to an EEPROM address
3. Write EEPGM = 1
4. Wait for programming, tPROG or erase, tERASE delay time (10ms)
5. Write EEPGM = 0
6. Write EELAT = 0
If AUTO bit is set, steps 4 and 5 can be replaced by a step to poll the
EEPGM bit until is cleared.
It is possible to program/erase more bytes or words without intermediate
EEPROM reads, by jumping from step 5 to step 2.
23.6 Shadow Word Mapping
The shadow word is mapped to location $_FC0 and $_FC1 when the
NOSHW bit in EEMCR register is zero. The value in the shadow word is
loaded to the EEMCR, EEDIVH and EEDIVL after reset. Table 23-4
shows the mapping of each bit from shadow word to the registers
Table 23-4. Shadow word mapping
Shadow word location
$_FC0 bit 7
$_FC0, bit 6
$_FC0, bit 5
$_FC0, bit 4
$_FC0, bit 3:2
$_FC0, bit 1:0
$_FC1, bit 7:0
Register / Bit
EEMCR / NOBDML
EEMCR / NOSHW
EEMCR / bit 5(1)
EEMCR / bit 4(1)
not mapped(2))
EEDIVH / bit 1:0
EEMCR / bit 7:0
1. Reserved for testing. Must be set to one in user application.
2. Reserved. Must be set to one in user application for future compatibility.
68HC(9)12D60 — Rev 4.0
MOTOROLA
Appendix: 68HC912D60A EEPROM
For More Information On This Product,
Go to: www.freescale.com
Advance Information
415