15.2.3 NVMCON1
Note:
- Bit is undefined while WR =
1
. - Bit must be cleared by software; hardware will not clear this bit.
- Bit may be written to
‘
1
’ by the user to implement test sequences. - This bit can only be set by following the sequence described in the “NVM Unlock Sequence” section.
- Operations are self-timed and the WR bit is cleared by hardware when complete.
- Once a write operation is initiated, setting this bit to zero will have no effect.
Name: | NVMCON1 |
Offset: | 0x1C90 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
NVMREGS | LWLO | FREE | WRERR | WREN | WR | RD | |||
Access | R/W | R/W | R/S/HC | R/W/HS | R/W | R/S/HC | R/S/HC | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 6 – NVMREGS NVM Region Selection
Value | Description |
---|---|
1 | Access DIA, DCI, Configuration, User ID, Revision ID, and Device ID Registers |
0 | Access Program Flash Memory |
Bit 5 – LWLO Load Write Latches Only
Value | Name | Description |
---|---|---|
1 | When FREE = 0 |
The next WR command updates the write latch for this word within the row; no memory operation is initiated |
0 | When FREE = 0 |
The next WR command writes data or erases |
- | Otherwise: | This bit is ignored |
Bit 4 – FREE Program Flash Memory Erase Enable
Value | Description |
---|---|
1 | Performs an erase operation with the next WR command; the 32-word pseudo-row containing the indicated address is erased (to all 1s) to prepare for writing |
0 | The next WR command writes without erasing |
Bit 3 – WRERR
Bit 2 – WREN Program/Erase Enable
Value | Description |
---|---|
1 | Allows program/erase cycles |
0 | Inhibits programming/erasing of program Flash |
Bit 1 – WR Write Control(4,5,6)
Value | Description |
---|---|
1 | Initiates the program/erase operation at the corresponding NVM location |
0 | NVM program/erase operation is complete and inactive |
Bit 0 – RD Read Control
Value | Description |
---|---|
1 | Initiates a read at address = NVMADR |
0 | NVM read operation is complete and inactive |