Input problems with PortD on Pic16F874A
Hi,
I have some serious problems, I need to use PortD.0 to PortD.3 for digital I/O.
It just wont work,!!!
I have read that:
“PortD is also the PARALLEL SLAVE PORT. To make it a general purpose I/O port, Bit4 of TRISE must be set to 0 IE TRISE.4 = 0”
So I tried:
TRISE.4=0
And to be on the safe side I also tried:
ADCON1 = 7
CMCON=7
TRISD = %11111111
And it still doesn’t work, does anyone have an idea?
/ Petter
Input problems with PortD on Pic16F874A
Hi Bruce.
I am trying to use PortD.0 to PortD.3 as digital input.
“IF PortD.0 = 1 THEN…”
and it doesn’t work.
/ Petter
Input problems with PortD on Pic16F874A
Hi again.
Yes, I am using pull-down resistor on all my inputs.
I will try to find some free time tomorrow to post my code & schematic.
/ Petter