S32K396

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

S32K396

1,286 Views
YY2410
Contributor III

Our processor is S32K396. When using ADC, the following error occurred:
I have a total of 5 ADCs. Two of them use the channels 1 and 3 of the AD5 controller respectively. Occasionally, there will be abnormal data collection from channel 1. At this time, by measuring with a multimeter, there is voltage on the pins, but no values can be obtained. When channel 3 is shielded, channel 1 works normally.
The remaining 3 channels of ADC are each using a separate AD controller, and all are functioning properly.
The attachment contains the configuration of my AD5 components and the ADC acquisition code. Please take a look and let me know if there are any issues.
Thank you!

0 Kudos
Reply
1 Reply

1,249 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

unfortunately hard to suggest from your description and provided screenshot/code.
It would be great if you can share more about external circuitry, pins usage, ADC clocking and setting etc.
Generally, be sure ADCs are properly clocked and calibrated. Measured source impedance should be low enough. If not you can try to increase sampling time, at least for test. You can try to insert a dummy sample (e.g., VREFH) between problematic channels in your sequence, or try to use presampling option directly. If same pin is sampled by more ADCs, be sure it is not done at the same time.

BR, Petr



0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2264578%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K396%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264578%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOur%20processor%20is%20S32K396.%20When%20using%20ADC%2C%20the%20following%20error%20occurred%3A%3CBR%20%2F%3EI%20have%20a%20total%20of%205%20ADCs.%20Two%20of%20them%20use%20the%20channels%201%20and%203%20of%20the%20AD5%20controller%20respectively.%20Occasionally%2C%20there%20will%20be%20abnormal%20data%20collection%20from%20channel%201.%20At%20this%20time%2C%20by%20measuring%20with%20a%20multimeter%2C%20there%20is%20voltage%20on%20the%20pins%2C%20but%20no%20values%20can%20be%20obtained.%20When%20channel%203%20is%20shielded%2C%20channel%201%20works%20normally.%3CBR%20%2F%3EThe%20remaining%203%20channels%20of%20ADC%20are%20each%20using%20a%20separate%20AD%20controller%2C%20and%20all%20are%20functioning%20properly.%3CBR%20%2F%3EThe%20attachment%20contains%20the%20configuration%20of%20my%20AD5%20components%20and%20the%20ADC%20acquisition%20code.%20Please%20take%20a%20look%20and%20let%20me%20know%20if%20there%20are%20any%20issues.%3CBR%20%2F%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2266109%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K396%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266109%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Eunfortunately%20hard%20to%20suggest%20from%20your%20description%20and%20provided%20screenshot%2Fcode.%3CBR%20%2F%3EIt%20would%20be%20great%20if%20you%20can%20share%20more%20about%20external%20circuitry%2C%20pins%20usage%2C%20ADC%20clocking%20and%20setting%20etc.%3CBR%20%2F%3EGenerally%2C%20be%20sure%20ADCs%20are%20properly%20clocked%20and%20calibrated.%20Measured%20source%20impedance%20should%20be%20low%20enough.%20If%20not%20you%20can%20try%20to%20increase%20sampling%20time%2C%20at%20least%20for%20test.%20You%20can%20try%20to%20insert%20a%20dummy%20sample%20(e.g.%2C%20VREFH)%20between%20problematic%20channels%20in%20your%20sequence%2C%20or%20try%20to%20use%20presampling%20option%20directly.%20If%20same%20pin%20is%20sampled%20by%20more%20ADCs%2C%20be%20sure%20it%20is%20not%20done%20at%20the%20same%20time.%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E