Q-Code User Manual
Ver. 7.0 2021/11/30
182
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 0xAB.
Ex.
SPI_RDP(R1:R0)
; Wake up SPI Flash from deep power-down through SPI1 and save Device ID into [R1:R0].
SPI_RDP(SPI1)
; Wake up SPI Flash from deep power-down through SPI1 and do not read Device ID.
SPI_RDP(X0, SPI2)
; Wake up SPI Flash from deep power-down through SPI2 and save Device ID into X0.
4.9.13 SPI_WRSR(Data, SPIGroup)
Transmit Write Status Register command to SPI Flash to modify the data of Status Register.
Data
:
The Status Register data can be immediate value or a combination of Ri or Xi.
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 0x01.
3. This command will automatically set WEL bit to 1, users do not need to execute SPI_WREN
command additionally.
Ex.
SPI_WRSR(0x18)
; Write 0x18 into Status Register through SPI1.
R0=0x8, R1=0x1, SPI_WRSR(R1:R0, SPI1)
; Write 0x18 into Status Register through SPI1.
X0=0x18, SPI_WRSR(X0, SPI2)
; Write 0x18 into Status Register through SPI2.
4.9.14 SPI_RDSR(Result, SPIGroup)
Transmit Read Status Register command to the SPI Flash to read Status Register data.
Result
:
Save the read-back data of Status Register which can be a combination of Ri or Xi.
SPIGroup:
Select the corresponding SPI channel.
NY6 does not support SPIGroup parameter.
NY7 supports SPI1 or SPI2; default is SPI1 if omitted.
Note: