How to use SPI of CYW20735

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

cross mob
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi:

  as  we know, the  spi  master initial API  is below:

void wiced_hal_pspi_init(  spi_interface_t spi,

                           UINT8           devRole,

                           UINT16          spiPinPullConfig,

                           UINT32          spiGpioCfg,

                           UINT32          clkSpeed,

                           SPI_ENDIAN      endian,

                           SPI_SS_POLARITY polarity,

                           SPI_MODE        mode,

                           UINT8           csPin);

there is a  input parameter(UINT8           csPin)of the wiced_hal_pspi_init, can  I  use the IO pin that does  not  belong  to the CYW20735  to control  the  SPI slave cs?

if  I use  the   IO pin of  another  MCU  as  the  CS  PIN ,  how to  fill  in  the  input  parameter   UINT8  csPin   of  the   wiced_hal_pspi_init  API

thanks!

Mandy

0 Likes
1 Solution

Sorry, you must assign a GPIO to the CS function in the SDK.

View solution in original post

0 Likes
5 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The 20735 doesn't support to use the CS pin on the other MCU.

Why do you need to port the CS pin to another MCU?

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi OwenZ_26:

  because the third party CYW20735 bt mesh module which  we used is not enough gpios to use

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi OwenZ_26:

as I know, the SPI CS pin function  only  produce a high and low level

0 Likes

Sorry, you must assign a GPIO to the CS function in the SDK.

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

thanks. I  have gotten  it !

0 Likes