This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220S: SPI CS getting low for every 1 byte data frame

Part Number: CC3220S
Other Parts Discussed in Thread: SYSCONFIG

Tool/software: Code Composer Studio

SPI CS is toggling for every 1 byte data frame.But I want my CS should not go high until all data bytes are sent?

Is their any API or structure register setting available for keeping my CS low?

  • Hi,

    There is an option in the SPI configuration struct to set the SPI peripheral to operate the way you want it, where CS is asserted continuously until the end of the transfer. If you look at ti_drivers_config.c, there is the spiCC32XXDMAHWAttrs struct array. The second object is the config for the user SPI. In there, the .csControl option can be set to SPI_SW_CTRL_CS to get the desired behavior.

    However, the issue is that since that ti_drivers_config.c is derived from the SysConfig tool, you will need to disable SysConfig in order for that change to stick. You will need to follow the instructions in Task 8 of this SimpleLink Academy module in order to do that: http://dev.ti.com/tirex/explore/node?node=AMbaIpevqf00fzNR.N96jg__fc2e6sr__LATEST

    Once you have made the change to ti_drivers_config.c, copied it out of the Debug folder and into your main workspace folder, and disabled Sysconfig the SPI interface should work like desired.

    Regards,

    Michael