ADC triggering on the wrong pin

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

ADC triggering on the wrong pin

Jump to solution
812 Views
AnthonyPinard
Contributor I

Hello, 

I ran into an issue on the s32k311 with the RTD 5.0.0. I am using Tresos 29.0.0.

So, I want to use Adc0_s14 on the pin Ptc16 but it is triggering on the pin Ptb0. The channel is always reading close to max count because ptb0 is my Spi chip select. The channel is supposed to read close to 1.0V. To confirm, I changed Ptb0 to a Gpio and I triggered the Adc while toggling the pin. I was now reading values alternating between 0 and max count. 

 

I feel like the issue is similar to this one: https://community.nxp.com/t5/S32K/S32K3-ADC-Channcal-configure-problem/td-p/1527680 

 

Do we have a fix for the RTD 5.0.0 concerning this type of issue? 

Tags (1)
0 Kudos
Reply
1 Solution
788 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Sorry for the inconvenience we bring you!
This issue is discussed here: S32K311_S32K310 ADC mux-mode channels was abnormal
I will send you the S32K311_ADC_Mux_Control.xlsx.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
789 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Sorry for the inconvenience we bring you!
This issue is discussed here: S32K311_S32K310 ADC mux-mode channels was abnormal
I will send you the S32K311_ADC_Mux_Control.xlsx.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
771 Views
AnthonyPinard
Contributor I
Thank you, Robin.
The solution mentioned is working.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2074572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EADC%20triggering%20on%20the%20wrong%20pin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2074572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20ran%20into%20an%20issue%20on%20the%20s32k311%20with%20the%20RTD%205.0.0.%20I%20am%20using%20Tresos%2029.0.0.%3C%2FP%3E%3CP%3ESo%2C%20I%20want%20to%20use%20Adc0_s14%20on%20the%20pin%20Ptc16%20but%20it%20is%20triggering%20on%20the%20pin%20Ptb0.%20The%20channel%20is%20always%20reading%20close%20to%20max%20count%20because%20ptb0%20is%20my%20Spi%20chip%20select.%20The%20channel%20is%20supposed%20to%20read%20close%20to%201.0V.%20To%20confirm%2C%20I%20changed%20Ptb0%20to%20a%20Gpio%20and%20I%20triggered%20the%20Adc%20while%20toggling%20the%20pin.%20I%20was%20now%20reading%20values%20alternating%20between%200%20and%20max%20count.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20feel%20like%20the%20issue%20is%20similar%20to%20this%20one%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K3-ADC-Channcal-configure-problem%2Ftd-p%2F1527680%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K3-ADC-Channcal-configure-problem%2Ftd-p%2F1527680%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EDo%20we%20have%20a%20fix%20for%20the%20RTD%205.0.0%20concerning%20this%20type%20of%20issue%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2077160%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ADC%20triggering%20on%20the%20wrong%20pin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2077160%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%2C%20Robin.%3CBR%20%2F%3EThe%20solution%20mentioned%20is%20working.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2074696%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ADC%20triggering%20on%20the%20wrong%20pin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2074696%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESorry%20for%20the%20inconvenience%20we%20bring%20you!%3CBR%20%2F%3EThis%20issue%20is%20discussed%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K311-S32K310-ADC-mux-mode-channels-was-abnormal%2Fm-p%2F2015694%23M44354%22%20target%3D%22_self%22%3ES32K311_S32K310%20ADC%20mux-mode%20channels%20was%20abnormal%3C%2FA%3E%3CBR%20%2F%3EI%20will%20send%20you%20the%20%3CSTRONG%3ES32K311_ADC_Mux_Control.xlsx%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E