MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Logic level standards: TTL, CMOS and RS232 differences
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Logic level standards: TTL, CMOS and RS232 differences

TTL, CMOS and RS232 each have different levels, and wrong joining burns parts or fails comms. This page gives the three ranges and how to interconnect.

1. How it works

TTL: output low under 0.4 V, high above 2.4 V, threshold about 1.4 V (low under 0.8, high above 2.0). 5 V CMOS: low under 0.1 VDD, high above 0.9 VDD, so under 0.5 and above 4.5. RS232 is negative logic serial: mark (1) is minus 3 to minus 15 V, space (0) is plus 3 to plus 15 V, a different world that needs a transceiver like MAX232.

2. Practice and pitfalls

TTL and 5 V CMOS can be joined (though TTL high 2.4 V barely meets CMOS VIH 3.5, so use HCT or pull up). 3.3 V CMOS to 5 V needs level shifting or the 5 V output exceeds the 3.3 V part rating. RS232 must never touch a MCU TTL serial directly; use a transceiver, and TTL cannot drive RS232 negative either. The common mistake burns the serial chip.

3. Logic level table

StandardLowHigh
TTLunder 0.4 Vabove 2.4 V
5V CMOSunder 0.5 Vabove 4.5 V
3.3 CMOSunder 0.33 Vabove 2.97 V
RS232+3 to +15 (0)-3 to -15 (1)
Input thTTL ~1.4 VCMOS VDD/2
Joinneeds shiftno over V

4. Notes

TTL high is above 2.4 V, 5 V CMOS above 4.5 V, RS232 is plus minus 3 to 15 V negative logic. TTL and 5 V CMOS nearly connect but the high is marginal so pull up or use HCT; 3.3 V to 5 V needs shifting; RS232 absolutely needs a transceiver and never direct MCU serial.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Interface levels per GB/T 4728; serial to IEC 60204-1 and GB/T 5226.1. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① RS232 straight to MCU: negative voltage burns the IO; use a transceiver.
② 5 V driving 3.3 V directly overvolts and damages.
③ TTL high 2.4 V is marginal for CMOS; pull up or use HCT.

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL