LM393D
AI

The **LM393D** is a widely used, low-power, dual-voltage comparator integrated circuit (IC). It consists of two independent precision voltage comparators designed to operate from a single power supply over a wide range of voltages.
---
### 1. Key Specifications
The LM393D is known for its versatility and low cost. Below are the primary technical parameters:
| Parameter | Specification |
| :--- | :--- |
| **Supply Voltage (Single)** | 2V to 36V |
| **Supply Voltage (Dual)** | ±1V to ±18V |
| **Current Drain** | 0.4 mA (Independent of supply voltage) |
| **Input Offset Voltage** | ±2.0 mV (Typical) |
| **Output Type** | Open Collector |
| **Package Type** | SOIC-8 (Surface Mount) |
---
### 2. Pin Configuration (SOIC-8)
The LM393D contains two comparators (A and B) within a single 8-pin package.
| Pin Number | Symbol | Function |
| :--- | :--- | :--- |
| 1 | OUT A | Output of Comparator A |
| 2 | IN A (-) | Inverting Input of Comparator A |
| 3 | IN A (+) | Non-inverting Input of Comparator A |
| 4 | GND | Ground / Negative Supply |
| 5 | IN B (+) | Non-inverting Input of Comparator B |
| 6 | IN B (-) | Inverting Input of Comparator B |
| 7 | OUT B | Output of Comparator B |
| 8 | Vcc | Positive Power Supply |
---
### 3. Critical Design Considerations
#### Open Collector Output
The LM393D features an **Open Collector** output. This means it can "sink" current to ground but cannot "source" voltage on its own.
* **Requirement:** You **must** use an external **pull-up resistor** connected between the Output pin and Vcc (or another logic level) to get a "High" signal.
* **Advantage:** This allows for "Wired-OR" logic connections and level shifting between different logic voltages (e.g., 5V logic to 12V logic).
#### Input Common-Mode Range
The input common-mode voltage range includes Ground, even when operated from a single supply. This makes it ideal for sensing signals near 0V.
---
### 4. Common Applications
* **Limit Comparators:** Checking if a sensor voltage exceeds a threshold.
* **Zero-Crossing Detectors:** Detecting when an AC signal crosses 0V.
* **Square Wave Generators:** Creating oscillators with minimal components.
* **Battery Level Monitors:** Triggering an LED or alarm when battery voltage drops.
---
### 5. Simple Usage Logic
The operation follows a simple rule:
1. If **Non-Inverting Input (+)** > **Inverting Input (-)**: Output is **High Impedance** (pulled HIGH by the external resistor).
2. If **Non-Inverting Input (+)** < **Inverting Input (-)**: Output is **LOW** (connected to GND).
- ⤷
What is the recommended value for the pull-up resistor in an LM393D circuit?
- ⤷ Can the LM393D be used as an Operational Amplifier (Op-Amp)?
- ⤷ How does the LM393D differ from the LM311 comparator?