I am using a 16F676 with all of PORTC and PORTA.0 driving a 7 segment display. All is fine if I simply display a digit or count up. I would like to read a dip switch using 4 other bits of PORTA, such as PORTA.1,2,4,5 (.3 is MCLR). I have configured those particular pins as inputs (TRISA) . I am getting strange results. Should I be able to do this? Or are there some possible issues. I have done similar with an LCD, so I would think this should work.
How do I insert code into this message?
Thanks, Scott
Bookmarks