I am using PH2,PH3,PJ6 & PJ7 of MC9S12XEP100 for glowing LED using 74HC04 Hex Inverter.
Initially when I power the board all four LEDs are ON by default.
LED PJ6 & PJ7 are working as expected but PH2 & PH3 LEDs are continuously glowing even by giving Data on that pin as continuously low.
I have checked the hardware connections & everything is fine there.
So what could be the reason behind this?
Hi,
can you share the code and the schematic?
Thanks,
Daniel
Hi,
Can you disconnect the 74HC04 and check the outputs.
There is only one difference between PTJ6/7 and PTH2/3.
PTJ6/7 have internal pull-up resistor enabled by default whereas PH2/3 don't.
PH2/3 are floating inputs out of reset.
Do you use any alternative function of the pins (SPI, SCI)?
Regards,
Daniel
Issue resolved! There was a problem with hardware connection.
Thanks for the help.