RA.4 Open collector,...


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default

    Hi;

    Try this;

    1 - Connect the RA4 Pin with the resistor to VCC;
    2 - Connect the anode of the led beetwen the resistor and the RA4 Pin;
    3 - Connect the Cathode of the led to GND

    And post the result
    Thanks and Regards;
    Gadelhas

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    The reason that you need a resistor between RA4 and Vcc, like Gadelhas mentioned above, is because RA4 in that chip is an Open Drain (OD) type.

    Name:  OpenDrain.GIF
Views: 952
Size:  31.7 KB

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Sorry about the delay getting back to ya'll. Ok, your instructions said:
    1 - Connect the RA4 Pin with the resistor to VCC;
    2 - Connect the anode of the led beetwen the resistor and the RA4 Pin;
    3 - Connect the Cathode of the led to GND

    with or without step 2 the led is illuminated.

    Thanks for the fast response.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    RA4 is C2OUT with the 1st configuration you had so you couldn't use it for a digital output. With comparators disabled you can.

    This should work fine to drive your LED on RA4 ---|<|---/\/\/--VCC.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Bruce, thats how I have it, However, I have brown out reset enable on my winpic programmer software, tried it with PICkit3, PICkit2 and it won't work, BUT if I turn off the brown out reset manually in WINPIC programmer, It WORKS
    But I am going from 9v input to my breadboard, then LP2950ACZ-3.3 (3.3V) regulator to my processor, sure would be nice to use the low voltage (brown out).

    Any ideas?

    Thanks

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If turning an LED on is tripping reset you might want a larger cap on the reg output or larger series resistor for the LED. BOR definitely shouldn't trip unless you're dropping a lot of power.

    Edit: Check the datasheet for Vbor. You may already be running marginal.
    Last edited by Bruce; - 24th August 2010 at 22:46.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7


    Did you find this post helpful? Yes | No

    Default

    I'll do that this evening, Thanks to everyone for your help.

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