NEC PD754244 Network Card User Manual


 
CHAPTER 5 EEPROM
85
Users Manual U10676EJ3V0UM
5.5.3 Write manipulation
Use the following procedure to write to EEPROM.
Any instruction other than one related to EEPROM writing can be executed even during an EEPROM write
operation.
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 × 2
13
/fX
00118 × 2
12
/fX
01018 × 2
11
/fX
01118 × 2
10
/fX
10018 × 2
9
/fX
10118 × 2
8
/fX
Other than above Setting prohibited
fX = System clock oscillation frequency