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 it possible to update Counter Match1 via HLC instead of CPU when using CLB

Part Number: TMS320F280049C

Hi Champs,

Is it possible to trigger HLC execution via PWM to update Match1 in Counter?

1. Update the counter match1 value at the ZERO position of the PWM



2. HLC is triggered by an event

Thanks!

Best Regards,

Julia

  • Hi Julia,

    Thanks for reaching out on E2E forums. For triggering the HLC, this can easily be done if you have extra CLB inputs available. You can assign the TBPRD = Zero signal from the EPWM as an input into the CLB, and then the corresponding CLB BOUNDARY input can be used to signal to the HLC to update the counter value. 

    Regarding the data that will be used to update the counter, you have the option of preloading your data into the HLC registers or making use of the SPI FIFO for data exchange

    Regards,

    Peter