I have a project where i need read several inputs in one hit and as quick as possible. 16f648
Ideally I'd like to read PORTB and display the results on an LCD.
This could be in binary e.g.0000001 when button one is pressed or 00001001 when one and four are pressed.
( I was thinking I could assign TRISB to a VAR?)
I then need to access each byte of PORTB to display some text e.g
if PORTB.0 = 1 then do something.
if PORTB.1 = 1 then do something else.
I've been playing but can't seem to read the ports without usung the button commands and lots of IFs.
Rob
Bookmarks