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.

TMS570LS Technical Reference - NHET - ECMP Instruction Description

Reading the NHET chapter of the TMS570LS Technical Reference, the ECMP instruction has the following description:

 

If the hr_lr bit is cleared, the pin action will occur after a high resolution delay from the next

resolution clock.

 

What is meant by the phrase "next resolution clock"?  Is this the next "high resolution clock" or some other clock?  I expect the delay to start on the next high resolution clock. 

Please confirm.

  • Jeff,

    The TMS570LS technical reference manual has a very apt example on page 1237 (page number 1229 if you have printed the TRM). This explains the use of the hr_data field when using the ECMP instruction to generate a PWM signal.

    The "next resolution clock" refers to the next loop resolution clock once a compare match occurs. If the HR mode is used, then the number of HR cycles are counted from this next loop resolution clock edge.

    Regards,

    Sunil