Other Parts Discussed in Thread: OMAPL138, OMAP-L138
Dear all,
I have been trying to implement the High Resolution feature of eHRPWM module. I wanted to test the example configuration given in the ehrpwm user guide [1]. In the example configuration, 100 MHZ Time Base (= System Clock) clock is used to generate 1.25 MHZ pwm waveform , 40.5% duty. Thus the period of Time base clock and PWM waveform are 10ns and 800ns respectively. 40.5% duty corresponds to 324 ns, which cannot be generated by conventional pwm as the minimum clock period is 10 ns. HR feature is employed to produce the remaining 4 ns delay. With 180 ps as MEP step size, CMPAHR value is calculated to be 23 (considering only the MSB) .
But, under the same configuration with 180 PS step size , I am getting only 1.4 ns delay and not 4 ns . So, I made a quick calculation (1.4/22) and found the step size to be 63 ns. This value differs greatly from the typical MEP size (200) given in the omapl138 application guide [2] (Page.No 231). I am able to obtain the exact edge positioning various duty cycle with this MEP value (63). I would like to know if this is the correct value or is there any formula to arrive at the MEP step size?.
If anyone has tested the High Resolution feature please let me know.
Regards,
N.Sugumar
[1] . http://www.ti.com/litv/pdf/sprufl3b
[2]. http://www.ti.com/lit/gpn/omap-l138