Re: port digital
Well, I'll try to help you altough i'm just a beginner in a risc microcontroller.
Before i answer, I want to know what is the configuration of RA1, as input or output. If it's configured as output (to control something) then it's simple, just add an AND Gate that will be used to enable the input to RA0.
RA1-----|----\
| |-------RA0
In ------|----/
Then reset The TrisA for RA1 -> output
And set the TrisA for RA0 -> input.
I hope my answer is right due to your problem.[/img]