How do you read the input to PORT A.
I use the command
InA = RdPortI(PADR);
printf("InA = %d
", InA);
I check the pins on port A and they are always low.
Any ideas
Thanks
How do you read the input to PORT A.
I use the command
InA = RdPortI(PADR);
printf("InA = %d
", InA);
I check the pins on port A and they are always low.
Any ideas
Thanks
Set SPCR to 0x80 to configure port A as an input, or 0x84 to configure it as an output.