ADC initialization for S32K311 microcontroller

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

ADC initialization for S32K311 microcontroller

379 Views
truptikavadi1
Contributor I

Hi,

Is there any delay time required for ADC initialization?

Because, on first ADC conversion, I am observing incorrect ADC values when I am giving a delay of less than 10ms where as when I am giving a delay of 10ms then the ADC values are correct. 

I am facing this issue for Pin PTA10 and PTC5 for above mentioned microcontroller where these were JTAG pin which are configured as GPIO pins 

0 Kudos
Reply
1 Reply

304 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

I must admit that I have not tried analog readings on JTAG pins, since we do not have them available in the headers of our EVBs.

Also consider that at least these pins are connected to pull-up resistors for JTAG configuration.

In addition to the RTD examples, I recommend checking out the following examples:

https://community.nxp.com/t5/S32M-Knowledge-Base/S32M27x-S32K3-eMIOS-BTCU-ADC-DMA-RTD600/ta-p/215554...

https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-ADC-SW-HW-trigger/ta-p/1966179

I hope this information is helpful.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2150873%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EADC%20initialization%20for%20S32K311%20microcontroller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150873%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EIs%20there%20any%20delay%20time%20required%20for%20ADC%20initialization%3F%3C%2FP%3E%3CP%3EBecause%2C%20on%20first%20ADC%20conversion%2C%20I%20am%20observing%20incorrect%20ADC%20values%20when%20I%20am%20giving%20a%20delay%20of%20less%20than%2010ms%20where%20as%20when%20I%20am%20giving%20a%20delay%20of%2010ms%20then%20the%20ADC%20values%20are%20correct.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20facing%20this%20issue%20for%20Pin%20PTA10%20and%20PTC5%20for%20above%20mentioned%20microcontroller%20where%20these%20were%20JTAG%20pin%20which%20are%20configured%20as%20GPIO%20pins%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ADC%20initialization%20for%20S32K311%20microcontroller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20interest%20in%20our%20products%20and%20for%20contributing%20to%20our%20community.%3C%2FP%3E%0A%3CP%3EI%20must%20admit%20that%20I%20have%20not%20tried%20analog%20readings%20on%20JTAG%20pins%2C%20since%20we%20do%20not%20have%20them%20available%20in%20the%20headers%20of%20our%20EVBs.%3C%2FP%3E%0A%3CP%3EAlso%20consider%20that%20at%20least%20these%20pins%20are%20connected%20to%20pull-up%20resistors%20for%20JTAG%20configuration.%3C%2FP%3E%0A%3CP%3EIn%20addition%20to%20the%20RTD%20examples%2C%20I%20recommend%20checking%20out%20the%20following%20examples%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32M-Knowledge-Base%2FS32M27x-S32K3-eMIOS-BTCU-ADC-DMA-RTD600%2Fta-p%2F2155542%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32M-Knowledge-Base%2FS32M27x-S32K3-eMIOS-BTCU-ADC-DMA-RTD600%2Fta-p%2F2155542%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FRTD400-LLD-K344-ADC-SW-HW-trigger%2Fta-p%2F1966179%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FRTD400-LLD-K344-ADC-SW-HW-trigger%2Fta-p%2F1966179%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20is%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E