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.

RM46L852: Reading Rotational sensor value via mibspi with RM46L852

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Hello,

after spendig 2 days of research I am here to geht some help hopefully. I am a beginner in CCS and the MIBSPI communication and new here.

I simply want to read out the values of a rotational sensor (Novotechnik RSC- 2800), which communicates via mibspi.

Unfortunately there aren't any Tutorials or threads fitting to my skill level.

Sensor Information: runs in Mode 1, Connectors: MISO, CLK, SS/CS --> First question: The TI File says in three-pin option there is no SS/CS, but MOSI ?

 16 Bit Data Structure

In CCS I tried to achieve a running config of the mibspi by using the methods of the mibspi.h file. Even though it builds I'm sure its way to less.

Maybe someone can recommend a link, book, or even have a comparible source code? I got the Idea of SPI protocoll but couldn't realize it in CCS.

I'd would be very thankful for any kind of help!

Best regards Phil Slight smile

  • Hi Phil,

    It should be fine to connect SPICLK, SPISOMI, and SPICS to the sensor, and leave the SPISIMO unconnected. But the SPISIMO pin have to be configured as SPISIMO rather than others for example GIO or N2HET.

    Please use HALCOGen to generate SPI driver: header file and source code. 

    https://www.ti.com/tool/HALCOGEN

    As a SPI slave, the sensor receives the clock from MCU, and output the data at SPI clock edge (rising or falling). The MCU needs to send dummy data to sensor in order to generate SPICLK for the sensor.

    If you want to read 4 words (16-bit) of data, 4x16 clocks are needed, so you have to transmit 4 words of dummy data.

    Please take a look at the SPI example in HALOCGen help.