|
|
Compatibility between logic familiesThe table shows six common logic types and which versions can be interconnected without conflict.
Logic types3.3V CMOSMany microcontrollers are 3.3V CMOS devices, for example the LPC microcontrollers used in the MBED development tool. HCMOS parts can be powered from 3.3V for compatibility with 3.3V microcontrollers. Generally a 5V signal should not be connected to 3.3V logic. 3.3V but 5V tolerantSome 3.3V microcontrollers feature pins that can accept 5V signals safely. There are limitations, typically the pin must be an input or an open-drain output requiring an external pull-up resistor. Some specific HCMOS parts can accept 5V inputs when powered from 3.3V 5V HCTA variant of HCMOS with lowered input threshold for compatibility with LSTTL and NMOS. 5V NMOSNMOS devices such as early 1980s microprocessors and EPROMs. NMOS was largely superseded by CMOS. 5V LS (LSTTL)The dominant logic family prior to HCMOS, common on "legacy" hardware. An enhanced version of TTL. 5V HC (CMOS)HCMOS powered from 5V 5V 4000 CMOS4000 series CMOS when powered from a 5V supply. This doesn't have as much output drive as HCMOS. ConditionsOut of specificationThis combination will typically work but does not meet published requirements for reliable operation. Operating at low speed a 3.3V powered device will output almost exactly 3.3V and a 5V powered device will have an input threshold of 2.5V. At low speed this will work. At high speeds the device output may not reach 3.3V within the given transition time as the given timings are based on reaching 90% or 3.0V. The 5V device input may need to reach 70% or 3.5V to meet the worst case input threshold. In other words it will work on the test bench but do not count on it working in production. Open drain with resistorSome 3.3v devices have open-drain outputs that can be pulled up to 5V by an external resistor, allowing for direct connection to 5V circuits Limiter neededThis combination will overdrive the input unless some means is found to restrict it. At low speeds a series resistor or voltage divider may suffice. At higher speeds a pass-transistor circuit could be used to limit the voltage applied to the 3.3V device Your mileage may varyIn principle the LSTTL gate should not be able to drive the CMOS input above 3.3V but I do not believe this behaviour is guaranteed. VOH (output high) has a typical value of 3.4V but doesn't have an upper limit. In practice the LSTTL output has to pass through two diode junctions setting a practical upper limit of 3.8V. This is higher than 3.3V but the difference is less than 0.6V so it should be insufficient to cause the CMOS protection diode to conduct. NEED PULL-UP RESISTORThe output is not guaranteed to reach the levels of the input being driven unless pulled up to 5V. Too WeakThe output of a 4000-series CMOS gate isn't strong enough to reliably drive a LSTTL input. Exceptions are the 4049 and 4050 buffers which have a stronger output than other devices. HCMOS has a higher drive capability than 4000 series.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||