What Does Sink Eight TTL Inputs Mean in the Context of AT89C51's Port 0?

  • Thread starter Thread starter snshusat161
  • Start date Start date
AI Thread Summary
Port 0 of the AT89C51 is an 8-bit open-drain bi-directional I/O port that can only sink current, requiring a pull-up resistor to source current. Each pin can sink the current equivalent to eight TTL inputs, meaning it can handle the load of up to eight TTL devices without issue. When the pins are set to high (1s), they should not sink current and will rely on the pull-up resistor to drive the circuit. The discussion clarifies that the pins can function as high-impedance inputs when set high, allowing external devices to influence the voltage read on those pins. Understanding these characteristics is crucial for effectively utilizing Port 0 in circuit designs.
snshusat161
Messages
213
Reaction score
1
I am trying to master "AT89C51 datasheet" by understanding it completely. But my limited knowledge is hindering me. help me to overcome all obstacles.

Port 0 is an 8-bit open-drain bi-directional I/O port. As an
output port, each pin can sink eight TTL inputs. When 1s
are written to port 0 pins, the pins can be used as highimpedance
inputs.

It says that Port 0 is an open-drain port. Does it mean that it can only sink current and can't source current? On the next line it says that "as an output port, each pin can sink eight TTL inputs." what does 'eight TTL input' mean here? Next it says that "When 1s re written to port 0 pins, the pins can be used as high impedance inputs." Does it mean that when the port 0 pins are set high, they won't sink any more current. They won't source any current either. all the current from the pull-up resistor will drive my circuit?
 
Engineering news on Phys.org
snshusat161 said:
It says that Port 0 is an open-drain port. Does it mean that it can only sink current and can't source current?

yes. you need a pull-up resistor to make this source current.

On the next line it says that "as an output port, each pin can sink eight TTL inputs." what does 'eight TTL input' mean here?

it means you can connect it to 8 TTL inputs and it's not too big of a load.

Next it says that "When 1s re written to port 0 pins, the pins can be used as high impedance inputs." Does it mean that when the port 0 pins are set high, they won't sink any more current.

well, the shouldn't sink anything if they are "high". i am not sure if these pins double as inputs, but if they do, i would think you would need a bit to tell the chip that they're inputs instead of outputs. but, conceptually, if you want to use them as input, it makes sense that you write "1" to those bits as outputs, which turns them into a no-connection to ground ("0" virtually shorts the pin to ground with some ability to sink current) and then you could "read" the voltage on those open-drain pins which could be driven by something else.

They won't source any current either. all the current from the pull-up resistor will drive my circuit?

that's the idea of a pull-up resistor. to drive the rest of the devices connected to the pin when your open-collector or open-drain pin cannot supply positive output current to do it.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top