fx3 booting chipselect

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
gean_3054931
Level 5
Level 5
10 likes given 5 likes given First like received

Hello,

In fx3s, the SPI_SS# PIN is connected to SPI FLASH chipselect. How to disable/enable this pin?

can i make this pin High or high imedence in the firmware?

regards,

geetha.

0 Likes
1 Solution
alamandaa_16
Moderator
Moderator
Moderator
10 likes received First like received

Hi Geetha,

Step-1:

Slave select using firmware

status = CyU3PSpiSetConfig (&spiConfig, NULL)

&spiConfig Which contain following parameter.

spiConfig.ssnCtrl    =/* This is the slave select control using firmware*/.

Step-2:

CyU3PSpiSetSsnLine (CyFalse);------This api is set false means SPI_SS# pin is deassert.

CyU3PSpiSetSsnLine (CyTrue);-------This api is set True means SPI_SS# pin is assert.

Please refer the SPI DMA mode  example provided with the SDK in this path: "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspidmamode".

Regards,

Anil Srinivas.

View solution in original post

0 Likes
1 Reply
alamandaa_16
Moderator
Moderator
Moderator
10 likes received First like received

Hi Geetha,

Step-1:

Slave select using firmware

status = CyU3PSpiSetConfig (&spiConfig, NULL)

&spiConfig Which contain following parameter.

spiConfig.ssnCtrl    =/* This is the slave select control using firmware*/.

Step-2:

CyU3PSpiSetSsnLine (CyFalse);------This api is set false means SPI_SS# pin is deassert.

CyU3PSpiSetSsnLine (CyTrue);-------This api is set True means SPI_SS# pin is assert.

Please refer the SPI DMA mode  example provided with the SDK in this path: "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspidmamode".

Regards,

Anil Srinivas.

0 Likes