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.

Sensor Controller SPI implementation for Trf7963A read MISO on raising edge

Other Parts Discussed in Thread: CC2640, TRF7963A

Hi there,

I am currently looking into the design of an NFC reader with the CC2640 and still not sure if I should use the sensor controller to provide SPI or on the MCU side.

The Trf7963A requires to read on the raising edge while write bit is read on falling edge.

Can this be implemented with the Sensor Controller ?

Thank you

Ralph

  • just to bring that up in the forum, anybody here who uses SensorController SPI and can answer this question ?

    I have to go forward with my software concept, pls
  • Hi Ralph,

    Yes, you can do SPI with the sensor controller, and for low power sensors for example that is the most efficient solution. I am not sure about the NFC device though, whether it is best to use the M3 or the SCE depends a lot on your use case and the power consumption of the NFC when used.

    Can you share some more details on your application?

    Cheers,
    Fredrik
  • Hi Ralph,

    With our current API in Sensor Controller Studio you can configure phase/polarity individually for each read/write:

    // Read the accelerometer
    spiBegin(SPI_POL0_PHA0, AUXIO_SPI_CSN_ACCEL);
    spiTx8bit(SPI_POL0_PHA0, 0x42);
    spiRx16bit(SPI_POL0_PHA0; output.x);
    spiRx16bit(SPI_POL0_PHA0; output.y);
    spiRx16bit(SPI_POL0_PHA0; output.z);
    spiEnd(SPI_POL0_PHA0, AUXIO_SPI_CSN_ACCEL);

    Hopefully that should be enough for your application. Otherwise the assembly code used for the commands is available and modifiable, found at (program_files_path)\Texas Instruments\Sensor Controller Studio\proc_defs.

    Regards,
    Svend