Using GPIO and ADC at the same time on S32K14x - officially supported?

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

Using GPIO and ADC at the same time on S32K14x - officially supported?

597 Views
martinr_
Contributor II

I want to use a pin of the S32K14x as GPIO input and analog input at the same time. For example I set PTC2 (PCR2) with PORT_MUX_AS_GPIO and PD_IN. The Bit in GPIO->PTC->PDI will be set/unset as expected and the ADC will still be able to sample the channel. (In this case: ADC0SE10 on internal channel 14)

Now I looked around the internet and the documentation, but couldn't find any information on this. Is this officially supported / are there any reasons against doing this?

 

Or in other words: can a port/pin configured as GPIO be sampled using the ADC at the same time?

0 Kudos
1 Reply

571 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Martin,

Sorry for the late response.

Yes, the ADC can sample pins in the GPIO mode.

It is not restricted, it can be used.

 

Regards,

Daniel

 

 

0 Kudos