Tool/software:
Hi;
On page 2005 of TMS570LC43x 16/32-Bit RISC Flash Microcontroller Technical Reference Manual ,TPWM is formulated as TPWM = (TBPRD + 1) x TTBCLK , but it must be TPWM = (TBPRD + 1) / TTBCLK.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi;
On page 2005 of TMS570LC43x 16/32-Bit RISC Flash Microcontroller Technical Reference Manual ,TPWM is formulated as TPWM = (TBPRD + 1) x TTBCLK , but it must be TPWM = (TBPRD + 1) / TTBCLK.
Hi Ali riza,
The formula looks correct to me and it should be
TPWM = (TBPRD + 1) x TTBCLK
Because here the TBPRD register is just a count, right?
And time-base counter will increment at each TTBCLK period until it reaches to the TBPRD configured value, once it reaches to this value it will get reset and starts count again.
So now to calculate TPWM period we should multiply the TTBCLK period with the configured count plus one, right?
So, the formula for PWM period is correct only: TPWM = (TBPRD + 1) x TTBCLK
--
Thanks & regards,
Jagadish.