EXT_SYNC of PWM initial frequency settings

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

EXT_SYNC of PWM initial frequency settings

998 次查看
kienfrancis_ure
Contributor II

Hi guys,

Based on NXP App note, AN4885 - eFlexPWM. The Current Reset PWM can be used using EXT_SYNC. How can I be able to change its initial frequency? The frequency in my PE settings which is shown below is not used in the PWM when there's no input signal(coming from the EXT_SYNC signal). It says in the app note code, that the initial frequency can be configured. But how?

pastedImage_1.png

Thanks

标记 (4)
0 项奖励
回复
1 回复

903 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Kien,

Pls refer to the following figure, if you set the INIT_SEL=2b'00, local sync will reset the counter, in other words, if you set INIT_SEL=2b'00, the PWM signal frequency will be 120Hz.

 if you set INIT_SEL=2b'11, the EXT_sync signal will reset the PWM counter, in the case, the PWM frequency is the same as EXT_sync signal frequency.  in the case, if EXT_sync signal disappear, the PWM counter will continue to count even if it reaches to Value1 register, the PWM frequency is undetermined.

If you want to implement the scheme that the PWM outputs 120HZ signal when the EXT_sync disappears, the PWM outputs signal which is controlled by EXT_sync when the EXT_sync appears. I think it is okay, but it is complicated. You have to use AOI module to OR the EXT_sync signal and master/local sync signal as new EXT_sync signal, while set the INIT_SEL=2b'11.

Hope it can help you

BR

XiangJun Rong

pastedImage_1.png

0 项奖励
回复