GPIO configuration

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

GPIO configuration

2,148 Views
WUXIE
Contributor I

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 resistanceWhat problems will this cause?

As an output port or ADC portCan it still work properly

0 Kudos
Reply
5 Replies

1,965 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

danielmartynek_0-1694424206722.png

 

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

 

 

0 Kudos
Reply

1,912 Views
WUXIE
Contributor I

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!

0 Kudos
Reply

1,892 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Yes, this filter works for digital peripherals muxed to the pin only.

danielmartynek_1-1694595916377.png

 

Regards,

Daniel

0 Kudos
Reply

2,117 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

2,080 Views
WUXIE
Contributor I

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!

0 Kudos
Reply