LM393D-T
AI

The **LM393D-T** is a popular dual-channel differential comparator integrated circuit (IC) known for its versatility and low cost. It is designed to operate from a single power supply over a wide range of voltages.
---
## 1. Core Technical Specifications
The LM393 series consists of two independent precision voltage comparators. Below are the primary electrical characteristics:
| Parameter | Specification |
| :--- | :--- |
| **Supply Voltage (Single)** | 2.0V to 36V |
| **Supply Voltage (Dual)** | ±1.0V to ±18V |
| **Input Offset Voltage** | 2.0mV (typical) |
| **Low Supply Current** | 0.4 mA (regardless of supply voltage) |
| **Output Type** | Open Collector |
| **Package Type** | SOIC-8 (Small Outline IC) |
| **Temperature Range** | 0°C to 70°C (standard) |
---
## 2. Key Features and Pinout
The "D" in the suffix usually denotes the **SOIC-8** surface-mount package, while the "T" typically refers to **Tape and Reel** packaging for automated assembly.
### Pin Configuration (SOIC-8)
1. **OUT1**: Output of Comparator 1
2. **IN1-**: Inverting Input 1
3. **IN1+**: Non-inverting Input 1
4. **GND**: Ground (or Negative Supply)
5. **IN2+**: Non-inverting Input 2
6. **IN2-**: Inverting Input 2
7. **OUT2**: Output of Comparator 2
8. **Vcc**: Positive Supply Voltage
---
## 3. How It Functions
### Open-Collector Output
Unlike an Operational Amplifier, the LM393 has an **open-collector output**. This means:
* The output can only "sink" current (pull to ground).
* To achieve a "High" logic level, you **must** use an external **pull-up resistor** connected to the desired logic voltage (e.g., 5V or 3.3V).
* This allows the LM393 to interface easily with different logic families (TTL, CMOS).
### Differential Comparison
The device compares the voltage levels at the two inputs ($IN+$ and $IN-$):
* If $V(IN+) > V(IN-)$, the output transistor turns OFF (High impedance/High via pull-up).
* If $V(IN+) < V(IN-)$, the output transistor turns ON (Low/Grounded).
---
## 4. Common Applications
The LM393D-T is widely used in circuits where level detection is required:
* **Limit Comparators:** Detecting when a signal exceeds a certain threshold.
* **Zero-Crossing Detectors:** Identifying when an AC signal crosses 0V.
* **Oscillators:** Simple square wave generators.
* **Battery Monitors:** Triggering an LED or alarm when battery voltage drops.
* **Interface Circuits:** Converting analog signals to digital levels for Microcontrollers (MCUs).
---
## 5. Typical Circuit Example
To use the LM393 as a simple light sensor interface:
```cpp
// Logic Diagram
// [LDR/Divider] -> Pin 3 (IN+)
// [Potentiometer] -> Pin 2 (IN-)
// [Pull-up 10k] -> Pin 1 (OUT1) -> MCU Digital Input
```
- ⤷
What is the difference between an LM393 and an LM358?
- ⤷ How do I choose the correct pull-up resistor value for the LM393?
- ⤷ Can the LM393 operate with a split (positive and negative) power supply?