PP4/PW4 pin

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PP4/PW4 pin

跳至解决方案
2,294 次查看
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 解答
2,275 次查看
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 回复数
2,276 次查看
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

 

2,266 次查看
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 项奖励
回复
2,235 次查看
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 项奖励
回复