Hi!
if I want to configure a GPIO port as ADC port or Output port ,but also enable DFER register(digital input filter),or enable PORT_INTERNAL_PULL_UP resistance,What problems will this cause?
As an output port or ADC port,Can it still work properly?
Hi @WUXIE,
You can have the pin configured as GPIO OUTPUT (muxed to the GPIO module), and trigger ADC conversions on that pin (always muxed, connected during the sampling).
But the pull device gets disabled when the pin is an OUTPUT.
RM, rev.14, Section 12.6.1 Pin control
What is the use case here?
Why do you need one pin to be internally pulled while the output push-pull driver is enabled, and use it as an digital input at the same time.
And on top of that, trigger ADC conversions on that pin?
Regards,
Daniel
Hi! Daniel
For example,if I Configure a pin as a ADC(muxed to analog),And also set DFER register(digitalFilter),trigger ADC conversions on this pin,Will it be Sampled normally
thanks !
Regards!
Yes, this filter works for digital peripherals muxed to the pin only.
Regards,
Daniel
Hi @WUXIE,
Yes, when an ADC conversion is triggered, the ADC gets connected to the selected input during the sample time regardless of the PORT, GPIO configuration of that pin.
Regards,
Daniel
Hi! Daniel
S32k1xx,if I Configure a GPIO pin as a ADC or Output port,And also enable internal-Pull-up register and DFER register(digital input filter),Will these two registers not have any effect?
Regards!