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

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

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

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

606件の閲覧回数
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 件の賞賛