Re: 300 mA from a microcontroller pin



Mark Borgerson wrote:
toe@xxxxxxxxxxx says...

A bi-colour LED that has only two pins (they're in parallel
facing in different directions). If the microcontroller pin is
high, then it'll be red. If low, it'll be green. If high
impedance, it'll be off.

.... snip ...

You don't really need a tri-state driver, then. If both LED pins
are at the same level (either high or low), the LED will be off.

If total power dissipation isn't a concern, your circuit could
simplify to:

+5 +5
| |
R1 R2
| |
|---- LED ----|
| |
P1.1---T1 P1.2---T2
| |
| |
gnd gnd

T1 and T2 are logic-level N-channel mosfets controlled by
your MPU pins.

Ignoring total dissipation, a single tri-state driver will do:

+5
|
R1
|
tri state here >---|X|-----+
LED |
R2
|
GND

with R1 approximately equal to R2. The ratio controls brightness.

--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: 300 mA from a microcontroller pin
    ... impedance, it'll be off. ... You don't really need a tri-state driver, ... If both LED pins ... If total power dissipation isn't a concern, ...
    (comp.arch.embedded)
  • Re: Four prong speaker connector
    ... I see one prong is ... ohms between the outputs. ... will be how you set the impedance for the output, ... It's also possible that the other pins are different impedances. ...
    (alt.guitar.amps)
  • Re: 300 mA from a microcontroller pin
    ... If both LED pins ... If total power dissipation isn't a concern, your circuit could ... R the effective impedance is R/2 hooked to 2.5 V. ...
    (comp.arch.embedded)
  • Re: Four prong speaker connector
    ... there should only be two connections: ... ohms between the outputs. ... will be how you set the impedance for the output, ... It's also possible that the other pins are different impedances. ...
    (alt.guitar.amps)
  • Re: 300 mA from a microcontroller pin
    ... If both LED pins ... If total power dissipation isn't a concern, ... The ratio controls brightness. ...
    (comp.arch.embedded)