Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

LM331Voltage-to-frequency converter

Measure an analog voltage by counting its output pulses.

Manufacturer-referenced

Texas Instruments · LM331N/NOPB

PDIP-8SNOSBI2C · September 2015

LM331 converts an analog voltage into a train of pulses whose frequency can be counted digitally. Its reference current source, comparator and timed switching circuit balance charge in an external integration network. Properly chosen components allow accurate conversion without a conventional parallel ADC interface. The example follows the manufacturer’s stand-alone voltage-to-frequency circuit with a15V analog supply and a5V output pull-up. A gain trimmer calibrates the nominal10V-to10kHz scale. The internal current output and the open-collector frequency output have different jobs and must be wired separately. This page covers TI LM331N/NOPB in its documented PDIP-8 package. No unverified SMD substitute is presented as the same TI device. Use stable resistors and low-absorption capacitors, calibrate the gain, and allow the input filter and integration network to settle before interpreting the pulse rate.

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom

Real View

LM331N/NOPB black PDIP-8 package with silver contacts and readable marking.
LM331N/NOPB · PDIP-8Package illustration

Pinout

LM331PDIP-8Top view
Select a pin to see its functionPDIP-8 · 8 pins

PCB Footprint

Loading footprint…
Powered by
Finding PDIP-8 packageTop view · mm
8Physical pins LM331N/NOPBPDIP-8 Manufacturer-referencedTexas Instruments

Pin diagram

Select a pin to explore its connection

Package map
Highlight
LM331PDIP-8Top view

Click a lead or use the arrow keys. Top view

1
PIN 1 · Current and frequency outputs

IOUT

Switched current source

Function

Delivers reference-controlled charge pulses to the integration network.

How to connect

Join THRESH6 at the RL/CL top node.

Electrical note

Not the logic frequency output.

Key specifications

Measure an analog voltage by counting its output pulses.

Recommended supply4–40 V
Example calibrated scale1 kHz per volt
Operating ambient0–70 °C
Typical supply current3 mA at5V

Package details

LM331N/NOPB · PDIP-8

Selected package
Selected LM331 physical package
PropertyDetails
ManufacturerTexas Instruments
Part numberLM331N/NOPB
PackagePDIP-8
Connections8 pins
MountingThrough-hole
Lead pitch2.54 mm
Package codePDIP-8
Thermal referenceSee operating and package limits

Operating conditions

TI LM331 commercial grade

Scroll sideways to see all columns.

ParameterValueConditions / notes
Supply4–40V15V in the example
Ambient0–70°CLM331; LM231 grade differs
Comparator common-mode range−0.2V toVS−2VOver rated temperature
Supply current at5V3mA typical;6mA maxLM331, stated test circuit
Supply current at40V4mA typical;8mA maxStated test circuit
Full-scale frequency capability1Hz to100kHz feature rangeRequires an appropriate application circuit

The shown circuit is calibrated for10kHz full scale, not automatically for100kHz.

Accuracy and calibration

Keep the test circuit distinction

Scroll sideways to see all columns.

ParameterValueConditions / notes
Figure16 precision circuit nonlinearity±0.003% typical;±0.01% max4.5–20V,25°C, stated calibrated conditions
Shown Figure14 circuit nonlinearity±0.024% typical;±0.14% max15V;10Hz to11kHz
Untrimmed LM331 scale factor0.9–1.1kHz/VFigure16 conditions;RS14kΩ
Gain temperature drift±30ppm/°C typical;±150ppm/°C maxNon-A LM331;4.5–20V
Comparator offset±3mV typical;±10mV max25°C
Comparator bias current−80nA typical;−300nA maxStated conditions

The precision-circuit headline is not the guaranteed accuracy of this simpler stand-alone example.

Reference and output

25°C unless stated

Scroll sideways to see all columns.

ParameterValueConditions / notes
IREF voltage1.89V typical;1.70–2.08VLM331
Switched IOUT136µA typical;116–156µARS14kΩ;IOUT at0V
Timer threshold0.667VS typical;0.63–0.70VSRC pin5
FOUT LOW0.15V typical;0.5V maxSinking5mA
FOUT LOW overtemperature0.1V typical;0.4V maxSinking3.2mA
FOUT OFF leakage±0.05µA typical;1µA maxOpen collector

No load should force output or input terminals beyond their specified limits.

Stand-alone conversion network

Adapted from TI Figure14

Scroll sideways to see all columns.

ParameterValueConditions / notes
Analog supply / output pull-up15V /5V100nF local supply bypass;FOUT through10kΩ to5V
RT / CT6.8kΩ /10nFRT from15V toRC5;CT fromRC5 toGND
RIN / CIN100kΩ /100nFVIN throughRIN toCOMPIN7;CIN toGND
RL / CL100kΩ /1µF in parallelFrom joinedIOUT1/THRESH6 toRETURN
Hysteresis return47Ω fromRETURN toGNDShared lower end ofRL andCL
RS12kΩ plus5kΩ rheostatIREF2 toGND; trim gain
Logic outputFOUT3 tofrequency counterOpen collector with10kΩ pull-up
Offset adjustmentOptional manufacturer network omittedGain calibration retained

