Dear Sir / Madam
i have TM4c1290NCPDT TIVA ware uC which i want to use to generate the Square wave signal with Desired Freq but with Fine Accuracy i.e. i want to use it with 50 Khz and Also with 5Khz too but with accruacy of +/- 0.1Hz.
I have used the PWM Generator Block for the same.
But it will not work properly.
Suppose i want to Generate the PWM with 4KHz signal then i should write the as per formula in uPWMload is:
My system clock is 60MHz now divisor is 64 so 60000000/64 = 937500 now in order to make 4kHz signal i have do : 937500/4000 = 234.375
Now i have to load in ROM_PWMGenPeriodSet(PWM0_BASE, PWM_GEN_2, 234.375);but the API wants the unsigned int so it will be truncated to 234 so it will give me e
altered from 4KHz to 3.963 KHz now what should i want to do? for the correct 4KHz.
Thanks and regards
Pradhan