PP4/PW4 pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
877件の閲覧回数
P0zburn
Contributor II

Hello newbie here,

I'm looking at a mc9s12gc (52 pin) on HVAC board and noticed that a Thermostat(Basically a potentiometer) what I would think should be tied to an input pin is wired to the PP4/PW4 pin. Can the PW4 pin be configured as an input? Everything I've read says it is a Pulse width modulated waveform output.

I know most thermostats are just open/closed contacts but this one is not.

Thanks

0 件の賞賛
返信
1 解決策
858件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @P0zburn,

The PP4/PW4 pin is a GPIO.

The direction is configurable in the DDRP register.

danielmartynek_0-1735894186337.png

 

元の投稿で解決策を見る

3 返答(返信)
859件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @P0zburn,

The PP4/PW4 pin is a GPIO.

The direction is configurable in the DDRP register.

danielmartynek_0-1735894186337.png

 

849件の閲覧回数
P0zburn
Contributor II

Thanks for the response.  I have a follow up question. Once it is configured as an input, can it be used as a analog input?

0 件の賞賛
返信
818件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @P0zburn,

This is not an ATD (ADC) pin, it can be a digital input only.

danielmartynek_0-1736112308677.png

 

 

Best regards,

Daniel

0 件の賞賛
返信