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
Hi @P0zburn,
This is not an ATD (ADC) pin, it can be a digital input only.
Best regards,
Daniel
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?
Hello @P0zburn,
The PP4/PW4 pin is a GPIO.
The direction is configurable in the DDRP register.