Use a film or other suitable low-absorption integration capacitor and stable timing components. Matching labels identify connected nodes.

Nominal conversion relationships

Ideal charge balance

Scroll sideways to see all columns.

ParameterValueConditions / notes
FrequencyfOUT=(VIN/2.09V)×(RS/RL)×1/(RTCT)Manufacturer application equation
Gain for1kHz/VRS≈14.212kΩRL100kΩ,RT6.8kΩ,CT10nF; then calibrate
Timed current pulset≈1.1RTCT≈74.8µsNominal timing interval
Example input2.5V→2.5kHzAfter calibration
Pulse count in100ms250 pulses at2.5VQuantization step≈10mV per count
Response timeFilter and integration dependentDo not treat one pulse as an instant precision reading

Values are nominal calculations; device gain, offset and component tolerance require calibration.

Package and thermal reference

LM331N/NOPB · PDIP-8

Scroll sideways to see all columns.

ParameterValueConditions / notes
Pitch2.54 mmThrough-hole
Verified TI package8-pinPDIP(P)No TI SMD option in the cited orderable table
Absolute supply40VSame numerical upper limit as recommended; do not exceed
Absolute input−0.2V toVSStress rating
Maximum junction150°CApply thermal derating
Junction-to-ambient100°C/WSpecified PDIP reference
Storage−65 to+150°CUnpowered

Verify the exact manufacturer and ordering suffix when sourcing parts.

Connections by function

Select a pin for its function, connection guidance and electrical notes.

Current and frequency outputs2 pins

Reference current1 pin

Ground1 pin

Timing network1 pin

Comparator inputs2 pins

Supply1 pin

Read the conditions with every value

Typical values describe stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Official PDF datasheet

LM331 at a glance

Follow the labeled connections and functional stages

LM331 working principle: illustrated functional stages, basic circuit and connections
Select the diagram to read it at full resolution.

How it works

3 stages · Explore one step at a time

Step 1 / 3

Compare

The comparator compares filtered VIN with the integrated feedback voltage.

Step 2 / 3

Deliver charge

A timed pulse routes reference current into the integration network.

Step 3 / 3

Balance and count

The repetition rate settles so average feedback follows VIN. Count FOUT pulses to recover the input level.

LM331 in a circuit

15V analog supply,5V frequency output.

LM331NPDIP8with6.8k10nFtimer,100k100nFinputfilter,100k1uFintegrator,47ohmreturn,12kplus5ktrimand10koutputpullup.
Original drawing based on TI Figure14, with optional offset-adjust circuit omitted.

Connect it, step by step

Follow the component values and pin connections

Build the networks

Keep input-filter and integration components close to the IC.

Trim the gain

Apply a known input and adjustRS for the intended output frequency.

Count

Use a5V-compatible counter on FOUT and allow settling.

Inside LM331

Reference current, comparator, timer and pulse output.

CompactLM331cutawayshowingreference,comparator,timedlatch,switchedcurrentsourceandopen-collectoroutput.
Functional architecture. External timing and integration components complete the converter.

Explore the circuit

Select a stage to see its role and connections

Reference

IREF controls the switched current.

Timing

RC sets a nominal charge-pulse duration.

Output

FOUT supplies countable open-collector pulses.

Selected packagePDIP-8LM331N/NOPB
Physical connections8 pinsPackage-specific numbering
Reference collection7 tables39 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

PDIP-8
Physical pin numbers8 pins

Scroll within the table to see all columns and rows.

LM331 pin functions and connections
PinSignalTypeFunction & connection
IOUTSwitched current sourceDelivers reference-controlled charge pulses to the integration network.
Connection guidance

Join THRESH6 at the RL/CL top node.

Not the logic frequency output.

IREFReference current settingApproximately1.89V at the current-setting contact.
Connection guidance

Connect12kΩ plus5kΩ gain-adjust rheostat in series toGND.

Tie rheostat wiper to its unused end for reliable adjustment.

FOUTOpen-collector pulse outputOutputs a pulse train whose frequency follows the input.
Connection guidance

Pull up through10kΩ to+5V; connect a frequency counter.

Requires a pull-up; do not assume a push-pull HIGH.

GNDSupply returnCommon analog and logic reference.
Connection guidance

Connect all ground symbols here.

RCTiming nodeCharges toward the internal timer threshold and then resets.
Connection guidance

Connect6.8kΩ to+15V and10nF toGND.

Use stable, low-leakage timing parts.

THRESHComparator thresholdMonitors the integrated feedback voltage.
Connection guidance

