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.
Hi,
We are using TMS320F28377S DSP IC in one of the project where we are driving a 28VDC BLDC motor. We are using EPWM module to generate PWMs from DSP. Pin 1 to Pin 7. Configured Hall sensor input as GPIOs to pins 161, 162 and 163. As we are running the motor, we observed there is a current surge. We ocompared Hall sensor inputs and EPWM outputs and understood there is a delay of 300uS in execution. We analyzed the code execution delay and found it contributes only 70uS delay. However DSP hardware itself causing 230uSec delay. Could you please help us on this issue. Attached monitored waves.
Waveform names are self explanatory. the delay can be observed between Hall A (Input at DSP pin) rising edge to Btm A (output of DSP) falling edge.
I'm not following the question, what is the delay measure between? Which events?
Hi Nima,
The delay is from the event the DSP detecting the input HALL signal to the event that gives output on the DSP output pin for the H-bridge control.
Please let me know if you need more information.
This is most likely due to how you have set up your PWM. If they are using shadow mode and you write to change the duty/period, they take effect on the next loading event instead of immediately.