Microchip Technology

PIC12F1840-I/SN - 8-bit XLP MCU 32MHz 7KB Flash SOIC-8 | Microchip

MPN: PIC12F1840-I/SN ✓ Active
In Stock Ships in 1-3 business days
2.5 V to 5.5 V Vdss 8-pin SOIC (SN) Package 32 MHz (internal oscillator) Speed 7 KB (4K x 14 words) Memory
From $0.82 USD / Unit
MOQ: 1 |
Price updated: 2026-09-15
Volume Pricing
Qty Unit Price Extended
1 $1.85 $1.85
10 $1.65 $16.50
100 $1.42 $142.00
500 $1.18 $590.00
1,000 $0.99 $990.00
3,000 $0.82 $2,460.00
ℹ️ All prices are in USD

PIC12F1840-I/SN Overview

The Microchip Technology PIC12F1840-I/SN is an 8-bit Flash microcontroller from the PIC XLP 12F family, offering a 32 MHz internal oscillator, 7 KB (4K x 14) Flash program memory, 256 bytes of EEPROM, and 256 bytes of SRAM in an 8-pin SOIC package. It runs from 2.5 V to 5.5 V with industry-leading nanoWatt XLP sleep currents below 20 nA in deep sleep.

A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, programmable I/O peripherals, and communication interfaces. The PIC12F1840 uses an Enhanced Mid-Range 8-bit core with 49 instructions and a 16-level hardware stack, sitting in the taxonomy chain microcontroller -> embedded controller -> semiconductor IC. It is designed for low-pin-count, battery-powered, and always-on applications.

Key features include an internal 32 MHz oscillator, four 10-bit ADC channels, a configurable mTouch capacitive sensing module, a Data Signal Modulator (DSM), an EUSART with auto-baud, an MI2C/SPI interface, a 25 mA source/sink I/O, and a comparator with selectable voltage reference. The integrated ECCP (Enhanced Capture/Compare/PWM) module supports half-bridge, full-bridge, and PWM steering topologies for lighting and motor control.

The 8-pin SOIC (SN) package makes the PIC12F1840-I/SN an ideal drop-in upgrade for legacy PIC12F675 designs that need more memory, more peripherals, and lower sleep current. PIC XLP nanoWatt technology combined with active clock tuning and ultra-low-power wake-up sources enables multi-year coin-cell operation in remote sensor nodes.

Typical applications include consumer appliances, IoT end nodes, LED lighting controllers, capacitive touch user interfaces, sensor conditioning, and remote controls. The wide operating range (industrial -40 °C to +85 °C) and rich peripheral set make it a strong fit for space-constrained mixed-signal designs.

When designing with the PIC12F1840, ensure decoupling capacitors of 0.1 µF are placed within 5 mm of VDD, and that unused I/O are configured as outputs to minimize sleep current. Programming is supported by the free MPLAB X IDE and Xpress, PICkit, or Curiosity programmers - a key advantage over cross-brand 8-bit alternatives that often lack a unified, free toolchain.

This page synthesizes drop-in alternatives, package-matched cross-references, and practical design notes that complement, but do not replace, the manufacturer datasheet.

Drop-in alternatives for PIC12F1840-I/SN — 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 PIC12F1840-I/SN (same form factor and footprint) — differing in ADC, I/O Pins, Core Architecture, Operating Temperature Range, Program Memory (Flash).

Microchip Technology
ADC: 10-bit, up to 4 channels
I/O Pins: 6
Core Architecture: 8-bit PIC enhanced mid-range
Microchip Technology
ADC: 10-bit, up to 4 channels (8-pin device)
I/O Pins: 6 GPIO + 1 input-only
Core Architecture: PIC 8-bit enhanced mid-range
Microchip Technology
ADC: 10-bit, 4 channels
I/O Pins: 6
Operating Temperature Range: -40 C to +125 C (Extended, 'E' grade)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC12F1840T-I/SN

✅ Drop-In ⚠️ 参数待验证
📦 8-pin SOIC (SN)
same die, tape-and-reel packaging variant, identical -40C to +85C spec

📋 Reference alternative (not in catalog)

PIC12F1840-E/SN

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 8-pin SOIC (SN)
PIC · 8-Bit · 7KB (4K x 14 words) FLASH · 256 bytes · 256 bytes · 32 MHz (internal oscillator) · 2.5 V to 5.5 V · 6

✓ In Stock

$1.18 / Unit

View Datasheet →

PIC12F1822-I/SN

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 8-pin SOIC (SN)
PIC 8-bit enhanced mid-range · 3.5 KB (2K x 14 words) · 128 bytes · 256 bytes · 32 MHz · 31 kHz to 32 MHz (selectable) · 1.8 V to 5.5 V · 6 GPIO + 1 input-only

