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.

TMS320F280039: CLB Counter uses HLC to sync update Match1 REF & Match2 REF

Part Number: TMS320F280039


Tool/software:

Hi Champs,

Through the TRM, we can see that the HLC module can load the values of values to Counter's Match1 REF and Match2 REF based on specific event signals.

However, in HLC section, HLC can treat C0, C1, and C2 as either Source or Destination, and C0, C1, and C2 only are referred as "registers of the counter", without specifying whether they are "counter values" or "REF values". Could you help to check this?

And do we have any example code about this?

Thanks!

Regards,

Julia

  • Hi Julia,

    Depending on which HLC instruction is used, C0 could refer to either the counter value or a counter reference like MATCH1 or MATCH2:

    For example, if the MOV_T1 command was used, specifying C0 as a parameter would move a register value like R0 to the match1 register of counter 0.

    Let me know if anything else is unclear.

    Thank you,

    Luke