I'm new on Texas Microcontrolers. I'm making some tests and I realized that Texas Microcontrolers are really powerful.
I'm using the LAUNCHXL-F28377S development board. I need to control a DC motor in a H-Bridge. I've read several applications notes and I downloaded the example "ecap_capture_pwm_cpu01" to understand how to configure the PWM modules. But I'm still having some difficult. I'd like to ask some questions:
1. Period.
To configure the period I have to use the registers HSPCLKDIV and CLKDIV? If yes, for a 200MHz clock frequency my minimum PWM frequency will be 111KHz (200MHz / 128x14)? I need 18KHz. What should I do to configure the PWM frequency to 18KHz?
2. Direction
To control 4 transistors I need 4 PWM outputs. How should I configure to use EPWM1A - EPWM2B for forward direction and EPWM2A - EPWM1B for reverse?
How can I turn on and turn off the PWM?
3. Duty cycle
How can I control the duty cycle?
Thank you!