I/O pin default low.


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Apr 2016
    Location
    Plainfield, Illinois
    Posts
    73


    Did you find this post helpful? Yes | No

    Default Re: I/O pin default low.

    Quote Originally Posted by tumbleweed View Post
    Your ANSELA statement is incorrect... you don't set it that way.

    ok - please elaborate..
    My dad never liked you...

  2. #2
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: I/O pin default low.

    ANSELA is an 8-bit register... you set it just like any register, 0-255

    If you want RA2 to be analog but all others digital then ANSELA = %00000100

    You have something very different... ANSELA = PORTA.2, which will read the value of the port pin and assign it to ANSELA (whatever that results in).

Similar Threads

  1. How to set pin to digital by default? PIC18F24J50
    By picmilan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th May 2016, 21:27
  2. Replies: 10
    Last Post: - 14th April 2014, 20:47
  3. Can't keep a pin low
    By bartman in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 6th January 2006, 14:04
  4. Trouble pulling pin Low
    By pdegior in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th August 2005, 20:49
  5. Reading if Pin is High or Low?
    By Spindle in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 1st August 2005, 17:39

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