I have a headache.....INPUT anyone?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: I have a headache.....INPUT anyone?

    Hi,
    PortC.3 is also AN7 and the pins comes up in analog mode by default, to use the pin as a digital onput you need to enable the digital circuitry.
    See the ANSEL register and also the CMCON register even though it's not related to PortC.7 specifically.

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: I have a headache.....INPUT anyone?

    Thanks so much! added ANSEL = 0 and works like a charm!

Similar Threads

  1. Have a headache - need some suggestions with code logic
    By Scampy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th October 2013, 16:45
  2. Need some input
    By dhouston in forum Off Topic
    Replies: 0
    Last Post: - 7th March 2012, 13:23
  3. Mplab headache lol
    By Mus.me in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th December 2009, 01:58
  4. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 22:56
  5. DS1820 headache
    By Calco in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 12th August 2004, 01:28

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