×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Unbalanced Sinking/Sourcing of PICs
2

Unbalanced Sinking/Sourcing of PICs

Unbalanced Sinking/Sourcing of PICs

(OP)
I know this may be a very rudimentary question, but please bear with me.

Can the amount of current going into a microcontroller (more specifically, a Microchip PIC16) be different than the amount of current leaving it?



I would like to connect the common anode of a LED display to the positive rail, and connect the cathodes to different pins of the PIC (through resistors). The LEDs are directly connected to around 2V, while the PIC is powered by 5V (stepped up by a DC/DC converter). So, the PIC is sinking a maximum of 200 mA (within the limits) when the LEDs are powered on (pins low).

Is this possible? The reason is that so that I can avoid requiring a high-current step-up DC/DC converter to power the LEDs.

Thank you in advance for any insight!

---------------------------------------------------------
Operation Radiation: http://www.mrkenneth.com

RE: Unbalanced Sinking/Sourcing of PICs

Yes as long as you don't violate the PIC's current restraints which are a total current limit and port limits.

Make sure the 2 volts are enough to run the LEDs.

You may also have a problem because as you force the PIC to sink more and more current its sinking output pin voltage will rise as specified in the specs. Another-words the PIC pin may rise to a volt while the PIC is sinking 200mA so your 2V head may no longer light the LEDs.  Most of us would use external transistors if we were going to be sinking 200mA.

RE: Unbalanced Sinking/Sourcing of PICs

The reason for the voltage rise on the output pin is due to the drain-source on-resistance of the PIC output transistors.    

You will have the same problem with external transistors as well unless you either get logic level FETs with low on-resistance or perhaps put some BJTs in saturation.  2V doesn't give much margin on the LEDs.  Don't forget to do current limiting if you use external transistors.

RE: Unbalanced Sinking/Sourcing of PICs

MrBananas; it is also the wire resistance of the two(?) wire bond wires that hook the processor to ground.  If you use extrenal transistors you are only talking VceSat = 0.2V .

RE: Unbalanced Sinking/Sourcing of PICs

(OP)
Thanks for all of the information.

The current will probably be much less than 200 mA, but I will have to check the brightness of the LEDs first. Each of the pins will sink less than 25 mA, so I don't think I will use transistors. (Don't want to add too much complexity to the project.)

2V is going to be the minimum voltage. I am guessing that the voltage will hover between 2.5V and 3.0V, so hopefully the LEDs will light up most of the time. winky smile There will be a resistor array to keep the current to the LEDs constant. (This is just a personal project, so reliability is not very important. smile)

Thanks again!

---------------------------------------------------------
Operation Radiation: http://www.mrkenneth.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources