I use the TWR-KV5F220M, and I did run the demo file : flexPWMA DEMO. I would like to use the eFlexPWMB on the module motor connector, but I don't know how initialize and run the module eflexPWMB on the PIN ( PTE 5, PTE 6, PTE7...) ?
Hello Cyril,
Could you please tell me which example you are using? (KSDK example?, Quick start package example?).
By reading KV5x's reference manual, there is a register for PWM (PWMx_OUTEN) that enable signals for PWMA, PWMB and PWMX modules, once they are enabled, you can configure every port to be used as FLEXPWMx_n, for example, to configure PTE5 to be used as PWM1_A0 output, you should write:
PORTE_PCR5 = PORT_PCR_MUX(5);
previous instruction, let me use PTE5 in its alternative ALT5 mode, which is FLEXPWM1_A0.
I hope this can help you!
Regards,
Isaac