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.

TMS320F280039C: SPI on CLA

Part Number: TMS320F280039C

Tool/software:

Hi experts,

a customer is having an question of using SPI on the CLA, but let me forward the question:

Just wanted to ask you guys if it’s entirely possible to run SPI on CLA? I have come across a few posts on the TI forum about the CLA having access to SPI peripheral registers. In these scenarios SPI transactions were initiated by the CPU. So I’m not sure if it is really possible to offload the SPI on CLA.

Just to give you a background on our application. Basically we will be running two control loops on the CLA and since the built-in ADC doesn’t meet our requirements we will be using external ADCs. Basically we wanted to check with you if it is possible to have the CLA initiate SPI transactions with the external ADC. This way the readback is readily available for the control loops to use. Then we will just use either the CLA Data Memory or the CLA Message RAMs to transfer the ADC readbacks to the MCU for housekeeping tasks.

Kind regards,

Marinus

  • Hi Marinus,

    Yes, on the F28003x the CLA has SPI access. This means that the CLA can read/write all of the SPI registers, and the SPI peripheral can be configured as a trigger source for CLA tasks. If configured, the SPI TX triggers can start a CLA task when the TXFFST is less than the configured TXFFIL and the SPI RX triggers can start a CLA task when the RXFFST is greater than or equal to the configured RXFFIL. 

    Based on your application, for the SPI TX CLA task, it sounds like you may want to use a software trigger (maybe periodically) instead to initiate the SPI transmit instead of having it automatically trigger when the SPI is ready to transmit.

    So yes, what you have described is possible to do with the CLA module. Let me know if you have any other questions.

    Best Regards,

    Delaney