Strange problem with simple program - help please


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: Strange problem with simple program - help please

    Hi,
    The chip has more than 8 analog inputs. ANSEL = 0 only sets the first 8 to digital and PortC.6 and PortC.7 which exhibits the issue is AN8 and AN9 respectively. Try adding ANSELH = 0 as well.

    /Henrik.

  2. #2
    Join Date
    Jan 2010
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: Strange problem with simple program - help please

    Thanks a lot.
    I missed that. Silly me

Similar Threads

  1. Simple code but strange result - 877A
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 8th May 2011, 20:14
  2. Strange Behaviour - Simple code+DT_INT+16F676
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th February 2010, 19:53
  3. Simple program - Strange problem!
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th December 2009, 23:52
  4. Help with simple program
    By mykewl in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st July 2008, 09:58
  5. First test program, but strange results
    By bartman in forum General
    Replies: 12
    Last Post: - 19th November 2004, 04:14

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