2 Replies Latest reply on Sep 13, 2017 10:43 PM by rautinst_2245351

    SPI Protocol issues PSOC4 BLE

    rautinst_2245351

      I have written basic code for reading x,y and z axis data from ADXL362 accelerometer using SPI protocol.Following are the problems I am facing while using SPI protocol with PSOC4 BLE ki(CY8C4247LQI-BL483):

      1.when SPI is used in Byte mode with Rx buffer size set more than 16, then SPI won't work and data is not received from ADXL362. If Rx buffer size is less than or equal to sixteen than program works and data is received.

      2.If I change pin configuration as mentioned below in the same program then SPI won't work even if the Rx buffer size is less than or equal to 16.

       

      P4.0=SCB1_SPI_MOSI[0]

      P4.1=SCB1_SPI_MISO[0]

      P5.0=SCB1_SPI_SS0[0]

      P5.1=SCB1_SPI_SCLK[0]

       

      I have attached code below please help.