I am using the 144 pin MC9S12XEP100.
PORTC pins do not work when set as outputs and toggled. They just stay on 5 volts all the time. Adding a 10k pullup makes no difference.
Other port pins like PORTD work as expected. I looked at the datasheet to see if PORTC has some other function that I need to turn off. I could only find this. What am I missing ?
184.108.40.206 PC[7:0] / DATA [15:8] — Port C I/O Pins
PC[7:0] are general-purpose input or output pins. In MCU expanded modes of operation, these pins are
used for the external data bus.
The input voltage thresholds for PC[7:0] can be configured to reduced levels, to allowdata from an external
3.3-V peripheral to be read by the MCU operating at 5.0 V. The input voltage thresholds for PC[7:0] are
configured to reduced levels out of reset in expanded and emulation modes. The input voltage thresholds
for PC[7:0] are configured to 5-V levels out of reset in normal modes.