EvLer said:
I just want to be sure about this:
i have a spec sheet for CMOS with CMOS and TTL loads. The question is whether CMOS could drive TTL, so the general formula is
fan-out = min(IOHmax/IIH, IOLmax/IIL)
where IOHmax is the max output current at high state;
IOLmax ... in low state;
IIH is input current at high state;
IIL is ... at low state;
so I think I need to figure out which parameters are of CMOS and which are of TTL. So here's what i think: output parameters have to be of CMOS and input parameters have to be of TTL.
Is it correct?
Thanks much.
When you mix logic families, you look at their input and output specs to figure out how much fanout you can use, and also to see if you need to do any level translation between the two families. There are a number of TTL and CMOS families, so you need to be more specific when you do your checks.
In general, CMOS logic families are lower power than TTL, only require about 1uA of input current, and drive rail-to-rail at their outputs. Most CMOS logic has Vih and Vil about 1.5V in from the 5V rails, but there are several "T" variants (like 74HCT or 74VHCT) that have Vih and Vil set lower to accommodate the lower output voltages of TTL drivers. The weakest CMOS familiy is probably the CD4000 series, and in order of getting stronger and faster, you go something like 74HC, 74AC, 74AHC, etc. Look at the specs in their datasheets for Voh and Vol, which will usually be given for several Iol output current levels. To figure out the fanout of these gates driving some TTL series (74, 74LS, 74S, etc.), look at the input current required for the TTL gate inputs and the required Vih and Vil levels for those gate inputs, and then figure out how many of those gates can be driven by the particular CMOS driver output before too much current is being drawn from the CMOS driver output (so that the Vih and Vil specs would not be met for the TTL input).
Going the other way with TTL driving CMOS is more tricky. Look at how low the TTL output voltage specs are, and you'll see that meeting the 3.5V Vil requirement of CMOS gates is iffy at best. So that's when you use the "T" variant of CMOS logic, which has the lower input voltage specs. So if you have a 74AS gate that needs to drive a 74AC gate, you will use a 74ACT gate instead. Also, keep in mind that different PALs, CPLDs, FPGAs, etc., will have their own input and output characteristics, so be sure to check those on their datasheets before chosing what family of external logic to put around these bigger parts. It's a real bone-head move to drive a 74AC gate from a PAL that has TTL level outputs. Not that I've ever made that mistake, mind you...
