Hi
I am configuring the PWM on AMX3359 for the following setting .
case 1 :
/* Configuration of PWM TBCLK to 1.25 MHz*/
#define CLOCK_DIV_VAL (80)
#define SOC_EHRPWM_1_MODULE_FREQ (100000000)
I have configured the period register " EHRPWM_TBPRD" to hold a value of 255.
As per calculations the PWM period generated should be 204 us . When I measure the period using a CRO I get 144 us.
Am i missing any other configuration setting ?
When I tried for the setting below :
Case 2:
/* Configuration of PWM TBCLK to 25 MHz*/
#define CLOCK_DIV_VAL (4)
#define SOC_EHRPWM_1_MODULE_FREQ (100000000)
I get the correct PWM period of 10.2 us.
Why I am getting wrong values for TBCLK at lower frequencies as in Case 1 ?
Thanks.
Regards,
Veena