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 Acetronics2 View Post
    Top secret electronic ignition ??? ....
    MC3334P clone ?

    - ADC inputs have a maximum input feed impedance to respond as fast as required ... see Pic datasheet for details.

    so, I presume @ first sight your current detection is wayyyy too slow, and your coil enters saturation ...

    add to that your IPB protection is wayyy too weak and slow !!! be prepared for in-use failures, after some running time.

    Now, automotive circuits need lots of filtering to avoid pic supply surges ...

    Alain

    no - not a clone of MC3334P - it just turns on a load if IG is present.
    by the time I get the IG signal its been filtered.

    What coil?

    IPB?
    Last edited by pescador; - 31st May 2023 at 16:39.
    My dad never liked you...

  2. #2
    Join Date
    Aug 2011
    Posts
    461


    0 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: I/O pin default low.

    Your ANSELA statement is incorrect... you don't set it that way.

  3. #3
    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...

  4. #4
    Join Date
    Aug 2011
    Posts
    461


    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, 22:27
  2. Replies: 10
    Last Post: - 14th April 2014, 21:47
  3. Can't keep a pin low
    By bartman in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 6th January 2006, 15:04
  4. Trouble pulling pin Low
    By pdegior in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th August 2005, 21:49
  5. Reading if Pin is High or Low?
    By Spindle in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 1st August 2005, 18:39

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