2386456_en-US

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

2386456_en-US

2386456_en-US

S32k322 ADC Configuration Issue

I am using three ADC channel is configured for current sensing using BCTU interrupt(CTU mode is configured to trigger mode) and remaining ADC channels are configured in Normal chain method for voltage and temperature sensing.

During this configuration voltage and temperature sensing is working as expected but current sensor is sensing raw values with noise so we are getting abnormal spike in current control. Also we have changed the Ctu mode from trigger to control mode ,in current sensor channel raw value noise is reduced. But other channel configured in normal channel were not working.

Our expectation is to work with single ADC peripheral(ADC0) in current sensing using BCTU trigger as well as voltage and temperature sensing in normal chain method without any spike.

Note: Our hardware is designed with configuration (i.e Current sensor channels is configuration is as follows, P7-ADC0,P2 and P3 -ADC1 for reading in BCTU method. Followed by remaining ADC channels configured to normal chain method(ADC0 - X0,X1,S19 and ADC1-P0,P2,P3,P1,S10)

ADC_Data1.pngADC_Data2.pngScreenshot 2026-06-25 191818.png

S32 SDK for S32K1S32 SDK for S32VRe: S32k322 ADC Configuration Issue

Hi@praveen_ext

I believe this is the exact same issue you're facing.

https://community.nxp.com/t5/S32K/Difference-in-ADC-noise-between-BCTU-Control-Mode-and-Trigger/td-p...

From the screenshot you provided, it seems you haven't made any changes to my previous reply.

Senlent_0-1782438264318.png

I've already informed you that there's a problem with your ADC clock divider configuration,

Also, are you sure your external clock is 25MHz?


If you've checked these two points and the problem persists after testing, you can try modifying the ADC channel's sampling time.

Senlent_1-1782438511587.png

This option allows you to modify the sampling time; you can try increasing the sampling time and testing again.

Re: S32k322 ADC Configuration Issue

Hi @Senlent ,

I have also same issue which you mentioned above.

Our external oscillator clock is 25 MHz. According to the S32K322 datasheet, the ADC supports up to 80 MHz, so I have configured a prescaler of 2. I also configured the sampling time to 1.2 microseconds and set the BCTU mode to trigger mode. However, we are still getting noisy data when executing the BCTU method and the normal chain method simultaneously on the same ADC0 peripheral. Is there a workaround or an alternative method to safely run both on the same ADC0 peripheral?

praveen_ext_0-1782473167287.png

praveen_ext_1-1782473350906.png

praveen_ext_2-1782473423830.png





Re: S32k322 ADC Configuration Issue

Hi@praveen_ext

Aren't you the same company? You're asking the exact same questions.

https://community.nxp.com/t5/S32K/Difference-in-ADC-noise-between-BCTU-Control-Mode-and-Trigger/m-p/...


It seems you haven't been reading my answer carefully.

This is the third time I've told you that your clock divider settings are incorrect.

For 160MHz, you need to set them to 2 and 4.

Senlent_0-1782897219790.png



Re: S32k322 ADC Configuration Issue

Hi @Senlent ,

I have also same issue which you mentioned above.

Our external oscillator clock is 25 MHz. According to the S32K322 datasheet, the ADC supports up to 80 MHz, so I have configured a prescaler of 2. I also configured the sampling time to 1.2 microseconds and set the BCTU mode to trigger mode. However, we are still getting noisy data when executing the BCTU method and the normal chain method simultaneously on the same ADC0 peripheral. Is there a workaround or an alternative method to safely run both on the same ADC0 peripheral?

In the meantime, I reduced the Instance 1 clock frequency to 40 MHz and configured the sampling time to 1.2 microseconds. Following these changes, the measured values from the BCTU are no longer showing noise.

Adc_Raw_Val_Ph3 connceted with sensor remainig two values in floating.
RwaeVal - configured normal chain

praveen_ext_0-1782473167287.pngpraveen_ext_1-1782473350906.pngpraveen_ext_2-1782473423830.png

praveen_ext_2-1782896838602.png

praveen_ext_5-1782896882736.png

praveen_ext_6-1782896898785.png




Re: S32k322 ADC Configuration Issue

Hi @Senlent ,

We tested the previous suggestions, but the issue is still not resolved. After further configuration and verification, I have attached the updated test data and configuration images below.

kindly assist us where we missed.

praveen_ext_0-1782975094933.png

ADC0

praveen_ext_1-1782975139376.png

praveen_ext_2-1782975176694.png

ADC1

praveen_ext_3-1782975241134.png

praveen_ext_4-1782975291742.png



Re: S32k322 ADC Configuration Issue

Hi@praveen_ext

Share your project and i will test it on myside,

标记 (1)
无评分
版本历史
最后更新:
3 周之前
更新人: