4.2.5.6.1 Sequence of eNVM Program and Verify Operations when using ProgramADS and VerifyADS Commands

The following figure shows the following sequence of eNVM ProgramADS and VerifyADS commands:

Cortex-M3 master requests for exclusive register access by writing 0x1 to the REQACCESS register.

Fills the WDBUFF (Write Data Buffer) register with the data to be written to the eNVM array.

Issues ProgramADS command.

Completes the eNVM Program operation and starts the eNVM Verification by issuing a VerifyADS command.

Completes the eNVM verify operation.

Releases the exclusive register access by writing 0x0 to the REQACCESS register.

The status of the eNVM operations are monitored by polling the Status register response.

For a description of the registers, see Table 4-20.

The following figure shows the complete eNVM program (ProgramADS) and eNVM verify (VerifyADS) operations.

Figure 4-8. eNVM Program (ProgramADS) and Verify (VerifyADS) Operations

At cursor 1, steps 1 and 2 in the sequence are performed. At cursor 2, the eNVM Program operation gets completed and Verify operation gets started. At Cursor 3, the verify operation is completed. Refer to the preceding figure.

eNVM commands sequence is shown in waveforms. See Figure 4-9 through Figure 4-12.

The Cortex-M3 processor gets the exclusive register access by writing 0x1 to the REQACCESS register. It reads the value 0x5 from AHB read data line (HRDATA), it means the exclusive register access is issued. Then the WDBUFF (Write Data Buffer) register is filled with the random data, as shown in the following figure.

Figure 4-9. Exclusive Register Access and Filling Data in WDBUFF

The following figure shows issue of ProgramADS command by writing 0x08 to the CMD register in Table 4-20.

Figure 4-10. Issuing the ProgramADS Command
Important: HWDATA[31:24] holds the ProgramADS command and HWDATA[23:0] holds the eNVM page address. Refer to Table 4-5.

The following figure shows completion of ProgramADS and issue of VerifyADS command.

Figure 4-11. Completion of ProgramADS and Issue of VerifyADS Command

The ProgramADS command completion can be confirmed by polling Status register response. The following figure shows the completion of eNVM verify operation.

Figure 4-12. Completion of eNVM Verify Operation