S12ZVML chip motor current acquisition amplification output waveform problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S12ZVML chip motor current acquisition amplification output waveform problem

ソリューションへジャンプ
2,618件の閲覧回数
yq1
Contributor III

The motor current is converted into voltage by the sampling resistor, and then amplified by the MCU internal op-amp.The amplified voltage waveform determines the ADC sampling time base through the PTU trigger module, and burrs are generated near the sampling time base.The ADC conversion time is 2us, which cannot be adjusted due to design reasons,Is there a good solution to optimize glitches?

The related code is shown in the attachment.

0 件の賞賛
返信
1 解決策
2,575件の閲覧回数
yq1
Contributor III

Hi

The ADC acquisition point triggered by the PTU is the middle of the waveform, when the ADC is not acquired in the middle of the waveform basically no burr, once the PTU triggers the ADC acquisition, the burr is generated near the acquisition moment, this is very much like the burr generated by the ADC acquisition.

I don't know if this is caused by the ADC conversion time of 2us that I set.But this conversion time cannot be increased for design reasons.

The upper side is the voltage waveform when the ADC is not acquired, and the lower side is the voltage waveform when the ADC is acquired.

Does this burr affect the acquisition accuracy and is there a good way to optimize it?

yq1_1-1687961530102.jpeg

yq1_2-1687961545708.jpeg

 

 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,590件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

This is response of application team.

The implementation of external HW filter is up to you considering your measurement of glitches. However, usually the moment of the sampling is selected to the point where all oscillations are dumped.

I suggest to read....
https://www.nxp.com/docs/en/application-note/AN4704.pdf see chapter 3.3
and
https://www.nxp.com/webapp/Download?colCode=AN5207


Finally, a lot of things and final approach to design depends on work in lab and adjustment of either SW or HW to the real situation.

Best regards,

Ladislav

0 件の賞賛
返信
2,576件の閲覧回数
yq1
Contributor III

Hi

The ADC acquisition point triggered by the PTU is the middle of the waveform, when the ADC is not acquired in the middle of the waveform basically no burr, once the PTU triggers the ADC acquisition, the burr is generated near the acquisition moment, this is very much like the burr generated by the ADC acquisition.

I don't know if this is caused by the ADC conversion time of 2us that I set.But this conversion time cannot be increased for design reasons.

The upper side is the voltage waveform when the ADC is not acquired, and the lower side is the voltage waveform when the ADC is acquired.

Does this burr affect the acquisition accuracy and is there a good way to optimize it?

yq1_1-1687961530102.jpeg

yq1_2-1687961545708.jpeg

 

 

 

 

0 件の賞賛
返信