Hello,
I am building a notification system consisting of 20 8-zone cards. I am using a 16F74. PortC has inputs 0 thru 4 as a card ID and outputs 5, 6, & 7 to address the 4051 multiplexer. What I am trying to do is read the whole port so I can send it first to a serial LCD then once this is done and working I want to send it out on an RS 485 loop to a master card that would then take the card Id and the address of the input being scanned by (5, 6, & 7).
I have set up my program with B0 as a Var Byte with B0 = PortC and the only value that displays is the card ID.
Should the whole port get read regardless of whether the pin is an input or an output?
Can any one out there lend a hand here and offer me some advise please?
Thanks,
BobK
Bookmarks