EmbeddedRelated.com
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.

Part of PIC Microcontrollers family » PIC12F

PIC12F Family

Comparing specs that differ across variants. The current part is highlighted.

Part Number Flash RAM I/O Pins Package Speed ADC/DAC Stock
PIC12F1840-I/SN (this part) 7KB 256 x 8 5 SOIC-8 32M A/D 4x10b; D/A 1x5b 3,985
PIC12F1572T-I/SN 3.5K 256 x 8 6 SOIC-8 32M A/D 4x10b; D/A 1x5b 44,071
PIC12F1571T-I/SN 1.75K 128 x 8 6 SOIC-8 32M A/D 4x10b; D/A 1x5b 54,720
PIC12F675-I/SN 1.75K 64 x 8 5 SOIC-8 20M A/D 4x10b 20,218
PIC12F1572-I/P 3.5K 256 x 8 6 DIP-8 32M A/D 4x10b; D/A 1x5b 4,388
PIC12F629-I/P 1.75K 64 x 8 5 DIP-8 20M 35,779
PIC12F508-I/SN 768B (512 x 12) 25 x 8 5 SOIC-8 4M 6,975
PIC12F683-I/SN 3.5K 128 x 8 5 SOIC-8 20M A/D 4x10b 5,432
PIC12F629-I/SN 1.75K 64 x 8 5 SOIC-8 20M 3,799
PIC12F675T-I/SN 1.75K 64 x 8 5 SOIC-8 20M A/D 4x10b 11,928
PIC12F615-I/SN 1.75K 64 x 8 5 SOIC-8 20M A/D 4x10b 12,737
PIC12F1571-I/SN 1.75K 128 x 8 6 SOIC-8 32M A/D 4x10b; D/A 1x5b 13,052
PIC12F683-I/P 3.5K 128 x 8 5 DIP-8 20M A/D 4x10b 4,864
PIC12F675-I/P 1.75K 64 x 8 5 DIP-8 20M A/D 4x10b 3,055
PIC12F1572-I/SN 3.5K 256 x 8 6 SOIC-8 32M A/D 4x10b; D/A 1x5b 1,787
Also available as: PIC12F1571-I/P, PIC12F1822-I/P, PIC12F1840-I/P

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.