✓ In Stock

$0.85 / Unit

View Datasheet →

PIC12F1572-I/SN

✅ Drop-In ⚠️ 参数待验证
📦 8-pin SOIC (SN)
3.5 KB Flash vs 7 KB, adds 16-bit PWM and 10-bit DAC; same Enhanced Mid-Range core, same I/O count

📋 Reference alternative (not in catalog)

PIC12F1571-I/SN

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 8-pin SOIC (SN)
8-bit PIC enhanced mid-range · 1.75 KB (1K x 14) · 128 bytes · 128 bytes · 32 MHz · 8 MIPS · 1.8 V to 5.5 V · 3 x 16-bit (independent timers)

✓ In Stock

$0.6549 / Unit

View Datasheet →

PIC12F1840-I/SN Maximum Ratings & Electrical Characteristics

Core Architecture Enhanced Mid-Range 8-bit PIC (49 instructions)
Maximum CPU Speed 32 MHz (internal oscillator)
Program Memory (Flash) 7 KB (4K x 14 words)
Data EEPROM 256 bytes
SRAM 256 bytes
Hardware Stack 16 levels
Supply Voltage (VDD) 2.5 V to 5.5 V
I/O Pins 6 (with 25 mA source/sink)
ADC 4 channels, 10-bit
Operating Temperature Range -40 °C to +85 °C (Industrial)
Package 8-pin SOIC (SN)
Mounting Type Surface Mount
Communication Interfaces MI2C, SPI, EUSART with auto-baud
Special Peripherals ECCP PWM, mTouch, DSM, Comparator with VREF
Low-Power Technology nanoWatt XLP
RoHS Status Compliant
MSL Level 1 (unlimited floor life)

PIC12F1840-I/SN Pin Configuration

SOIC-8 Package Pinout Diagram SOIC-8 8-pin small outline IC, 3.9x4.9mm, P1.27mm, JEDEC MS-012. 1 8 2 7 3 6 4 5 SOIC-8
Pin 1 VDD — Positive supply voltage (2.5 V to 5.5 V)
Pin 2 RA5 — I/O pin / T1CKI / CCP1 / AN4
Pin 3 RA4 — I/O pin / AN3 / T1G / SDO / mTouch
Pin 4 RA3 — I/O pin / MCLR / VPP (programming voltage input)
Pin 5 RA2 — I/O pin / AN2 / T0CKI / INT / mTouch
Pin 6 RA1 — I/O pin / AN1 / ICSPCLK / mTouch
Pin 7 RA0 — I/O pin / AN0 / ICSPDAT / DACREF / mTouch
Pin 8 VSS — Ground reference

Typical Applications

PIC12F1840-I/SN is suitable for 6 applications: IoT Sensor End Node, Capacitive Touch User Interface, LED Lighting Controller, Consumer Appliance Control, Remote Control Transmitter, Battery Management Companion MCU.

🧩

IoT Sensor End Node

The PIC12F1840-I/SN suits ultra-low-power IoT sensor nodes powered by a single CR2032 coin cell. Its 20 nA typical deep-sleep current from nanoWatt XLP technology, 4-channel 10-bit ADC, and integrated EUSART with auto-baud enable multi-year battery operation while still supporting periodic sensor reads over a UART-linked radio module. The 8-pin SOIC footprint keeps the BOM minimal for compact wireless sensor PCBs.

💡

Capacitive Touch User Interface

The PIC12F1840-I/SN's integrated mTouch capacitive sensing module supports up to 8 buttons or a slider using its 6 available I/O pins, enabling BOM-free touch interfaces. Combined with the Data Signal Modulator (DSM) and a hardware timer, it provides a robust front panel for appliances and consumer products, with the 32 MHz core delivering quick response times. The 7 KB Flash comfortably accommodates Microchip's mTouch library plus application code.

💡

LED Lighting Controller

For LED lighting drivers, the PIC12F1840-I/SN's ECCP module provides half-bridge, full-bridge, and PWM-steering topologies that drive MOSFETs or constant-current regulators directly. The 25 mA source/sink I/O eliminates external drivers for low-current LED strings, while the 32 MHz core supports smooth PWM dimming and color-mixing algorithms. The wide 2.5-5.5 V supply accepts single-cell Li-ion or regulated 5 V rails without additional regulation.

🏭

Consumer Appliance Control

