MKV46F Sample code for eFlexPWM with 312 ps resolution

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKV46F Sample code for eFlexPWM with 312 ps resolution

999 Views
isaotakashima
Contributor IV

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

Labels (1)
0 Kudos
Reply
1 Reply

840 Views
jingpan
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply