Just remember you can use Ohm's Law to determine the appropriate series resistance.
- CMOS driver are not true voltage sources but have a series resistance, but never specified in datasheets.
- for 5V 74HCTxxx logic it around 50 Ohms at Vol="0" and 130 Ohms guaranteed max at 4.5V at 25'C
- CD4xxx and HCxxx older logic is around 300 ~200 Ohms which is lower at higher Vcc.
- LV logic in PICs is designed closer to 50 Ohms.
- ALVCxxx family logic like in ARM uC's is rated for low voltage but is also around 25 Ohms
You calculate by reading the data sheets for Vol/Iol for low state or (Vcc-Voh)/Ioh for the high state and consider both Typ and worst case, which increases with higher temp. It is sometimes called incremental resistance, dynamic resistance, for MOSFETs RdsOn, sometimes ( by Diodes Inc) Rce for BJT's,, but I refer to them all as ESR . Similarly all batteries and caps have ESR or Rs inverse to its capacity and state of charge and rises with age at end of life quickly due to self heating affecting aging of material.
Newer CMOS families at low voltage are better and designed to be faster and lower RdsOn .... meaning PMOS is better matched to NMOS for both speed and RdsOn.
For BJT's it depends on base current, but typically when saturated all are the same with IC/Ib ratios of 10:1 used for Vce(sat) thus Rce=Vce(sat)/Ic the equivalent output resistance when saturated.
Similarly, all diodes have a series resistance that is fairly constant when fully saturated at rated current and can be calculated by the incremental V/I.
I can tell you that for 1/16th watt 5mm LEDs, ESR = 16 Ohms +/- 50% on good parts. and 1W diodes are 1 Ohm ESR and 10W Diodes are 1/10 Ohm..
See the pattern? ESR*Pd rated ~=1 ( to 0.5 in really good thermal power diodes.) I call this with tongue in cheek,
Stewart's Rule for all diodes. It becomes dynamic at lower current and rises with inverse Isquared law when it goes out of saturation.
This is due to the relationship between thermal capacity of diode and bulk electrical resistance and holds true for all diodes from Schottky to LEDs, although each wavelength has a slightly different threshold voltage due to doping of chemistry and eV thresholds. I normally estimate or calculate the threshold voltage by working backwards from Pd-If*ESR=Vt and this extrapolated tends to be around 10% of the rated current for the threshold voltage but is useful when using Ohm's Law for 25~50% variations in current and 10% supply tolerances, as long as once checks the datasheets until confident.
So remember there are tolerances in Vf and Vce(sat) and Vol which are only affected by manufacturing tolerances of bulk resistance of the epitaxial wafer uniformity. Then you can use Ohm's Law. got it?