Home/Support/Support Forum/How to Read Port A on a RCM4300
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to Read Port A on a RCM4300

0 votes
How do you read the input to PORT A.
I use the command

InA = RdPortI(PADR);

printf("InA = %d\n", InA);

I check the pins on port A and they are always low.

Any ideas

Thanks
asked Sep 6, 2018 in Rabbit Software by Bobby1 New to the Community (3 points)

Please log in or register to answer this question.

1 Answer

0 votes
Set SPCR to 0x80 to configure port A as an input, or 0x84 to configure it as an output.
answered Sep 6, 2018 by TomCollins Veteran of the Digi Community (1,268 points)
...