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?
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