Q-Code User Manual
Ver. 7.0 2021/11/30
181
4. Depending on the number of the erased block, erasing may take seconds. All commands
are invalid during erasing process except SPI_RDSR command.
5. After the erasing is completed, the “SPI_EraseEnd” path is automatically executed. User
will know the SPI_EraseEnd completing time through this path to perform subsequent
actions.
Ex.
SPI_BE(0x14321, 2)
; Erase the data in address 0x10000~0x2FFFF of SPI Flash through SPI1.
R0=0x3, SPI_BE(R0, 3, SPI2)
; Erase the data in address 0x30000~0x5FFFF of SPI Flash through SPI2.
Erase: X0=0x17, SPI_BE(X0, SPI1), R3=1
SPI_EraseEnd: R3=0
; Erase the data in address 0x170000~0x17FFFF of SPI Flash through SPI1. When the erase is in
progress, set R3 as 1. When the erase is completed, set R3 as 0.
4.9.11 SPI_DP(SPIGroup)
Transmit Deep Power-down command to SPI Flash to enter deep power-down mode.
It is
recommended to execute this command before entering the sleep mode to save SPI Flash
power consumption.
SPIGroup:
Select the corresponding SPI channel.
NY6 does not support SPIGroup parameter.
NY7 supports SPI1 or SPI2; default is SPI1 if omitted.
Note:
1. NY4 / NY5 / NY5+ / NY6A / NY9T / NX1 do not support this command.
2. This command is applicable to the SPI Flash of N25Q series; the instruction is 0xB9.
3. After SPI Flash entering deep power-down, all commands are invalid except SPI_RDP
command to wake up.
Ex.
SPI_DP
; Transmit Deep Power-down command through SPI1.
SPI_DP(SPI1)
; Transmit Deep Power-down command through SPI1.
SPI_DP(SPI2)
; Transmit Deep Power-down command through SPI2.
4.9.12 SPI_RDP(Result, SPIGroup)
Transmit Release Deep Power-down command to SPI Flash. Wake up SPI Flash from deep
power-down mode and read back 8-bit Device ID.
Result:
Save the read-back Device ID which can be a combination of Ri or Xi, not reading the ID if
omitted.