PIC16LF1789-E/P - 8-Bit MCU, 28KB Flash, 40-PDIP | Microchip
MPN: PIC16LF1789-E/P β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.41 | $3.41 |
| 10 | $3.07 | $30.70 |
| 100 | $2.72 | $272.00 |
| 500 | $2.45 | $1,225.00 |
| 1,000 | $2.18 | $2,180.00 |
PIC16LF1789-E/P Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory (Flash), volatile working memory (RAM), small data EEPROM, and a rich set of on-chip peripherals (ADC, DAC, timers, communication interfaces) onto one die. Within the broader embedded taxonomy, PIC16LF1789 belongs to: microcontroller -> 8-bit MCU -> PIC16 family -> PIC16F178x sub-family -> power management class with XLP technology. The XLP designation makes the LF line especially suited to battery-powered designs where deep-sleep currents measured in nanoamps are required.
Key differentiating features include a 12-bit ADC with up to 32 single-ended channels, dual 5-bit and 8-bit DACs, on-chip operational amplifiers (Op Amps), a Peripheral Signal Modulator/Conditioner (PSMC) for advanced power-control timing, Fast Comparators, Capture/Compare/PWM (CCP), I2C/SPI, and an enhanced USART (EUSART). The integrated op amps allow closed-loop analog signal conditioning without external amplifiers, which simplifies BOM and shrinks PCB area for sensor-interface designs.
Typical applications include industrial sensor signal conditioning, battery-powered IoT edge nodes, automotive body and HVAC control modules, precision metering and instrumentation, LED lighting with closed-loop current control using PSMC, and low-cost analog front ends where the on-chip DACs and op amps replace discrete analog stages. When laying out the PCB, route the analog AVCC/AGND pins directly to a star-grounded analog plane and keep digital switching traces away from the sensitive analog pins to preserve the 12-bit ADC SNR.
Drop-in alternatives for PIC16LF1789-E/P β same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC16LF1789-E/P (same form factor and footprint) β differing in ADC, Comparators, DAC, Operating Temperature, Package.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16LF1789-I/P
β Drop-Inπ Reference alternative (not in catalog)
PIC16F1789-E/P
β Drop-Inβ In Stock
$2.07 / Unit
View Datasheet βPIC16F1789-I/P
β Drop-Inπ Reference alternative (not in catalog)
PIC16LF1788-I/P
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16LF1779-I/P
β Drop-In β οΈ εζ°εΎ ιͺθ―β In Stock
$3.11 / Unit
View Datasheet βPIC16LF1769-I/P
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16LF1789-E/P Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC16 enhanced core |
| Program Memory (Flash) | 28 KB (16K x 14 words) |
| RAM | 2 KB |
| EEPROM | 256 B |
| Maximum CPU Speed | 32 MHz (32 MIPS) |
| Operating Voltage Range | 1.8 V to 3.6 V |
| ADC | 12-bit, up to 32 channels |
| DAC | 5-bit and 8-bit on-chip |
| Op Amps | On-chip operational amplifiers |
| Comparators | Fast comparators on-chip |
| PSMC | Peripheral Signal Modulator/Conditioner |
| PWM / CCP | Capture/Compare/PWM modules |
| Communication | I2C, SPI, EUSART |
| Package | 40-pin PDIP (DIP-40), 0.600 inch / 15.24 mm |
| Mounting Type | Through-Hole |
| Operating Temperature | -40C to +125C (E grade) |
| Low-Power Technology | XLP (eXtreme Low Power) |
| RoHS Status | Compliant |
PIC16LF1789-E/P Pin Configuration
| Pin 1 | RE3/MCLR/VPP β Digital input RE3 / Master Clear (reset) / Programming voltage |
| Pin 2 | RA0/AN0/C1IN+/C2IN+/C3IN+/DACOUT β PORTA bit 0 / Analog input 0 / Comparator inputs / DAC output |
| Pin 3 | RA1/AN1/C1IN-/C2IN-/C3IN-/OPA1IN+ β PORTA bit 1 / Analog input 1 / Comparator inputs / Op amp 1 non-inverting input |
| Pin 4 | RA2/AN2/C1IN0+/C2IN0+/C3IN0+/OPA1IN- β PORTA bit 2 / Analog input 2 / Comparator inputs / Op amp 1 inverting input |
| Pin 5 | RA3/AN3/C1IN1+/C2IN1+/C3IN1+/VREF+ β PORTA bit 3 / Analog input 3 / Comparator inputs / External voltage reference plus |
| Pin 6 | RA4/AN4/C1IN2-/C2IN2-/C3IN2-/T0CKI/OPA1OUT β PORTA bit 4 / Analog input 4 / Comparator inputs / Timer0 clock / Op amp 1 output |
| Pin 7 | RA5/AN5/C1IN3+/C2IN3+/C3IN3+/SS/OPA2IN+ β PORTA bit 5 / Analog input 5 / Comparator inputs / SPI slave select / Op amp 2 non-inverting input |
| Pin 8 | RA6/OSC2/CLKOUT β PORTA bit 6 / Oscillator output / Clock output |
| Pin 9 | RA7/OSC1/CLKIN β PORTA bit 7 / Oscillator input / Clock input |
| Pin 10 | VSS β Ground reference |
| Pin 11 | VDD β Positive supply voltage (1.8 V to 3.6 V) |
| Pin 12 | RB0/AN12/C2IN4+/C3IN4+/INT/FLT0/SDI/SDA β PORTB bit 0 / Analog input 12 / Comparator input / External interrupt / Fault input / SPI data in / I2C data |
| Pin 13 | RB1/AN10/C1IN3-/C2IN3-/C3IN3-/OPA1IN0+/SCK/SCL β PORTB bit 1 / Analog input 10 / Comparator inputs / Op amp 1 alt non-inverting / SPI clock / I2C clock |
| Pin 14 | RB2/AN8/C1IN2-/C2IN2-/C3IN2-/OPA2IN-/P1A/SDO β PORTB bit 2 / Analog input 8 / Comparator inputs / Op amp 2 inverting / PWM output / SPI data out |
| Pin 15 | RB3/AN9/C1IN1-/C2IN1-/C3IN1-/OPA2IN+/CCP1/P1B β PORTB bit 3 / Analog input 9 / Comparator inputs / Op amp 2 non-inverting / CCP1 / PWM output |
| Pin 16 | RB4/AN11/C1IN0-/C2IN0-/C3IN0-/P1C/SDI/SDA β PORTB bit 4 / Analog input 11 / Comparator inputs / PWM output / SPI data in / I2C data |
| Pin 17 | RB5/AN13/C1IN4-/C2IN4-/C3IN4-/P1D/SCK/SCL β PORTB bit 5 / Analog input 13 / Comparator inputs / PWM output / SPI clock / I2C clock |
| Pin 18 | RB6/ICSPCLK/ICDCLK/CCP2 β PORTB bit 6 / ICD clock / CCP2 |
| Pin 19 | RB7/ICSPDAT/ICDDAT β PORTB bit 7 / ICD data |
| Pin 20 | AVSS β Analog ground reference |
| Pin 21 | AVDD β Analog positive supply (tie to VDD) |
| Pin 22 | RC0/T1OSO/T1CKI/P2A β PORTC bit 0 / Timer1 oscillator output / Timer1 clock input / PWM output |
| Pin 23 | RC1/T1OSI/CCP1/P2B β PORTC bit 1 / Timer1 oscillator input / CCP1 / PWM output |
| Pin 24 | RC2/AN14/C1IN1+/C2IN1+/C3IN1+/OPA2OUT/P2C β PORTC bit 2 / Analog input 14 / Comparator inputs / Op amp 2 output / PWM output |
| Pin 25 | RC3/AN15/C1IN0+/C2IN0+/C3IN0+/PSMC1/P2D β PORTC bit 3 / Analog input 15 / Comparator inputs / PSMC1 / PWM output |
| Pin 26 | RC4/AN16/C1OUT/PSMC2/C2OUT β PORTC bit 4 / Analog input 16 / Comparator 1 output / PSMC2 / Comparator 2 output |
| Pin 27 | RC5/AN17/C3OUT/PSMC3 β PORTC bit 5 / Analog input 17 / Comparator 3 output / PSMC3 |
| Pin 28 | RC6/AN18/CCP3/TX/CK β PORTC bit 6 / Analog input 18 / CCP3 / EUSART TX / EUSART clock |
| Pin 29 | RC7/AN19/CCP4/RX/DT β PORTC bit 7 / Analog input 19 / CCP4 / EUSART RX / EUSART data |
| Pin 30 | RD0/AN20/PSMC4/CCP5 β PORTD bit 0 / Analog input 20 / PSMC4 / CCP5 |
| Pin 31 | RD1/AN21/PSMC5/CCP6 β PORTD bit 1 / Analog input 21 / PSMC5 / CCP6 |
| Pin 32 | RD2/AN22/PSMC6 β PORTD bit 2 / Analog input 22 / PSMC6 |
| Pin 33 | RD3/AN23/PSMC7 β PORTD bit 3 / Analog input 23 / PSMC7 |
| Pin 34 | RD4/AN24/PSMC8 β PORTD bit 4 / Analog input 24 / PSMC8 |
| Pin 35 | RD5/AN25/PSMC9 β PORTD bit 5 / Analog input 25 / PSMC9 |
| Pin 36 | RD6/AN26/PSMC10 β PORTD bit 6 / Analog input 26 / PSMC10 |
| Pin 37 | RD7/AN27/PSMC11 β PORTD bit 7 / Analog input 27 / PSMC11 |
| Pin 38 | VSS β Ground reference |
| Pin 39 | VDD β Positive supply voltage (1.8 V to 3.6 V) |
| Pin 40 | RE0/AN5/PSMC12 β PORTE bit 0 / Analog input 5 / PSMC12 |
Typical Applications
PIC16LF1789-E/P is suitable for 6 applications: Industrial Sensor Signal Conditioning, Battery-Powered IoT Edge Nodes, Automotive Body and HVAC Control, Precision Metering and Instrumentation, LED Lighting with Closed-Loop Current Control, Low-Cost Analog Front End Replacement.
Industrial Sensor Signal Conditioning
The PIC16LF1789-E/P is well suited for industrial sensor front ends because it integrates a 12-bit ADC with up to 32 channels, on-chip op amps, and ratiometric FVR references in a single 40-pin PDIP. The on-chip op amps allow direct bridge-amplifier or thermistor-amplifier topologies without external analog ICs, while the 12-bit ADC delivers 4096-step resolution at up to 100 ksps for pressure, flow, and temperature transmitters. The XLP silicon draws nanoampere-class sleep current between conversions, enabling multi-year battery life in remote wireless sensor nodes. Place the MCU between the sensor bridge and the 4-20 mA / wireless modem stage, using the op amp outputs as ADC inputs and the 5-bit DAC for offset trim. Compared with an MCU + external op amp solution, this approach removes two ICs and the corresponding PCB area.
Recommended
Battery-Powered IoT Edge Nodes
The PIC16LF1789-E/P is ideal for battery-powered IoT edge nodes thanks to its 1.8 V to 3.6 V XLP silicon, sub-microampere sleep modes, and 32 MHz active MIPS that lets the MCU wake, sample, transmit, and return to sleep within milliseconds. The 28KB Flash and 2KB RAM comfortably run an MPLAB XC8 compiled LoRaWAN or BLE beacon stack, while the 12-bit ADC with 32 channels multiplexes multiple sensors onto a single MCU. The on-chip DACs generate bias voltages for analog front ends without external references. A typical duty cycle of 0.1% wake per hour yields 5+ year coin-cell operation. Use the LF variant exclusively when VIN is below 2.3 V, as the standard F variant cannot operate below that threshold and would brown out on a depleted coin cell.
Recommended
Automotive Body and HVAC Control
The PIC16LF1789-E/P supports the E-grade -40C to +125C industrial temperature range that overlaps the AEC-Q100 Grade 1 envelope, making it suitable for under-hood and HVAC body controllers in non-safety automotive subsystems. The 12-bit ADC reads thermistor networks and manifold-pressure sensors, while the PSMC generates the switching signals for blower-motor FETs and stepper-motor drivers. The EUSART links to CAN transceivers via a side-car interface or LIN bus. The 40-pin PDIP through-hole footprint simplifies hand-solderable prototyping and rework-friendly production for low-volume automotive part numbers. For full AEC-Q100 qualification, source the equivalent -VAO or -E/VAO part number from Microchip, which uses the same silicon die in automotive-qualified production lines.
Recommended
Precision Metering and Instrumentation
Precision metering relies on high-resolution ADCs and stable references, and the PIC16LF1789-E/P delivers both through its 12-bit ADC, on-chip FVR (Fixed Voltage Reference), and dedicated 32.768 kHz RTC-style timer for integration. The MCU computes RMS, kWh, or pulse counts in firmware, stores calibration tables in 256B EEPROM, and drives the display via SPI. The on-chip op amps condition current-shunt signals for class-0.5 energy meters, replacing an external instrumentation amplifier IC and shrinking BOM by one part. Use the 8-bit DAC to drive a 4-20 mA loop for industrial transmitters, with the 12-bit ADC verifying loop current via shunt feedback. The XLP sleep modes preserve battery backup during power outages for billing memory retention.
Recommended
LED Lighting with Closed-Loop Current Control
Closed-loop LED drivers benefit from the PIC16LF1789-E/P's PSMC (Peripheral Signal Modulator/Conditioner), which generates high-resolution PWM with programmable dead-band, fault blanking, and analog modulation. The on-chip op amps compare the current-shunt voltage against the DAC reference and feed back to the PSMC, implementing a fully analog-controlled buck or boost LED driver without external PWM controller ICs. The MCU's firmware adjusts the DAC reference to dim the LED string via analog or PWM dimming. The XLP low-power silicon is also ideal for emergency-lighting battery-backup designs where standby current must remain in microamperes. The 40-pin PDIP footprint simplifies through-hole prototyping of LED fixtures where thermal stress rules out SMD assembly.
Recommended
Low-Cost Analog Front End Replacement
The PIC16LF1789-E/P doubles as a low-cost analog front end (AFE) replacement by integrating op amps, DACs, comparators, and PSMC analog modulation in a single MCU. Designers can build programmable current sources, voltage references, function generators, and active filters entirely in firmware and analog blocks, eliminating separate AFE ICs. The 12-bit ADC with FVR provides calibrated ratiometric measurements, while the 8-bit DAC generates bias voltages or waveform outputs up to 1 kHz. Typical applications include potentiostat front ends, electrochemical sensor biasing, and arbitrary waveform generators for test equipment. Compared with a discrete op amp + DAC + MCU design, this consolidation reduces BOM count, PCB area, and unit cost for high-volume products.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF1789-E/P β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF1789-I/P | PIC16F1789-E/P | PIC16F1789-I/P | PIC16LF1788-I/P |
|---|---|---|---|---|---|
| Package | 40-pin PDIP (DIP-40) | 40-pin PDIP (DIP-40) | 40-pin PDIP (DIP-40) | 40-pin PDIP (DIP-40) | 40-pin PDIP (DIP-40) |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Operating Voltage Range | 1.8 V to 3.6 V (LF/XLP) | 1.8 V to 3.6 V (LF/XLP) | 2.3 V to 5.5 V (F) | 2.3 V to 5.5 V (F) | 1.8 V to 3.6 V (LF/XLP) |
| Operating Temperature Range | -40C to +125C (E grade) | -40C to +85C (I grade) | -40C to +125C (E grade) | -40C to +85C (I grade) | -40C to +85C (I grade) |
| Flash Program Memory | 28 KB | 28 KB | 28 KB | 28 KB | 28 KB |
| RAM | 2 KB | 2 KB | 2 KB | 2 KB | 2 KB |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit |
| On-Chip Op Amps | Yes (3 op amps) | Yes (3 op amps) | Yes (3 op amps) | Yes (3 op amps) | Reduced (2 op amps) |
| PSMC (PWM/Modulator) | Yes (PSMC1-12) | Yes (PSMC1-12) | Yes (PSMC1-12) | Yes (PSMC1-12) | Limited (PSMC1-6) |
Key Differentiators
- Extended -40C to +125C operating temperature range (vs PIC16LF1789-I/P)
- XLP extreme-low-power silicon for 1.8 V operation (vs PIC16F1789-E/P)
- PSMC peripheral with 12 high-resolution PWM/modulator channels (vs PIC16LF1788-I/P)
Design Notes
Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pin pair (pin 11/10 and pin 39/38), and add a bulk 10 uF tantalum or ceramic at the package. AVDD (pin 21) and AVSS (pin 20) must each be tied directly to VDD/VSS with their own 100 nF decoupling. Never leave AVDD floating - even if the ADC is unused - because internal analog references depend on it. Estimated: power consumption at 32 MHz active is approximately 7 mW (VDD = 3.3 V, IDD ~= 2 mA); sleep current at 1.8 V is approximately 50 nA typical per the XLP spec.
The 40-pin PDIP package has 0.600 inch (15.24 mm) row spacing - lay out the PCB footprint with 0.100 inch (2.54 mm) pitch through-holes. Add a small copper pour under the MCU to share the GND return with decoupling caps. Keep analog pins (PORTA, PORTE, AVCC/AVSS, op amp inputs) away from digital switching traces (PWM, EUSART, SPI) to preserve 12-bit ADC SNR. The ICSP pins (RB6/RB7) need direct access to the PICkit or ICD header for in-circuit programming - do not place series resistors or capacitors on these lines.
Do not power a PIC16LF1789-E/P below 1.8 V - the silicon brown-outs at <1.6 V and may latch up or behave unpredictably. Do not exceed 3.6 V on VDD or damage to internal flash memory may result. The MCLR pin (RE3, pin 1) is the only pin without a digital driver; tie RE3 to VDD through a 10 kohm pull-up to keep the MCU out of reset. If using PSMC outputs for high-current switching, add external FET drivers and never drive MOSFET gates directly from PSMC pins (max 25 mA source/sink).
At maximum CPU speed (32 MHz) and 3.6 V VDD, the PIC16LF1789-E/P consumes approximately 8 mA (28.8 mW). In the 40-pin PDIP package the theta_JA is approximately 50 C/W, yielding a temperature rise of 1.4 C above ambient - well within the +125C envelope. For closed-loop op amp applications driving heavy loads, derate op amp output current to 5 mA continuous per channel. Estimated: junction temperature under typical E-grade ambient (85 C) is approximately 86.4 C, comfortably below the +150 C absolute maximum.
Compliance Information
RoHS and lead-free compliant per Microchip product page. The E-grade temperature envelope (-40C to +125C) overlaps AEC-Q100 Grade 1 but the standard PIC16LF1789-E/P is NOT AEC-Q100 qualified; source the equivalent -VAO or -E/VAO part number for automotive production.