The PIC12F1840-I/SN fits small kitchen and personal-care appliances that need a compact MCU for state-machine control, sensor readout, and user feedback. The hardware comparator with selectable voltage reference handles zero-crossing detection and over-current protection without external components, while the EUSART/SPI/I2C interfaces link to HMI displays or external EEPROM. Its -40 to +85 °C industrial range tolerates typical appliance thermal environments.

📱

Remote Control Transmitter

The PIC12F1840-I/SN is well suited to IR/RF remote control transmitters, where low average power, compact size, and reliable wakeup are key. Its nanoWatt XLP deep sleep draws around 20 nA, allowing a CR2032 to last the shelf life of the product, while the mTouch sensing module enables capacitive buttons without mechanical wear. The 32 MHz internal oscillator avoids external crystals, keeping the BOM to a few passive components.

Battery Management Companion MCU

The PIC12F1840-I/SN acts as a secondary MCU in battery packs, providing cell balancing control, fuel-gauge assistance, and fault logging through its ADC, comparator, and EUSART. Its low quiescent current minimizes pack self-discharge, while the 7 KB Flash supports sophisticated state-of-charge algorithms alongside safety monitoring. The 8-pin SOIC package fits inside small 18650 and 21700 battery protection boards.

Recommended Products Summary

PIC12F1822-I/SN Microchip Technology Used in: IoT Sensor End Node, Consumer Appliance Control, Remote Control Transmitter PIC12F1840-E/SN Microchip Technology Used in: IoT Sensor End Node, LED Lighting Controller, Battery Management Companion MCU PIC12F1571-I/SN Microchip Technology Used in: Capacitive Touch User Interface, Remote Control Transmitter PIC12F1572-I/SN Adds DAC for smooth LED-touch feedback Used in: Capacitive Touch User Interface, LED Lighting Controller, Battery Management Companion MCU PIC12F1840T-I/SN Tape-and-reel variant for high-volume SMT lines Used in: Consumer Appliance Control
What is the operating voltage of PIC12F1840-I/SN?
The PIC12F1840-I/SN operates from 2.5 V to 5.5 V across the industrial temperature range of -40 °C to +85 °C. According to the Microchip PIC12(L)F1840 datasheet, this wide supply range allows direct connection to a single Li-ion cell (3.7 V nominal) or to a regulated 5 V rail, simplifying power-tree design for both battery-powered and line-powered applications.
How much Flash and RAM does the PIC12F1840 have?
The PIC12F1840 integrates 7 KB (4K x 14 word) of self-read/write Flash program memory, 256 bytes of data EEPROM, and 256 bytes of SRAM. The flash endurance rating is 100,000 erase/write cycles per datasheet, sufficient for typical firmware-update workloads on a connected edge device.
What is the maximum clock speed of PIC12F1840?
The PIC12F1840 runs up to 32 MHz from its internal oscillator, which delivers 8 MIPS of throughput (one instruction per four oscillator cycles). No external crystal is required for full-speed operation, and a software-selectable PLL is available to derive the 32 MHz clock from the 16 MHz HFINTOSC.
Where can I download the PIC12F1840-I/SN datasheet PDF?
The official PIC12F1840-I/SN datasheet is available as PDF 41441B from Microchip at the canonical product page (microchip.com/en-us/product/PIC12F1840). The same document covers the PIC12(L)F1840 family in SOIC-8 (SN), PDIP-8 (P), and DFN-8 (MC) packages, including pinouts, electrical characteristics, and peripheral configuration.
What are drop-in replacements for PIC12F1840-I/SN in the same SOIC-8 package?
Drop-in SOIC-8 replacements include PIC12F1840-E/SN (extended temperature), PIC12F1840T-I/SN (tape-and-reel variant, same die), and PIC12F1822-I/SN (lower memory 3.5 KB Flash but same footprint). All three share the 8-pin SOIC (SN) footprint and pinout, making them direct PCB-compatible substitutes per the PIC12(L)F1840 datasheet pin map.
What is the difference between PIC12F1840 and PIC12F1822?
The PIC12F1840 has 7 KB Flash, 256 bytes RAM, and 256 bytes EEPROM, while the PIC12F1822 has 3.5 KB Flash, 128 bytes RAM, and 256 bytes EEPROM. Both share the same 8-pin SOIC (SN) package, the same Enhanced Mid-Range core, and the same peripheral set; PIC12F1822 is a cost-optimized alternative when half the program memory is acceptable.
How much sleep current does PIC12F1840 draw?
According to the Microchip datasheet, the PIC12F1840 nanoWatt XLP sleep current is approximately 20 nA typical in deep sleep with the WDT disabled, allowing multi-year battery life in IoT sensor nodes powered by a single CR2032 coin cell. Active current is around 50 µA/MIPS at 1.8 V and 4 MHz, enabling efficient always-on designs.
Is PIC12F1840 suitable for capacitive touch sensing?
Yes, the PIC12F1840 includes an integrated Capacitive mTouch sensing module that supports up to 8 buttons or a slider using the 6 available I/O pins. Combined with the Data Signal Modulator and a hardware timer, it provides a robust, BOM-free capacitive touch solution for user interfaces on appliances and consumer products.
Where to buy PIC12F1840-I/SN online and what is the lead time?
As of 2026-09-15, PIC12F1840-I/SN is in stock at 13 distributors tracked by Octopart, including DigiKey and Mouser, with the qty-1 unit price at $1.85. Lead time for production quantities is typically 6-10 weeks when ordering direct from Microchip, while distributor stock generally ships within 1-3 business days.
What is the price of PIC12F1840-I/SN in 100-piece quantities?
As of 2026-09-15, the 100-piece price for PIC12F1840-I/SN is approximately $1.42 per unit. Bulk pricing drops further to roughly $0.99 at 1,000 pieces and $0.82 at 3,000 pieces, according to Octopart distributor aggregates. Pricing reflects the SOIC-8 industrial-grade variant, not the automotive or extended-temperature grades.
Hey Google, what can replace PIC12F1840-I/SN if it's out of stock?
If PIC12F1840-I/SN is unavailable, the closest drop-in replacements are PIC12F1840-E/SN (extended temperature, same SOIC-8 footprint) or PIC12F1822-I/SN (half the Flash but pin-to-pin compatible). For cross-brand alternatives in the SOIC-8 form factor, only Microchip PIC12F-series devices share the exact pinout; other vendors require PCB rework.
PIC12F1840 vs PIC12F1572 - which is better for an LED lighting application?
For LED lighting, the PIC12F1840 is the better choice when you need PWM-steerable outputs (ECCP module) plus mTouch capacitive control in a compact 8-pin footprint. The PIC12F1572 adds a 16-bit PWM and a 10-bit DAC, but in a different package; choose PIC12F1840 when SOIC-8 and a single CCP PWM are sufficient per the datasheet's peripheral summary.
What is the best Atmel/Microchip equivalent for PIC12F1840 in SOIC-8?
Within Microchip's own portfolio, the best SOIC-8 drop-in equivalents are PIC12F1840T-I/SN (tape-and-reel, same die), PIC12F1840-E/SN (extended temperature), and PIC12F1822-I/SN (lower-memory cost option). Cross-brand 8-pin SOIC-8 MCUs (e.g. ATtiny series) do not match the PIC12F1840 pinout and require PCB rework, so Microchip-to-Microchip substitution is recommended.
What are the key specifications of PIC12F1840 that engineers should know?
According to the Microchip datasheet, the PIC12F1840 key specifications are: 8-bit Enhanced Mid-Range core at 32 MHz (8 MIPS), 7 KB Flash, 256 bytes RAM, 256 bytes EEPROM, 6 I/O pins with 25 mA source/sink, 4 channels of 10-bit ADC, 2.5-5.5 V VDD, -40 °C to +85 °C operation, and 20 nA deep-sleep current thanks to nanoWatt XLP technology.
When should I choose PIC12F1840 over PIC16F1xxx alternatives?
Choose the PIC12F1840 when your design is constrained to 6 or fewer I/O pins in an SOIC-8 footprint and you need mTouch capacitive sensing, an EUSART with auto-baud, and at least 7 KB of Flash. For designs requiring more I/O or more memory, step up to PIC16F1xxx devices; for ultra-low pin count in SOT-23, consider PIC10F-series alternatives.

