Q-Code User Manual
Ver. 7.0 2021/11/30
175
on SPI Flash. According to different SPI Flash, the stable time after power-up is also different,
ranging from about 200us to 15ms. The capacitance on the PCB also affects the time that SPI
Flash reaches the operable voltage after power-up, as well as the discharge time after
power-off. Therefore, if the SPI Flash is powered on after power-off, the status of SPI Flash
should be checked, or there should be an adequate delay.
2. Different SPI Flash have different settings for Quad Mode. Please be aware if the QE bit has
been properly set.
4.9.1 SPI_CS_On(SpiGroup)
Set the CS pin as low level.
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. When any one of the CS pins is set to low level, the system will not be able to enter sleep
mode.
Ex.
SPI_CS_On
; Set the CS pin of SPI1 as low level.
SPI_ CS_On(SPI1)
; Set the CS pin of SPI1 as low level.
SPI_ CS_On(SPI2)
; Set the CS pin of SPI2 as low level.
4.9.2 SPI_CS_Off(SpiGroup)
Set the CS pin as high level.
SPIGroup:
Select the corresponding SPI channel.
NY6 does not support SPIGroup parameter.
NY7 supports SPI1 or SPI2; default is SPI1 if omitted.
Note: NY4 / NY5 / NY5+ / NY6A / NY9T / NX1 do not support this command.
Ex.
SPI_CS_Off
; Set the CS pin of SPI1 as high level.
SPI_ CS_Off(SPI1)
; Set the CS pin of SPI1 as high level.
SPI_ CS_Off(SPI2)
; Set the CS pin of SPI2 as high level.