Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Good morning,
I want to synchronize a 600Hz pwm, with an external 60Hz signal, coming from the electrical network.
So I configured the etpwm module to generate a 600Hz output and enable Het1_16, as a synchronization input (EPWM1SYNCI), but I can't get the signals to synchronize
I attach images:
1.- Configure the multiplexing of pins
Here is something to be modified?
Signals not syncing
Code:
|
void TreePhaseInit() { etpwmInit(); etpwmDisableCounterLoadOnSync(etpwmREG1); /* Set the time period as 1000 ns (Divider value = (1000ns * 2MHz) - 1 = 89)*/ /* Configure Compare to register 1 */ } |
Attached complete program code:
2134.RM46_ETPWM_TRIFASICO_2017.rar
Please, I await your comments, maybe some configuration is missing!