Engineering reference data for PIC12F1840-I/SN — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC12F1840-I/SN when your design needs 7 KB of Flash in an 8-pin SOIC-8 footprint, requires the mTouch capacitive sensing module plus the Data Signal Modulator for sensor signal conditioning, and must operate from a single Li-ion or coin-cell battery at sub-100 nA sleep current. Pick PIC12F1840T-I/SN for high-volume SMT production lines that need tape-and-reel packaging instead of tubes. Choose PIC12F1840-E/SN for outdoor or industrial nodes rated to +125 °C. Use PIC12F1822-I/SN as a cost-optimized alternative when 3.5 KB Flash is sufficient, or PIC12F1572-I/SN when 16-bit PWM and a 10-bit DAC are needed for fine-grained LED lighting. All five parts share the same 8-pin SOIC footprint, so layout can be reused while peripheral trade-offs drive final selection.

Comparison with Alternatives

Parameter This Product PIC12F1840T-I/SN PIC12F1840-E/SN PIC12F1822-I/SN PIC12F1572-I/SN PIC12F1571-I/SN
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-pin SOIC (SN) 8-pin SOIC (SN) - same 8-pin SOIC (SN) - same 8-pin SOIC (SN) - same 8-pin SOIC (SN) - same 8-pin SOIC (SN) - same
Flash Memory 7 KB (4K x 14) 7 KB - same 7 KB - same 3.5 KB (-50%) 3.5 KB (-50%) 3.5 KB (-50%)
SRAM 256 bytes 256 bytes - same 256 bytes - same 128 bytes (-50%) 256 bytes - same 256 bytes - same
Maximum Clock 32 MHz 32 MHz - same 32 MHz - same 32 MHz - same 32 MHz - same 32 MHz - same
Operating Temperature -40 C to +85 C -40 C to +85 C - same -40 C to +125 C (extended) -40 C to +85 C - same -40 C to +85 C - same -40 C to +85 C - same
ADC Channels / Resolution 4 x 10-bit 4 x 10-bit - same 4 x 10-bit - same 4 x 10-bit - same 4 x 10-bit - same 4 x 10-bit - same
Special Peripherals ECCP, mTouch, DSM, Comparator+VREF Same - identical die Same - identical die ECCP, mTouch, DSM, Comparator 16-bit PWM, 10-bit DAC, no DSM 16-bit PWM, no DSM, no DAC

