Sourcing and Sinking

Status
Not open for further replies.

DigiTan

New Member
What exactly does sinking mean when you're talking about a logic device's output? Is "sourcing/sinking" similar to "fan-in/fan-out" in any way?

Here's what I mean...(from an AVR datasheet)...
 
DigiTan said:
What exactly does sinking mean when you're talking about a logic device's output? Is "sourcing/sinking" similar to "fan-in/fan-out" in any way?

No, it's not.

Sourcing is actually providing power from the pin of the device, so if you connect an LED and resistor from the pin to ground and set the pin high - current will flow from the pin, through the LED and resistor down to ground. In this case, the pin is the 'source' of the power for the LED.

Sinking is the opposite, the LED and resistor are connected from the pin to the positive supply rail, when the pin is LOW current flows from the positive rail, through the LED and resistor and down through the pin to ground - so the 'source' is the positive rail, and the current 'sinks' to ground through the pin.

An open-collector output pin can only sink current, it's something you need to be aware of, PIC's often have one open-collector output pin, I don't know about AVR's?.
 
Ah, I see. That's a good explaination.

AVR's allow for open-collector inputs, so long as the internal pull-ups aren't enabled.
 
DigiTan said:
Ah, I see. That's a good explaination.

AVR's allow for open-collector inputs, so long as the internal pull-ups aren't enabled.

You can't have an open-collector 'input', only outputs.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…