How do I sample the midpoint of a motor current with an adc

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

How do I sample the midpoint of a motor current with an adc

跳至解决方案
384 次查看
drfrefw123
Contributor I

Hello everyone

I am using s32k342,I configured the external rising edge trigger ADC sampling.

Now I want to sample the motor current with a little time lag on the rising edge, roughly at the position of the pwm midpoint, how to configure it?

drfrefw123_0-1709107927544.png

 

0 项奖励
回复
1 解答
338 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

This depend on how you generate PWM signals.

1. FlexPWM, you can use LCU to delay the measurement.

petervlna_0-1709627620595.png

2. eMIOS - here you can use the free channel on the group which is generating PWM. You will have a synchronous 7-8 channels with same time base.

You can refer to Application note:

https://www.nxp.com/webapp/Download?colCode=AN13884

Best regards,

Peter

在原帖中查看解决方案

0 项奖励
回复
1 回复
339 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

This depend on how you generate PWM signals.

1. FlexPWM, you can use LCU to delay the measurement.

petervlna_0-1709627620595.png

2. eMIOS - here you can use the free channel on the group which is generating PWM. You will have a synchronous 7-8 channels with same time base.

You can refer to Application note:

https://www.nxp.com/webapp/Download?colCode=AN13884

Best regards,

Peter

0 项奖励
回复