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

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

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

Jump to solution
204 Views
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 Kudos
1 Solution
158 Views
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

View solution in original post

0 Kudos
1 Reply
159 Views
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 Kudos