cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

Contributor

Hi :

  I want to know if there is any sample code to use the CYW20735 SPI , if I can do the SPI  communication on the CYW920735q60EVB-01.

   it  seems that the SPI pin is not routed to the pin header.  Refer to the manual of CYW20735,it seems that there is only a set of SPI interface for the CYW20735

   Serial Peripheral Interface
    SPI_MISO                         40  PIN

    SPI_MOSI                         39   PIN

    SPI Master OSPI_CSN     38   PIN

    SPI Chip SelSPI_CLK      35   PIN

thanks!

0 Likes
Reply
1 Solution
Moderator
Moderator

Hi ,

I am sorry, we do not have ready example code for 20735 SPI.

However you may use the APIs given in wiced_hal_pspi.h and try.

The pins which you have mentioned is used to interface Sflash.  You may use any other GPIOs. All GPIOs are supermux. All GPIOs can be programmed for any alternative functions. For example, key scan, SPI, I2C, IR_TX, quadrature, peripheral UART, ADC, etc. Check fn wiced_hal_gpio_select_function in wiced_hal_gpio.h

You may refer to CYW20719 sample code : /20719-B1_Bluetooth/apps/snip/hal/spi_master

Thanks,

Anjana

View solution in original post

5 Replies
Moderator
Moderator

Hi ,

I am sorry, we do not have ready example code for 20735 SPI.

However you may use the APIs given in wiced_hal_pspi.h and try.

The pins which you have mentioned is used to interface Sflash.  You may use any other GPIOs. All GPIOs are supermux. All GPIOs can be programmed for any alternative functions. For example, key scan, SPI, I2C, IR_TX, quadrature, peripheral UART, ADC, etc. Check fn wiced_hal_gpio_select_function in wiced_hal_gpio.h

You may refer to CYW20719 sample code : /20719-B1_Bluetooth/apps/snip/hal/spi_master

Thanks,

Anjana

View solution in original post

Contributor

thank you,I get it

发自我的iPhone

0 Likes
Reply
Contributor

Hi 

0 Likes
Reply
Moderator
Moderator

Hello,

In CYW20735, only one SPI can be used for application. The other one is for SPI sflash.

The APIs for SPI uses the one for application. So customer don't have to bother about the second one.

Thanks,

Anjana

Contributor

thanks,I got it

0 Likes
Reply