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.

TMS320F280049C: Is there a way to clear CLB input by CLB? When CLB input is GPREG BIT.

Part Number: TMS320F280049C

I want to clear CLB "GPREG BIT" input when the CLB counter equal to match1_var. How can I do that?

  • Hi Alen,

    .
    One implementation for doing this involves using the High Level Controller (HLC). In the HLC, you can set an event that is triggered on COUNTER_x.counter_match1. For the program code for this event, you can instruct it to issue an interrupt. In the main .c file within your interrupt handler, you can then use driverlib code (CLB_setGPREG) to clear the GPREG BIT. Hope this helps.

    Regards,

    Peter