GPIO configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO configuration

2,147件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

1,964件の閲覧回数
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 件の賞賛
返信

1,911件の閲覧回数
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 件の賞賛
返信

1,891件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

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

danielmartynek_1-1694595916377.png

 

Regards,

Daniel

0 件の賞賛
返信

2,116件の閲覧回数
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 件の賞賛
返信

2,079件の閲覧回数
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 件の賞賛
返信