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.

CCS/TMS320F28379D: CLA control GPIO

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hello. Now I want to use CLA to control a GPIO outputting a 10KHz squae wave. But How do I configurate GPIO to give access to CLA. And How do I change the frequency of CLA to interrupt  GPIO to 10KHz?
Is there any example of CLA controlling GPIO? If yes, please tell me how to get it . Thank you.

  • Hi,

    We may not have exact example for the usecase you mention but to control a GPIO from CLA you need to configure the GPxCSELy (e.g. GPACSEL1) register bit for specific GPIO. This need to be done by CPU1 code and after it is configured to control by CLA then CLA code can write to any of GPIO data register to toggle the specific GPIO pin. For 10KH, you can use timer to interrupt CLA (please refer timer example) at that interval.

    Hope this helps.

    Regards,

    Vivek Singh

  • Hello,

            Thank you for replying my question. I can use CLA control a GzpIO now as you said . But how do I use timer to interrupt CLA? Does  It mean that  I need to configure timer to be the CLA trigger source by

    DmaCLaSrcSelReg register? If yes, please tell me  how to finish this configuration.While I can't find any control register in Cla trigger source table referring to choose timer to be a Cla trigger source. Hope to have your answer soon. Thank you.

    Jarvis

  • Hi,

    You need to configure CLA1TASKSRCSEL1/CLA1TASKSRCSEL2 register (please refer "Table 3-83. CLA1TASKSRCSEL1 Register Field Descriptions) with correct value as mentioned in "Table 6-1. Configuration Options". For example for Timer 0 (TINT0) configure specific TASKx bit field with value 68 (0x44).

    Hope this helps.

    Regards,

    Vivek Singh

  • Thank you so much. So "CLA1TASKSRCSEL2=68" means TINT0 is choosed to be a source of CLA task. After Configure the timer0 and initial it, every cycle of time0 will trigger CLA task, isn't it?

  • After Configure the timer0 and initial it, every cycle of time0 will trigger CLA task, isn't it?

    That is correct.

    Regards,

    Vivek Singh