CHAPTER 5 EEPROM
85
Users Manual U10676EJ3V0UM
5.5.3 Write manipulationUse the following procedure to write to EEPROM.Any instruction other than one related to EEPROM writing can be executed even during an EEPROM writeoperation.EWST, EWTC and EWE can be set simultaneously by an 8-bit memory manipulation instruction to EWC.<1> Check that the read status (EWST) is 0 (write enabled = currently not being written).<2> Use EWTC4 to EWTC6 to set write time.<3> Set the write enable/disable control bit (EWE) to 1 (write enabled).<4> Execute the write instruction.Figure 5-3. EEPROM Write Control Register in EEPROM Write Manipulation
ERE
7
EWTC6
6
EWTC5
5
EWTC4
4
EWE
3
EWST
2
1
0
FCEH
Address
EWC
Symbol
Operating mode selection bit
ERE EWE EWST Mode
0 1 0 EEPROM write enabled mode
Dedicated EEPROM write timer clock selection bit
EWTC6 EWTC5 EWTC4 Count clock selection
00018 × 213/fX
00118 × 212/fX
01018 × 211/fX
01118 × 210/fX
10018 × 29/fX
10118 × 28/fX
Other than above Setting prohibited
fX = System clock oscillation frequency