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.

HRPWM Calibration

Other Parts Discussed in Thread: TMS320F28027

Hi,

I want to output an arbitrary waveform via HRPWM on a Piccolo TMS320F28027. Thus the PWM needs to be consecutively updated and I cannot afford 2ms processor load for calibration. Would it be enough to calibrate once after lets say one minute warm up? Or can I do the calibration in user mode while PWM calculation and update runs in interrupt? Processor load will be around 90%.

Thanks in advance

Thomas

  • Thomas -

    The HRPWM can be calibrated wherever and whenever you want in your code as long as you calibrate to completion at least once prior to outputting the high-resolution PWM signal the first time. 

     Note that calibration requires multiple calls to the SFO() function until it returns a status code indicating that calibration is complete - if you like, you can periodically call the calibration function in an ISR -it will just take several calls to fully complete.

    Please let me know if you need more clarification.