nvd said:
What is the current required by a single TTL input while sourced or sunk.
Can AT89S52 be used with an LED directly without damaging the port pin while the port is sourcing.
Regards...
Hi,
TTL can be many types of interfaces. If you use the old standard TTL chips with no extra letters like 7400, you'll need 400uA source and -1.6mA sink current for each input.
The lowpower version of TTL, the LS, like 74LS00 need 40uA source and -800uA(max) sink.
The cmos version 74HC(T)00 has almost no input current at all, around +/-1uA.
There are other variants also, but these are the most common ones.
When driving anything from an output you need to study the datasheet for that specified output. Many micros has special driver outputs on some pins.
One thing to remember if you plan to drive leds and logic inputs from the same pin, is the testcondition for the specified load.
When a datasheet tell you that you can load an output with 25mA max, it may be that the output is then offset by half the supply voltage, and of no use for driving logic a the same time.
Another parameter is the capacitance on an input, if you use many inputs on one output, you may have problems with the dynamic load on the output. In short, it takes time to switch the load, and you get rotten flanks on your high speed signal.
The datasheet is made for you to read, even if you only tinker with the micro as a hobby.
TOK