Dear community,
I have several questions regarding the "etpwm_ecap_example".
1. Under "PINMUX" tab after checking boxes "ETPWM" and "ECAP", ball A4 has a conflict. I removed ETPWM1SYNCI (synchronization of PWM to another input signal?), since the generated PWM in this tutorial should be considered as output. Must the synchronization of PWM signal refer to an external PWM signal or signals of other forms of waves? And since TBCLK sync (interal synchronization?) is enabled, ETPWM1SYNCI and ETPWM1SYNCO can both be disconnected?
2. Under "ETPWM1" tab in Clock Configuration, VCLK3 (MHz) the value 75.000 cannot be changed. Moreover HSPCLKDIV and CLKDIV are to be set to 0 according to the screen shot in the example, but the following codes mean that both of them should be set to 1.
/* Alternate code for configuring ETPWM and ECAP */
/* Set the TBCLK frequency = VCLK4 frequency = 90MHz */
etpwmSetClkDiv(etpwmREG1, ClkDiv_by_1, HspClkDiv_by_1);
Divided by 0 .. hmm doesn't make sense, so "set 0 (or 1) in GUI" mean "set 1 in the code"?
3. Under "ETPWM1" tab in PWM Configuration, there are two PWM (ETPWM xA and xB). Can I close either of them in the configuration?
I am an absolute beginner. Any tip or suggestion is highly appreciated!
Thanks in advance!
Best regards,
Honig