Hello,
I'm trying to understand how to generate a PWM with my launchpad. I read the documentation about this, watched this video and read the example codes. I think I have a good understanding of how the submodules work together. But there is something I don't understand.
In the user guide, I have the following formula for calculing the TBPRD : T_{pwm} = (TBPRD + 1) * T_{TBCLK}.
For my application, I need a period of 20 ms (50 Hz). So I have two questions :
- What is T_{TBCLK} ? Is it what they call CLKDIV in the example codes?
- What is the unit of the time in the board? Is it nanoseconds? Picoseconds? Milliseconds?
- How should I use the formula to determine the TBPRD I need?
Thanks for your help!