Inside an IC package
The package protects a silicon die and connects its tiny internal structures to pins that can be soldered or inserted into a circuit.
Discover how tiny integrated circuits make decisions with electrical signals. Learn logic levels, read truth tables, explore the basic gates and build a real two-input logic circuit.
An integrated circuit (IC) is a complete electronic circuit manufactured on a small semiconductor die. Depending on its purpose, it may contain transistors, resistors, diodes and other structures connected to perform a defined function. A logic IC contains digital circuits that process HIGH and LOW signal states.
The package protects a silicon die and connects its tiny internal structures to pins that can be soldered or inserted into a circuit.
Different ICs may look similar. Identify the exact part number and consult its datasheet before wiring it.
Important distinction: an IC is a physical package containing a circuit. A logic gate is a function that circuit performs. One IC can contain several independent gates.
With the notch at the top and the IC viewed from above, pin 1 is at the upper-left. Count down the left side, then continue from the lower-right up the right side.
For a 5 V 74HC circuit, a LOW is near 0 V and a HIGH is near the supply voltage. Real input thresholds are specified in the datasheet; they are not a universal fixed voltage.
A digital input interprets a voltage range as one of two logic states. It does not require the voltage to be exactly zero or exactly the supply voltage. Noise margins separate guaranteed LOW and HIGH ranges from the uncertain transition region.
The pull-down resistor holds the input LOW while the button is released. Pressing the button connects it to +5 V.
Output is HIGH only when both inputs are HIGH.
Output is HIGH when at least one input is HIGH.
Output is the opposite of the input.
AND followed by inversion. Output is LOW only when both inputs are HIGH.
OR followed by inversion. Output is HIGH only when both inputs are LOW.
Output is HIGH when the inputs are different.
The small circle (bubble) on a gate output means inversion. XOR has an extra curved line at its input side.
A truth table lists the output for every possible combination of binary inputs. With two inputs there are four combinations: 00, 01, 10 and 11.
| A | B | AND | OR | NAND | NOR | XOR |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Remember: NOT has one input, so its truth table has two rows: 0 becomes 1, and 1 becomes 0. AND and OR are not arithmetic multiplication and addition of analogue voltages; the symbols describe Boolean logic.
Choose a gate, then switch inputs A and B between LOW (0) and HIGH (1). This is a truth-table teaching model, not an electrical simulation of a particular IC.
AND requires both inputs to be HIGH.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The highlighted row matches the current input switches.
The 74HC08 contains four independent two-input AND gates. We will use the first gate to control an LED. The LED turns on only when both pushbuttons are pressed.
The 74HC08 DIP-14 pinout follows the standard quad two-input AND arrangement. Confirm the manufacturer's datasheet for your exact part.
Use a current-limited bench supply or a suitable regulated 5 V logic supply. Do not power the circuit from an unknown source.
Conceptual wiring layout. The two input resistors hold their pins LOW when the buttons are released. The bypass capacitor connects directly between IC pins 14 and 7, close to the package. The LED is shown as an output indicator; verify its polarity before power-up.
Measure pin 1, pin 2 and pin 3 relative to GND with a digital multimeter. Compare the readings with the truth table. Voltage values will depend on the supply and the logic family's input/output specifications.
| IC example | Function | Typical gates | What it does |
|---|---|---|---|
| 74HC08 | AND | 4 × 2-input | HIGH only when both inputs are HIGH. |
| 74HC32 | OR | 4 × 2-input | HIGH when either or both inputs are HIGH. |
| 74HC04 | NOT | 6 × inverter | Reverses each input state. |
| 74HC00 | NAND | 4 × 2-input | Universal gate; can build other logic functions. |
| 74HC02 | NOR | 4 × 2-input | Universal gate; output is inverted OR. |
| 74HC86 | XOR | 4 × 2-input | HIGH when inputs differ. |
These are common 74HC-family examples, not a guarantee of identical behaviour across all manufacturers or variants. Check supply range, input thresholds, output current and package pinout in the datasheet.
NAND and NOR are universal gates. With suitable connections, either type can be combined to construct NOT, AND, OR and more complex logic functions. This is one reason digital systems can be built from a relatively small set of primitives.
Digital systems often combine several conditions. A machine might run only when the start command is active, the guard is closed and no fault is detected. A simple expression could be:
A conceptual logic chain. Real safety interlocks require a risk assessment and appropriately rated hardware; hobby logic ICs alone are not safety controllers.
Next, explore how logic gates combine into flip-flops, counters, registers, multiplexers and arithmetic circuits. Those building blocks lead towards digital systems and computer architecture.
Explore these open lessons at your own pace. For personalised explanations, project-specific troubleshooting, guided practical training or masterclasses, EazyLife offers paid support tailored to your learning goals.
Free or sponsored lesson referrals may be available through active programmes; they are not guaranteed.