I want to use a pic16f628 to drive a lcd for fault display from a PLC.
The problem is that there will be 40 different faults.
is it possible to use a binary type input to porta and read the inputs to go to the different message.
in other words if porta ra0 is high message 1 is shown.
if pin ra1 is high then message 2
if pin ra0 & ra1 high then message 3
by doing this I can have up to 255 messages from 8 inputs
So on if you could help me with simple code and i could work it out from there.
thanks
The problem is that there will be 40 different faults.
is it possible to use a binary type input to porta and read the inputs to go to the different message.
in other words if porta ra0 is high message 1 is shown.
if pin ra1 is high then message 2
if pin ra0 & ra1 high then message 3
by doing this I can have up to 255 messages from 8 inputs
So on if you could help me with simple code and i could work it out from there.
thanks