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.

MSPM0L1306: Modify CTL0 SPI register value

Part Number: MSPM0L1306
Other Parts Discussed in Thread: TRF7960A, , SYSCONFIG

Tool/software:

Hello, I am making a firmware for a MSPM0L1306 which controls a TRF7960A RFID reader. According to TRF7960A datasheet, when you are sending an instruction to the reader via SPI, it must be done with phase 1 (capturing data on the second clock edge), but when reading, it must be done with phase 0 (on the first clock edge). Please correct me if I am wrong.

I have been analyzing example code for MSP430 MCU, and in the SPI reading function, you can see how the phase is changed with a simple instruction (UCB0CTL0 &= ~UCCKPH; and UCB0CTL0 |= UCCKPH;).

How can I do this with MSPM0L1306? Is there any example code for TRF7960A with a MSPM0 MCU?