7.4.6 EEDONE Register (Offset = 0x18) [reset = 0x0]
EEPROM Done Status (EEDONE)
The EEDONE register indicates completion status of a write to the following registers:
- EERDWR or EERDWRINC register (for writes to the EEPROM memory)
- EEPROT register (for setting read and protection of the current block)
- EEPASSn registers (for configuring a password for a block)
- EEDBGME register (for mass erase of an EEPROM block)
This register can indicate if the write ended in an error or not. The EEDONE register can be used in conjunction with the EEINT register to be indicate completion. The register can be EEDONE polled or read after an EEINT register interrupt fires. If any of the bit values in the EEDONE register are 1 after completion, then an error has occurred for that register write. If all of the bits are clear then the writes completed with success.
NOTE
Reads of the following registers during the EEPROM initialization sequence are only valid when the WORKING bit is 0 in EEDONE register:
- EERDWR or EERDWRINC
- EEPROT
- EEPASSn
EEDONE is shown in Figure 7-30 and described in Table 7-31.
Return to Summary Table.
Figure 7-30 EEDONE Register
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
RESERVED |
R-0x0 |
|
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
RESERVED |
R-0x0 |
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
RESERVED |
R-0x0 |
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RESERVED |
WRBUSY |
NOPERM |
WKCOPY |
WKERASE |
RESERVED |
WORKING |
R-0x0 |
R-0x0 |
R-0x0 |
R-0x0 |
R-0x0 |
R-0x0 |
R-0x0 |
|
Table 7-31 EEDONE Register Field Descriptions
Bit |
Field |
Type |
Reset |
Description |
31-6 |
RESERVED |
R |
0x0 |
|
5 |
WRBUSY |
R |
0x0 |
Write Busy
0x0 = No error
0x1 = An attempt to access the EEPROM was made while a write was in progress.
|
4 |
NOPERM |
R |
0x0 |
Write Without Permission
0x0 = No error
0x1 = An attempt was made to write without permission. This error can result because the block is locked, the write violates the programmed access protection, or when an attempt is made to write a password when the password has already been written.
|
3 |
WKCOPY |
R |
0x0 |
Working on a Copy
0x0 = The EEPROM is not copying.
0x1 = A write is in progress and is waiting for the EEPROM to copy to or from the copy buffer.
|
2 |
WKERASE |
R |
0x0 |
Working on an Erase
0x0 = The EEPROM is not erasing.
0x1 = A write is in progress and the original block is being erased after being copied.
|
1 |
RESERVED |
R |
0x0 |
|
0 |
WORKING |
R |
0x0 |
EEPROM Working
0x0 = The EEPROM is not working.
0x1 = The EEPROM is performing the requested operation.
|