Key Differentiators

  • Highest Flash density in the PIC12F SOIC-8 family (vs PIC12F1822-I/SN)
  • Full mTouch + DSM peripheral set in a single SOIC-8 device (vs PIC12F1571-I/SN)
  • Lower deep-sleep current than legacy PIC12F675 designs (vs PIC12F675)

Design Notes

Place a 0.1 µF decoupling capacitor within 5 mm of the VDD pin (pin 1), and add a 10 µF bulk capacitor at the supply entry. For battery-powered designs, configure the device to enter deep sleep between transactions; the typical deep-sleep current is 20 nA with WDT disabled, allowing multi-year operation from a CR2032 coin cell. Use the LFINTOSC during sleep and switch to HFINTOSC+PLL only for active transactions.

Keep traces to RA3/MCLR short and avoid routing noisy signals near the programming pin. The 8-pin SOIC (SN) package has a thermal resistance of approximately 100 °C/W; for designs that dissipate more than 50 mA, route a copper pour under the exposed leads of the SOIC pads. Use a continuous ground plane on the bottom layer to reduce EMI from the internal 32 MHz oscillator.

Do not leave unused I/O pins floating; configure them as outputs driving low to avoid shoot-through current. Ensure RA3/MCLR is pulled high through a 10 kΩ resistor if not used in ICSP programming mode. When migrating from PIC12F675, note that the RA3 pin function has changed and that ICD debugging now uses dedicated ICSP pins (RA0/RA1) instead of the legacy two-pin layout.

For mTouch capacitive sensing, route the sensor electrode traces with a ground guard ring and avoid crossing them with high-speed digital signals. The Data Signal Modulator (DSM) can mix inputs from comparators, ADCs, and PWM modules for advanced signal conditioning; enable its slew-rate limiting when driving long PCB traces to reduce ringing. Allow a 2 µs settling time after clock switch before reading ADC samples.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant and lead-free per Microchip product page. The -I/SN industrial grade variant is not AEC-Q100 qualified; for automotive applications consider the PIC16F1xxx AEC-Q100 family instead.

Data verified on: 2026-09-15 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC12F1840-I/SN PIC12F1840 datasheet Microchip PIC12F1840 SOIC-8 PIC12F1840 vs PIC12F1822 8-pin SOIC 8-bit MCU 7KB Flash PIC12F1840 mTouch capacitive sensing PIC12F1840 buy online PIC12F1840-I/SN price 100 pcs PIC12F1840 drop-in replacement SOIC-8 PIC12F1840 pinout SOIC-8 what is the deep sleep current of PIC12F1840 PIC12F1840 LED lighting driver

Related Components & Terms

Microchip Technology PIC12F1840 PIC12F1840-I/SN PIC12F1840T-I/SN PIC12F1840-E/SN PIC12F1822 PIC12F1572 PIC12F1571 8-bit microcontroller Enhanced Mid-Range core nanoWatt XLP mTouch capacitive sensing Data Signal Modulator (DSM) ECCP PWM 8-pin SOIC SOIC-8 Flash memory 10-bit ADC EUSART RoHS AEC-Q100 ICSP programming PICkit MPLAB X IDE Curiosity development board
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details