Currently I made demo code for eFlexPWM with Nano-Edge 312 ps resolution based on "pwm" project in SDK 2.3 using TWR-KV46F150M.
Before add below register settings, eFelxPWM output PWM pulse.
- PWMA_SM0FRCTRL[FRAC_PU] = 1
- PWMA_SM0FRCTRL[FRAC1_EN] = 1
- PWMA_SM0FRCTRL[FRAC23_EN] = 1
- PWMA_SM0FRCTRL[FRAC45_EN] = 1
After add above register settings, eFlexPWM does not output PWM pulse.
Are there any restrictions on register setting for fractional delay logic?
Can you send sample code for eFlexPWM with Nano-Edge 312 ps resolution?
Please reply as soon as possible.
Best regards,
Takashima
Hi,
I think this may because the fractional delay logic can only be used when the IPBus clock is running at 100 MHz. Since the xtal crystal is 8M, it is hard to generate 100M PWM clock.
Regards,
Jing