16F688 port puzzle


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Isle of Man
    Posts
    32


    Did you find this post helpful? Yes | No

    Cool 16F688 Port puzzle

    Yes, I also did a search for ANSEL in the datsheet and found nothing of much use.

    Although it works in this example, I am still unclear why ANSEL has any effect on the behaviour of LEDs on PortC.3 and PortC.5 which are not configurable for analogue.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Miip! C.3 is also AN7...

    In theory ANSEL.7=0 should also work.

    PS: Read again post 4, i changed it while you replied.

    Using a analog port as digital output will do weird things...
    Last edited by mister_e; - 1st October 2007 at 22:56.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Question

    now why isn't this stuff in the faq section? ansel cmcon etc etc

  4. #4
    Join Date
    Feb 2006
    Location
    Isle of Man
    Posts
    32


    Did you find this post helpful? Yes | No

    Smile 16F688 Port puzzle

    A big thanks again Mister_e. Indeed PortC.3 is analogue too. Sorry I missed that! The datasheet could be much clearer on issues like this or, as Nomad says, such pearls of port configuration wisdom could be distilled into a HOW TO section of FAQs.

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by nomad View Post
    now why isn't this stuff in the faq section? ansel cmcon etc etc
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    yeah yeah lol, phone browser etc I found them now.

Similar Threads

  1. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  2. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 17:25
  3. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21

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