Adc Issue With Trigger Mode

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

Adc Issue With Trigger Mode

61 次查看
praveen_ext
Contributor III

In S32 Design Studio, we are using two methods for ADC peripheral configuration. The first method uses the BCTU trigger for current sensing, while the remaining channels, such as temperature and voltage sensing, are triggered using the normal ADC chain method.

 

When the CTU mode is configured as a trigger mode and only the three current-sensing channels are configured with the BCTU trigger, there is no noticeable current spike. However, when I include the remaining temperature and voltage channels using the normal chain method along with the current-sensing channels, the current-sensing values are affected by spikes.

praveen_ext_0-1788357008084.pngpraveen_ext_0-1788357008084.png

 

There is a timing difference between the two methods: the BCTU conversion is triggered through an interrupt, while the normal ADC chain is called from a 5 ms task.

praveen_ext_1-1788357050345.pngpraveen_ext_1-1788357050345.pngpraveen_ext_2-1788357069814.pngpraveen_ext_2-1788357069814.pngpraveen_ext_3-1788357094947.pngpraveen_ext_3-1788357094947.png

 

Could you please explain why this difference is causing the current-sensing spike and suggest how we can reduce or eliminate it?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

25 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@praveen_ext

It seems my colleagues and I have dealt with the same issue you're experiencing before.

We've also conducted some tests following your software configuration, but we didn't encounter such a significant difference. We're unsure if you've taken any of our suggestions.

Therefore, I need you to provide your test project. I will reproduce the problem on our hardware platform. If the problem can be reproduced, we can quickly provide you with a conclusion about the cause.

0 项奖励
回复

4 次查看
praveen_ext
Contributor III

I have attached the test code for review. We are still observing spikes when running the BCTU trigger and the normal chain mode in trigger configuration simultaneously. Could you please help us, how we can eliminate these spikes? I have already attached the test results in my previous post

标记 (1)
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2410632%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%A7%A6%E5%8F%91%E6%A8%A1%E5%BC%8F%E4%B8%8B%E7%9A%84ADC%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-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%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E4%BD%BF%E7%94%A8%E5%B8%B8%E8%A7%84%E9%93%BE%E5%BC%8F%E6%96%B9%E6%B3%95%E5%B0%86%E5%89%A9%E4%BD%99%E7%9A%84%E6%B8%A9%E5%BA%A6%E5%92%8C%E7%94%B5%E5%8E%8B%E9%80%9A%E9%81%93%E4%B8%8E%E7%94%B5%E6%B5%81%E6%A3%80%E6%B5%8B%E9%80%9A%E9%81%93%E4%B8%80%E8%B5%B7%E5%8A%A0%E5%85%A5%E6%97%B6%EF%BC%8C%E7%94%B5%E6%B5%81%E6%A3%80%E6%B5%8B%E5%80%BC%E4%BC%9A%E5%8F%97%E5%88%B0%E5%B0%96%E5%B3%B0%E7%9A%84%E5%BD%B1%E5%93%8D%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22praveen_ext_0-1788357008084.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22praveen_ext_0-1788357008084.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395794iE14DC229C46989F8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22praveen_ext_0-1788357008084.png%22%20alt%3D%22praveen_ext_0-1788357008084.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_0-1788357008084.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_0-1788357008084.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%BF%99%E4%B8%A4%E7%A7%8D%E6%96%B9%E6%B3%95%E4%B9%8B%E9%97%B4%E5%AD%98%E5%9C%A8%E6%97%B6%E9%97%B4%E5%B7%AE%E5%BC%82%EF%BC%9ABCTU%20%E8%BD%AC%E6%8D%A2%E6%98%AF%E9%80%9A%E8%BF%87%E4%B8%AD%E6%96%AD%E8%A7%A6%E5%8F%91%E7%9A%84%EF%BC%8C%E8%80%8C%E6%AD%A3%E5%B8%B8%E7%9A%84%20ADC%20%E9%93%BE%E6%98%AF%E4%BB%8E%205%20%E6%AF%AB%E7%A7%92%E7%9A%84%E4%BB%BB%E5%8A%A1%E4%B8%AD%E8%B0%83%E7%94%A8%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22praveen_ext_1-1788357050345.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22praveen_ext_1-1788357050345.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395795iAE0E9B8A51BF4A2A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22praveen_ext_1-1788357050345.png%22%20alt%3D%22praveen_ext_1-1788357050345.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_1-1788357050345.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_1-1788357050345.png%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22praveen_ext_2-1788357069814.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22praveen_ext_2-1788357069814.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395796i43152506425F1AD8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22praveen_ext_2-1788357069814.png%22%20alt%3D%22praveen_ext_2-1788357069814.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_2-1788357069814.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_2-1788357069814.png%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22praveen_ext_3-1788357094947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22praveen_ext_3-1788357094947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395797i51624D49133DCA89%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22praveen_ext_3-1788357094947.png%22%20alt%3D%22praveen_ext_3-1788357094947.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_3-1788357094947.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epraveen_ext_3-1788357094947.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%AF%B7%E9%97%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E8%BF%99%E7%A7%8D%E5%B7%AE%E5%BC%82%E4%BC%9A%E5%AF%BC%E8%87%B4%E7%94%B5%E6%B5%81%E6%84%9F%E5%BA%94%E5%B0%96%E5%B3%B0%EF%BC%8C%E5%B9%B6%E8%AF%B7%E6%82%A8%E6%8F%90%E5%87%BA%E5%A6%82%E4%BD%95%E5%87%8F%E5%B0%91%E6%88%96%E6%B6%88%E9%99%A4%E8%BF%99%E7%A7%8D%E5%B0%96%E5%B3%B0%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2410632%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ES32K1%E7%B3%BB%E5%88%97%E7%9A%84S32SDK%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2410732%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adc%20Issue%20With%20Trigger%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2410732%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%40%20%3CSPAN%3Epraveen_ext%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E7%9C%8B%E6%9D%A5%E6%88%91%E5%92%8C%E6%88%91%E7%9A%84%E5%90%8C%E4%BA%8B%E4%B9%8B%E5%89%8D%E4%B9%9F%E9%81%87%E5%88%B0%E8%BF%87%E5%92%8C%E4%BD%A0%E4%B8%80%E6%A0%B7%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%88%91%E4%BB%AC%E4%B9%9F%E6%8C%89%E7%85%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