LM339APW - Quad Differential Comparator, TSSOP-14 | Texas Instruments
MPN: LM339APW ✓ فعالLM339APW نمای کلی
A differential comparator is an analog building block that compares two input voltages and drives its output to indicate which is higher. Within the signal-chain hierarchy, comparators sit alongside operational amplifiers in the amplifier IC family but are optimized for fast, saturated switching rather than linear amplification, making them core components in power management, level detection, and mixed-signal systems.
Key features include a common-mode input voltage range that extends to ground (V-), which enables ground-referenced sensing from a single positive supply; a differential input voltage range equal to the maximum-rated supply voltage; low output saturation voltage for efficient driving of loads; and outputs compatible with TTL, MOS, and CMOS logic families. The four independent comparators allow quad-channel threshold monitoring in a single footprint.
Architecturally, each comparator uses a PNP differential input stage that allows inputs to swing down to the negative rail, followed by gain and open-collector output stages that require an external pull-up resistor. Because outputs are open-collector, multiple comparator outputs can be wire-ORed for shared alarm or window-detector functions.
Typical applications include overvoltage and undervoltage supervision, window comparators on power rails, oscillator and relaxation clock generation, analog-to-digital front ends such as flash-converter slicing, and level shifting between analog thresholds and digital logic.
For design, always fit a pull-up resistor (typically 3 kOhm to 15 kOhm) on each open-collector output, and add hysteresis with positive feedback to prevent output chatter near slow-moving thresholds.
This page adds value beyond the datasheet by combining drop-in cross-references, application guidance, comparison tables, and sourcing information in one engineer-oriented reference.
جایگزینهای drop-in برای LM339APW — همان پکیج، سازگار پینبهپین. قطعات با پکیج متفاوت که نیاز به تغییر PCB دارند مستثنی هستند.
LM339BIPW
✅ جایگزین مستقیم📋 جایگزین مرجع (خارج از کاتالوگ)
LM2901BIPW
✅ جایگزین مستقیم ⚠️ مشخصات تأییدنشده📋 جایگزین مرجع (خارج از کاتالوگ)
LM339APT
✅ جایگزین مستقیم ⚠️ مشخصات تأییدنشده📋 جایگزین مرجع (خارج از کاتالوگ)
LM239APT
✅ جایگزین مستقیم📋 جایگزین مرجع (خارج از کاتالوگ)
LM339APW حداکثر مقادیر مجاز و مشخصات الکتریکی
| عملکرد | Quad differential comparator |
| Number of Channels | 4 |
| نوع خروجی | Open-collector |
| Maximum Rated Supply Voltage (A-version) | 30 V |
| Maximum Rated Supply Voltage (B-version) | 38 V |
| Differential Input Voltage Range | Equal to maximum-rated supply voltage |
| Common-Mode Input Range | Includes ground (V-) |
| Supply Current (per comparator, B-version typ) | 200 uA |
| Input Offset Voltage (B-version max) | 0.37 mV |
| Input Bias Current (B-version) | 3.5 nA |
| ESD Rating (B-version, HBM) | 2 kV |
| Output Compatibility | TTL, MOS, CMOS |
| محدوده دمای کاری | 0C to +70C |
| بستهبندی | 14-TSSOP (PW) |
| تعداد پایه | 14 |
| نوع نصب | Surface Mount |
| وضعیت RoHS | Compliant |
پیکربندی پین LM339APW
| پین 1 | OUT2 — Open-collector output, comparator 2 |
| پین 2 | IN2- — Inverting input, comparator 2 |
| پین 3 | IN2+ — Non-inverting input, comparator 2 |
| پین 4 | IN1- — Inverting input, comparator 1 |
| پین 5 | IN1+ — Non-inverting input, comparator 1 |
| پین 6 | OUT1 — Open-collector output, comparator 1 |
| پین 7 | VCC — Positive supply voltage |
| پین 8 | IN3+ — Non-inverting input, comparator 3 |
| پین 9 | IN3- — Inverting input, comparator 3 |
| پین 10 | OUT3 — Open-collector output, comparator 3 |
| پین 11 | IN4- — Inverting input, comparator 4 |
| پین 12 | IN4+ — Non-inverting input, comparator 4 |
| پین 13 | OUT4 — Open-collector output, comparator 4 |
| پین 14 | GND — Ground / negative supply (V-) |
کاربردهای معمول
LM339APW مناسب است برای 6 کاربردs: Power Rail Supervision, Window Comparators, Relaxation Oscillators and Clock Generation, Flash ADC Slice and Threshold Slicing, Sensor Threshold Detection, Automotive-Adjacent Industrial Control.
Power Rail Supervision
The LM339APW's four independent comparators make it a natural fit for multi-rail supervision in servers, industrial controllers, and consumer appliances. Each comparator can monitor one supply rail against a resistor-divider threshold, and because the common-mode input range includes ground, low-voltage rails can be sensed accurately from a single 5 V or 12 V supply. With a maximum rating of 30 V for the A-version, 12 V and 24 V industrial buses can be monitored directly without dividers that attenuate heavily. Open-collector outputs from all four channels can be wire-ORed into a single master reset or fault interrupt, reducing logic gate count. Add hysteresis (tens of millivolts via a 100 kOhm feedback resistor) so that a sagging rail does not cause reset chatter near the threshold.
پیشنهادی
Window Comparators
A window comparator uses two of the four LM339APW comparators to flag when a signal leaves an upper and lower limit, ideal for battery-voltage monitoring, sensor range checking, and production test go/no-go fixtures. One comparator watches the upper threshold while the second watches the lower threshold, sharing the same input signal; their open-collector outputs are wired together so a fault pulls the shared line low regardless of which limit is violated. The 30 V A-version rating allows direct connection to unregulated battery nodes, and the low 0.8 mA typical supply current suits battery-powered monitors. Using two channels of one quad device guarantees matched offset behavior between the upper and lower trip points, improving window accuracy compared to mixing devices.
پیشنهادی
Relaxation Oscillators and Clock Generation
The LM339APW reliably implements relaxation oscillators, square-wave clocks, and PWM ramps by charging a capacitor through a resistor and switching it around a hysteresis window set by positive feedback on one comparator. Open-collector output switching with defined saturation voltage produces clean edges for gating counters, driving optocouplers, or clocking digital ICs, and the output swing is set by the pull-up supply, so a 5 V logic clock can be generated from a 15 V analog rail. Oscillator frequency is set by the RC network (f is roughly 1/(1.4 RC) for the classic topology), making the frequency stable and trimmable with one potentiometer. The remaining three comparators in the quad can serve as level detectors or a second independent oscillator on the same die.
پیشنهادی
Flash ADC Slice and Threshold Slicing
Multi-comparator threshold slicing is a classic LM339 use: cascaded resistor ladders feed successive LM339APW comparators to convert an analog waveform into a thermometer-coded digital word for simple A/D front ends, bar-graph level meters, and priority encoders. Because each channel draws only about 200 uA typical (B-version) and the inputs operate down to ground, a ladder referenced to 0 V works directly from a single supply. Matching between the four on-die comparators is tighter than mixing separate single-channel parts, which improves differential linearity of the slice. Tie unused comparator inputs to a defined node rather than leaving them floating, and keep the ladder impedance low (a few kOhm per step) so input bias current does not shift the thresholds.
پیشنهادی
Sensor Threshold Detection
The LM339APW excels at converting analog sensor outputs into digital status flags for NTC thermistors, photodiodes, pressure-sensor bridges, and current-sense resistors. The ground-including common-mode range permits sensing near 0 V, which is essential for low-side current shunts and grounded thermistor dividers, while the low 3.5 nA input bias current (B-version) keeps high-impedance sensor dividers from shifting. Outputs drive microcontroller GPIO pins directly through pull-ups to the MCU supply, providing simple 3.3 V or 5 V level translation without extra logic. With four channels in one TSSOP-14, a typical multi-sensor board implements over-temperature, over-current, and light-level alarms in a single 9x6.4 mm footprint with minimal quiescent power.
پیشنهادی
Automotive-Adjacent Industrial Control
In industrial and light-vehicle control boards operating from 12 V or 24 V rails, the LM339APW provides rugged analog-to-digital boundary logic: detecting limit-switch states, supervising actuator currents, and generating brake/fault signals. The 30 V maximum rating covers 24 V nominal systems with transients attenuated only by simple input dividers, and the open-collector outputs can directly sink indicator LEDs or optocoupler inputs at tens of milliamps of sink current. For designs that must operate in cold enclosures, the pin-compatible LM2901B in the same PW package extends the rating to -40C to +125C with identical layout. Wire-ORing all four open-collector outputs creates a single fault bus that one MCU interrupt pin can monitor.
پیشنهادی
خلاصه محصولات پیشنهادی
دادههای مرجع مهندسی برای LM339APW — مقایسه، راهنمای طراحی و اطلاعات انطباق.
راهنمای انتخاب
مقایسه با جایگزینها
| پارامتر | این محصول | LM339BIPW | LM2901BIPW | LM339APT | LM239APT |
|---|---|---|---|---|---|
| Package | 14-TSSOP (PW) | 14-TSSOP (PW) - same | 14-TSSOP (PW) - same | 14-TSSOP (PW) - same | 14-TSSOP - same |
| Brand | Texas Instruments | Texas Instruments | Texas Instruments | Texas Instruments | STMicroelectronics |
| Number of Comparators | 4 | 4 | 4 | 4 | 4 |
| Output Type | Open-collector | Open-collector | Open-collector | Open-collector | Open-collector |
| Maximum Rated Supply Voltage | 30 V (A-version) | 38 V (B-version) | 38 V (B-version) | 30 V | 30 V |
| Supply Current (per comparator) | 0.8 mA typ total family figure | 200 uA typ | 200 uA typ | 0.8 mA typ | 0.8 mA typ |
تفاوتهای کلیدی
- Commercial temperature grade at commodity cost (در مقابلLM2901BIPW)
- Pin-compatible upgrade path with 38 V rating (در مقابلLM339BIPW)
- Tube packaging for prototyping (در مقابلLM339APT)
یادداشتهای طراحی
Never leave LM339APW outputs or unused comparator inputs floating. Every open-collector output must have a pull-up resistor (3 kOhm to 15 kOhm is typical) to a defined supply, or the output high level is undefined and TTL/CMOS stages driven from it will misread. Tie unused inputs to a rail or a mid-divider so the unused comparator's output stays in a known state; floating PNP input stages can sit in the linear region and draw extra supply current or oscillate.
Add hysteresis whenever the input moves slowly across the threshold, as in battery voltage supervision or NTC sensing. Without positive feedback, input-referred noise of a few millivolts causes output chatter at the transition. A typical implementation feeds the output back to the non-inverting input through a 100 kOhm to 1 MOhm resistor, creating 10 mV to 50 mV of hysteresis depending on the divider impedance and the pull-up supply. Note that because the output is open-collector, the hysteresis band depends on the pull-up resistor value, not a push-pull output level.
Place a 100 nF ceramic decoupling capacitor directly across VCC (pin 7) and GND (pin 14). Although comparator supply current is low (about 0.8 mA typical), open-collector output switching dumps fast current steps into ground, so keep the GND return of the pull-up resistors close to pin 14 to prevent ground bounce between the reference divider and the input grounds. Route the reference divider (e.g., TL431 or resistor ladder) away from output pull-up traces to avoid coupling output transitions into threshold nodes.
Estimated: at VIN = 24 V with all four outputs sinking into 10 kOhm pull-ups to 5 V, each conducting output adds roughly (24 V - 0.2 V)/10 kOhm approximately 2.4 mA of sink current beyond quiescent current; total device dissipation stays well under the small TSSOP-14 thermal limit, but verify input dividers on 24 V rails. A 100 kOhm / 10 kOhm divider on a 24 V rail presents about 24 V across 110 kOhm and biases the input at approximately 2.2 V, which sits safely within the ground-including common-mode range.
اطلاعات انطباق
RoHS and REACH compliance codes listed in distributor cross-reference data for the LM339 series. AEC-Q100 qualification is not stated for this commercial-grade part; use the LM2901-family automotive grades for automotive designs.