Quantcast
Viewing all articles
Browse latest Browse all 262198

TMS320F280049: ePWM: GLDPRD and SOCAPRD synchronization

Part Number: TMS320F280049

Hello everyone,

I'm using the TMS320F280049 for a power converter where the PWM frequency is a multiple of the control loop frequency. I'm using the SOCAPRD register to rescale the control ISR frequency.

I would like to transfer the PWM shadow register to active registers at the same frequency of the control loop, and I see that GLDPRD can help me but I have the following doubt:

Is there a way to ensure that SOCACNT and GLDCNT counts toghether, having always the same value or at least starting them at the same time? If I set the same value into SCAPRD and GLDPRD and their respective counters count together, the shadow to active transfer should happen at the same time the control ISR is called. Is there a way to ensure the synchronization between the two counters?

Thanks

Angelo


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>