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.

CC1312R: Sensor Controller 3-Wire SPI

Part Number: CC1312R
Other Parts Discussed in Thread: SYSCONFIG, CC1310

Hi,

I see that in the SysConfig tool in Code Composer Studio I can select 3 wire SPI options. Is something like this available for the sensor controller. I have a device which only operates with 3-wire SPI but I need access to it during the ultra low power modes offered by the sensor controller.

Kind Regards,

Scot

  • Hi Scot,

    When you talk about 3-wire SPI, do you refer to operation without chip select or the half-duplex case? All the SPI hardware in the device is full-duplex which means that if you are looking for the half-duplex mode where both communicate on the same channel, then you would need to hack this with the full 4-wire mode as it is not supported as such.
  • Hi,

    Sorry I wasn't more clear. I'm talking about Half Duplex mode (SDO and SDI on the same pin).

    You mention is has to be hacked in - I don't have much experience with the sensor controller, but is there a way to change the IO Mapping in the Execution or Event Handling Code?

    Kind Regards,

    Scot
  • Hi Scot,

    There is not. What I meant by "hacking" is that you could possible maybe do a HW workaround where you basically bind two IOs together (this would need to be verified from case to case) or you do it purely by SW with bit-banging.

    While CC1312 do have the SPI hardware, the old CC1310 Sensor Controller did actually implement a bit-banged SPI solution. If you go with the bit-banged version and you are not able to make it work with the available API set, you can step it down a but further to actual assembly code that you can run on the SC (you can basically implement your own functions/APIs for the sensor controller).