Join IOUT1; RL100kΩ and CL1µF in parallel connect to the47Ω return node.

COMPINComparator signal inputReceives the filtered voltage to convert.
Connection guidance

Apply VIN through100kΩ; bypass this pin toGND with100nF.

Keep normal input below VS−2V.

VSPositive supplyPowers the converter.
Connection guidance

Apply+15V in this example; bypass locally with100nF.

Recommended device supply4–40V; circuit limits also matter.

PDIP-8 · Top view · Select a pin number to open its interactive pinout.

Operating conditions

TI LM331 commercial grade

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Supply4–40V15V in the example
Ambient0–70°CLM331; LM231 grade differs
Comparator common-mode range−0.2V toVS−2VOver rated temperature
Supply current at5V3mA typical;6mA maxLM331, stated test circuit
Supply current at40V4mA typical;8mA maxStated test circuit
Full-scale frequency capability1Hz to100kHz feature rangeRequires an appropriate application circuit

The shown circuit is calibrated for10kHz full scale, not automatically for100kHz.

Accuracy and calibration

Keep the test circuit distinction

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Figure16 precision circuit nonlinearity±0.003% typical;±0.01% max4.5–20V,25°C, stated calibrated conditions
Shown Figure14 circuit nonlinearity±0.024% typical;±0.14% max15V;10Hz to11kHz
Untrimmed LM331 scale factor0.9–1.1kHz/VFigure16 conditions;RS14kΩ
Gain temperature drift±30ppm/°C typical;±150ppm/°C maxNon-A LM331;4.5–20V
Comparator offset±3mV typical;±10mV max25°C
Comparator bias current−80nA typical;−300nA maxStated conditions

The precision-circuit headline is not the guaranteed accuracy of this simpler stand-alone example.

Reference and output

25°C unless stated

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
IREF voltage1.89V typical;1.70–2.08VLM331
Switched IOUT136µA typical;116–156µARS14kΩ;IOUT at0V
Timer threshold0.667VS typical;0.63–0.70VSRC pin5
FOUT LOW0.15V typical;0.5V maxSinking5mA
FOUT LOW overtemperature0.1V typical;0.4V maxSinking3.2mA
FOUT OFF leakage±0.05µA typical;1µA maxOpen collector

No load should force output or input terminals beyond their specified limits.

Stand-alone conversion network

Adapted from TI Figure14

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Analog supply / output pull-up15V /5V100nF local supply bypass;FOUT through10kΩ to5V
RT / CT6.8kΩ /10nFRT from15V toRC5;CT fromRC5 toGND
RIN / CIN100kΩ /100nFVIN throughRIN toCOMPIN7;CIN toGND
RL / CL100kΩ /1µF in parallelFrom joinedIOUT1/THRESH6 toRETURN
Hysteresis return47Ω fromRETURN toGNDShared lower end ofRL andCL
RS12kΩ plus5kΩ rheostatIREF2 toGND; trim gain
Logic outputFOUT3 tofrequency counterOpen collector with10kΩ pull-up
Offset adjustmentOptional manufacturer network omittedGain calibration retained

Use a film or other suitable low-absorption integration capacitor and stable timing components. Matching labels identify connected nodes.

Nominal conversion relationships

Ideal charge balance

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
FrequencyfOUT=(VIN/2.09V)×(RS/RL)×1/(RTCT)Manufacturer application equation
Gain for1kHz/VRS≈14.212kΩRL100kΩ,RT6.8kΩ,CT10nF; then calibrate
Timed current pulset≈1.1RTCT≈74.8µsNominal timing interval
Example input2.5V→2.5kHzAfter calibration
Pulse count in100ms250 pulses at2.5VQuantization step≈10mV per count
Response timeFilter and integration dependentDo not treat one pulse as an instant precision reading

Values are nominal calculations; device gain, offset and component tolerance require calibration.

Package and thermal reference

LM331N/NOPB · PDIP-8

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Pitch2.54 mmThrough-hole
Verified TI package8-pinPDIP(P)No TI SMD option in the cited orderable table
Absolute supply40VSame numerical upper limit as recommended; do not exceed
Absolute input−0.2V toVSStress rating
Maximum junction150°CApply thermal derating
Junction-to-ambient100°C/WSpecified PDIP reference
Storage−65 to+150°CUnpowered

Verify the exact manufacturer and ordering suffix when sourcing parts.

Read each value with its conditions

Typical values describe the stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Texas Instruments · SNOSBI2C · September 2015
Official PDF datasheet

Frequency-to-voltage conversion

A different manufacturer application circuit reverses the conversion; the wiring differs from this example.

Manufacturer application guide

Take it into ProTech

Find LM331 in the Components Library to place its schematic symbol and connect its pins.

Reference page · circuit simulation model not yet availableOpen ProTech

Component view