Configuring 16F916 for digital I/O


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Configuring 16F916 for digital I/O

    Found the PortC output issue - was a dumb typo! AAGH!
    Still trying to configure PortA3 and 4 as input. They still read as 0...
    "Do or do not, there is no try" Yoda

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Configuring 16F916 for digital I/O

    Try adding ...

    CMCON0 = 7
    DT

  3. #3
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Configuring 16F916 for digital I/O

    OH yeah, forgot about that one! Tried it, but Port A.3 is still reading as zero.
    I'm using a push button to ground and 10K pull-up.
    I have spent the usual HOURS reading the spec sheet, and this is making me nuts.
    "Do or do not, there is no try" Yoda

  4. #4
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Configuring 16F916 for digital I/O

    NEVERMIND!

    I had set the voltage ref to use A.3 accidentally. DUH. It's always something stupid isn't it.

    Thanks Darrell
    "Do or do not, there is no try" Yoda

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