MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Tri state gates and bus structure
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)(每月更新中)

Tri state gates and bus structure

Besides 0 and 1 a tri state gate has a high impedance state so many devices can share one bus in time. This page explains the principle and avoiding bus conflict.

1. How it works

A normal gate drives 0 or 1; a tri state gate adds an enable: when EN is active it drives 0 or 1 normally, when inactive its output stage turns off to high impedance Z, neither pulling up nor down, effectively disconnected. Thus several tri state devices hang on one bus and only one is enabled at a time while the rest float, so the bus is time shared without shorting.

2. Practice and pitfalls

Typical is a CPU data bus with several chips, each behind a tri state buffer enabled by address decode in turn. On a read only the selected chip drives; on a write only the CPU drives. The bus ends often have pull up or down to hold a defined idle level. Tri state saves pins and wiring and is the base of computer and PLC expansion buses.

3. Tri state and bus

ENOutputBus role
Active0/1drive
InactiveHi Zdisconnect
Multiconflictburn IO
Idlepull up/downdefined
Decodemutual exclno clash
Longterminateno reflect

4. Notes

A tri state gate drives 0/1 when enabled and goes high Z when not, letting devices share a bus. The discipline: only one enabled at a time, with mutually exclusive decode to avoid conflict that burns IO; pull the idle bus to a defined level, terminate long lines and remember tri state at power on.

5. References

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

6. Cautions

⚠️ Three common pitfalls:
① Enabling several tri states at once conflicts the bus and can burn IO.
② Enable glitches briefly double enable and clash; decode cleanly.
③ Idle bus with no pull up floats; add pull up or down.

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