PortA input and outputs


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2007
    Posts
    23

    Default PortA input and outputs

    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
    Last edited by chips123; - 7th June 2010 at 04:00.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts