Pin as Digital and Analogue


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Question Pin as Digital and Analogue

    Hi,

    I would like to use a pin as both analogue and digital inputs.

    1st it needs to be digital to allow ICSP, and then

    2nd as a analogue input to measure battery condition.

    Any suggestions ?

    Can i simply change on the fly ? or

    When you program ICSP, it ignores the previous program status of the pin
    and sets it how you want ?

    kind regards

    Pete
    Pete

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


    Did you find this post helpful? Yes | No

    Default

    When you're using the ICSP, it ignore what you set in the program.
    Steve

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

Similar Threads

  1. Relaxation oscillators (for capacititive touch sensing)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 6th December 2009, 22:03
  2. Changing port pin functions `on the fly`
    By muddy0409 in forum General
    Replies: 1
    Last Post: - 17th April 2009, 16:40
  3. Digital Out on an A/D pin safe ?
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st January 2009, 22:48
  4. Replies: 3
    Last Post: - 2nd June 2008, 21:00
  5. Problem Keeping PORTD.1 LOW
    By koossa in forum mel PIC BASIC Pro
    Replies: 48
    Last Post: - 9th September 2005, 08:51

Members who have read this thread : 1

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