EmbeddedRelated.com
The 2026 Embedded Online Conference
PIC12F1840-I/SN

MCHPPIC12F1840-I/SN

Microchip Technology
8-pin PIC with a richer peripheral set and more memory in the same small package family for slightly larger application code or extra features.
Active3,985 in stock

Overview

The PIC12F1840-I/SN is an enhanced 8-bit microcontroller in a compact 8-pin SOIC package, operating at speeds up to 32MHz. It features 8KB of flash memory and 256 bytes of RAM, providing a significant memory overhead for complex logic in space-constrained designs. The device integrates a diverse peripheral set including hardware I2C, SPI, and UART, alongside specialized features like a Data Signal Modulator and SR Latch.

Why Choose This Part

This MCU offers an impressive ratio of features to pin count, including 256 bytes of EEPROM for non-volatile data storage. The automatic interrupt context saving and 16-level stack improve performance and code efficiency compared to standard mid-range PIC architectures. Its wide operating voltage range from 2.3V to 5.5V ensures compatibility with both 3.3V and 5V logic systems.

Applications

Sensor Interface Nodes
Small-footprint data acquisition using the 4-channel ADC and serial communication to report findings to a master controller.
Simple Protocol Conversion
Bridging between UART, I2C, and SPI in systems where PCB real estate is at a premium.
Power Management Control
Managing power-up sequences and monitoring supply rails using the integrated Brown-out Reset and Power-on Reset features.
LED Driving and Control
Utilizing the built-in PWM and Data Signal Modulator for specialized lighting patterns or infrared remote control modulation.

Key Specifications

Speed 32MHz
RAM Size 256 x 8
Core Size 8-Bit
EEPROM Size 256 x 8
Peripherals Brown-out Detect/Reset, POR, PWM, WDT
Connectivity I2C, LINbus, SPI, UART/USART
Mounting Type Surface Mount
Number of I/O 5
Core Processor PIC
Package / Case 8-SOIC (0.154", 3.90mm Width)
Data Converters A/D 4x10b; D/A 1x5b
Oscillator Type Internal
Program Memory Size 7KB (4K x 14)
Program Memory Type FLASH
Operating Temperature -40degC ~ 85degC (TA)
Supplier Device Package 8-SOIC
Voltage - Supply (Vcc/Vdd) 2.3V ~ 5.5V

Getting Started

Development is primarily supported by the MPLAB X IDE and the XC8 compiler. Engineers can use the MPLAB Code Configurator (MCC) to graphically initialize peripherals and the PICkit 4 or MPLAB Snap for in-circuit programming and debugging via the ICSP interface. For prototyping, the Curiosity Development Board (DM164137) is a common choice for evaluating 8-pin PIC12F parts.

Also Consider

ATtiny85 MCHPMicrochip Technology - A popular 8-pin alternative with similar memory capacity and a wide hobbyist ecosystem.
PIC12F1572 MCHPMicrochip Technology - Offers high-resolution 16-bit PWMs if the application requires more precise timing than standard PWM.
The 2026 Embedded Online Conference