Opens in a new tab

PIC16F1939-I

8-bit PIC MCU, 28KB Flash, 1KB RAM, 32MHz, LCD controller, mTouch, XLP

9847

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F1939-I

Package:

40-pin PDIP / 44-pin QFN (8×8 mm)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The PIC16F1939-I is a 40-pin, 8-bit Flash-based CMOS microcontroller from Microchip Technology, featuring the enhanced Mid-Range core with 49 instructions and 16-level deep hardware stack. With 28KB of Flash program memory, 1024 bytes of RAM, and 256 bytes of data EEPROM, this MCU operates at up to 32 MHz (8 MIPS) across a wide voltage range of 1.8V to 5.5V. It integrates an LCD controller supporting up to 96 segments, a capacitive mTouch sensing module with 16 channels, and a rich set of analog and digital peripherals including a 14-channel 10-bit ADC, two comparators, three ECCP modules, two CCP modules, EUSART, and MSSP (SPI/I2C). Part of Microchip’s eXtreme Low-Power (XLP) family with nanoWatt technology, it is ideal for LCD-based applications, home automation, industrial control, and consumer electronics requiring touch sensing and display capabilities.

Key Specifications

Core Architecture 8-bit PIC (Enhanced Mid-Range)
Program Memory 28KB Flash (16K x 14 words)
RAM 1024 bytes
Data EEPROM 256 bytes
Maximum Speed 32 MHz (8 MIPS)
Operating Voltage 1.8V to 5.5V
I/O Pins 36
ADC 10-bit, 14 channels
Comparators 2
Timers 4 x 8-bit (TMR0/2/4/6) + 1 x 16-bit (TMR1)
PWM 3 x ECCP + 2 x CCP
Communication EUSART, SPI, I2C (MSSP)
LCD Controller Up to 96 segments
Capacitive Sensing mTouch, 16 channels
Operating Temperature -40°C to +85°C (Industrial)
Package 40-pin PDIP / 44-pin QFN / 44-pin TQFP

Features

  • Enhanced Mid-Range core with 49 single-cycle instructions and 16-level deep hardware stack
  • Integrated LCD driver supporting up to 96 segments with contrast control
  • Capacitive mTouch sensing module with up to 16 selectable channels
  • Precision internal oscillator (32 MHz) factory calibrated to ±1%
  • 14-channel 10-bit ADC with selectable voltage reference (1.024V/2.048V/4.096V)
  • Three Enhanced CCP (ECCP) modules with PWM steering and dead-band control
  • Two standard CCP modules for capture/compare/PWM
  • EUSART with auto-baud detect, supporting RS-232/RS-485/LIN
  • MSSP module with SPI and I2C (SMBus/PMBus compatible)
  • eXtreme Low-Power (XLP) technology: 60 nA standby current
  • Integrated temperature indicator module
  • In-Circuit Serial Programming (ICSP) and integrated debug support

Applications

  • LCD display panels and metering systems
  • Home automation and smart appliances
  • Capacitive touch interfaces and keypads
  • Industrial control and sensor monitoring
  • Consumer electronics with display requirements
  • Battery-powered portable devices
  • Automotive dashboard and control modules
Product Introduction: PIC16F1939-I Product Introduction

The PIC16F1939 is a 40/44-pin Flash-based 8-bit CMOS microcontroller from Microchip Technology, featuring the enhanced Mid-Range core architecture. It offers 28KB of self-read/write Flash program memory, 1024 bytes of data SRAM, and 256 bytes of data EEPROM. Operating at up to 32 MHz with an 8 MIPS throughput, this device includes an integrated LCD controller capable of driving up to 96 segments, making it ideal for display applications. The built-in mTouch capacitive sensing module with 16 channels enables touch-based user interfaces without external components. With its eXtreme Low-Power (XLP) technology featuring nanoWatt power management, the PIC16F1939 is well-suited for battery-powered applications. The rich peripheral set includes a 14-channel 10-bit ADC, two analog comparators, three enhanced CCP modules, two standard CCP modules, EUSART with LIN support, and MSSP (SPI/I2C). Industrial temperature range (-40°C to +85°C) and wide operating voltage (1.8V-5.5V) ensure reliability across diverse application environments.

Working Principle: PIC16F1939-I Working Principle

The PIC16F1939 operates on an enhanced Mid-Range RISC core with 49 instructions, most executing in a single clock cycle. Program execution is managed by a 13-bit program counter with a 16-level deep hardware stack for subroutine calls. The core accesses Flash program memory (14-bit wide instructions) and SRAM data memory (8-bit wide) via separate buses, enabling Harvard architecture parallel access. The LCD controller module generates segment and common driver signals for up to 96 LCD segments, with programmable contrast via internal voltage reference. The mTouch capacitive sensing module measures capacitance changes on dedicated pins to detect touch events. The 10-bit ADC converts analog signals from up to 14 channels using a successive approximation register (SAR) architecture. Timer modules provide timing, counting, and PWM generation, with ECCP modules offering enhanced PWM features like steering, dead-band control, and auto-shutdown. Communication peripherals (EUSART, MSSP) handle serial data transfer with hardware-assisted protocol handling. Power management features include multiple sleep modes, brown-out reset, and watchdog timer for reliable operation.

Pin Description: PIC16F1939-I Pin Definition and Functions
Pin (PDIP-40) Name Type Function
1 MCLR/VPP/RE3 I/P Master Clear / Programming Voltage / Digital Input
2 RA0/AN0/C12IN0-/SEG12 I/O Port A I/O / ADC Input / Comparator Input / LCD Segment
3 RA1/AN1/C12IN1-/SEG13 I/O Port A I/O / ADC Input / Comparator Input / LCD Segment
4 RA2/AN2/C12IN2-/SEG14 I/O Port A I/O / ADC Input / Comparator Input / LCD Segment
5 RA3/AN3/C12IN3-/SEG15 I/O Port A I/O / ADC Input / Comparator Input / LCD Segment
6 RA4/T0CKI/C1OUT/SEG16 I/O Port A I/O / Timer0 Clock / Comparator1 Output / LCD Segment
7 RA5/AN4/C2OUT/SRQ/SEG17 I/O Port A I/O / ADC Input / Comparator2 Output / SR Latch Output
8 RE0/AN5/CK1SPL/SEG18 I/O Port E I/O / ADC Input / LCD Segment
9 RE1/AN6/SEG19 I/O Port E I/O / ADC Input / LCD Segment
10 RE2/AN7/SEG20 I/O Port E I/O / ADC Input / LCD Segment
11 VDD P Positive Supply Voltage
12 VSS P Ground Reference
13 RA7/OSC1/CLKIN/SEG7 I/O Port A I/O / Oscillator Input / Clock Input / LCD Segment
14 RA6/OSC2/CLKOUT/SEG6 I/O Port A I/O / Oscillator Output / Clock Output / LCD Segment
15 RC0/T1OSO/T13CKI/SEG0 I/O Port C I/O / Timer1 Oscillator / Timer1 Clock / LCD Segment
16 RC1/T1OSI/CCP2/SEG1 I/O Port C I/O / Timer1 Oscillator / CCP2 / LCD Segment
17 RC2/CCP1/SEG2 I/O Port C I/O / CCP1 / LCD Segment
18 RC3/SCK/SCL/SEG3 I/O Port C I/O / SPI Clock / I2C Clock / LCD Segment
19 RC4/SDI/SDA/SEG4 I/O Port C I/O / SPI Data In / I2C Data / LCD Segment
20 RC5/SDO/SEG5 I/O Port C I/O / SPI Data Out / LCD Segment
21 RC6/TX/CK/SEG9 I/O Port C I/O / EUSART TX / LCD Segment
22 RC7/RX/DT/SEG8 I/O Port C I/O / EUSART RX / LCD Segment
23 RC4/SDI/SDA/SEG4 I/O Port C I/O / Alternate Function
24 RB0/INT/SEG24 I/O Port B I/O / External Interrupt / LCD Segment
25 RB1/SEG25 I/O Port B I/O / LCD Segment
26 RB2/SEG26 I/O Port B I/O / LCD Segment
27 RB3/SEG27 I/O Port B I/O / LCD Segment
28 RB4/SEG28 I/O Port B I/O / LCD Segment
29 RB5/SEG29 I/O Port B I/O / LCD Segment
30 RB6/ICSPCLK/SEG30 I/O Port B I/O / ICSP Clock / LCD Segment
31 RB7/ICSPDAT/SEG31 I/O Port B I/O / ICSP Data / LCD Segment
32 VSS P Ground Reference
33 VDD P Positive Supply Voltage
34 RB0/INT/SEG24 I/O Alternate Port B I/O
35 RC0/T1OSO/T13CKI/SEG0 I/O Alternate Port C I/O
36 RC1/T1OSI/CCP2/SEG1 I/O Alternate Port C I/O
37 RC2/CCP1/SEG2 I/O Alternate Port C I/O
38 RC3/SCK/SCL/SEG3 I/O Alternate Port C I/O
39 RC4/SDI/SDA/SEG4 I/O Alternate Port C I/O
40 RC5/SDO/SEG5 I/O Alternate Port C I/O
Application Scenarios: In which products and applications is PIC16F1939-I used
  • LCD-based metering and display systems (utility meters, thermostats)
  • Home automation and smart home control panels
  • Capacitive touch keypads and human-machine interfaces
  • Industrial sensor monitors and data loggers
  • Consumer electronics with display and touch requirements
  • Battery-powered portable medical devices
  • Automotive dashboard controllers and interior lighting
Alternative Models: What chips are recommended as replacements for PIC16F1939-I
Manufacturer Part Number Package Notes
Microchip PIC16F1938-I 28-pin 28-pin variant, 11-channel ADC
Microchip PIC16LF1939-I 40/44-pin Low-voltage variant (1.8V-3.6V)
Microchip PIC16F1937-I 28-pin 8KB Flash, 28-pin, LCD
Microchip PIC16F1947-I 64/80-pin 28KB Flash, larger LCD (196 seg)
Microchip PIC16F1789-I 40/44-pin 28KB Flash, advanced analog

Recommend Parts

ISO1176TDWR

Isolated RS-485 transceiver, 40Mbps, integrated transformer driver, SOIC-16

Brand: TI

Package: SOIC-16 (DW, wide-body, 10.3 x 10.3 mm)

IN STOCK: 6874pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFB4020PBF

200V N-Channel HEXFET Power MOSFET, 31A, 68 mΩ RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 14149pcs

Cargo cycle: 3-7 Days

The minimum order is 1

NRF52832-QFAA-T

Nordic BLE SoC, ARM Cortex-M4 @ 64MHz, 64KB Flash, 32KB RAM, QFN-48

Package: See datasheet

IN STOCK: 10958pcs

Cargo cycle: 3-7 Days

The minimum order is 1

UCC28740DR

CVCC Flyback Controller, 700V startup, opto feedback, <10mW no-load, SOIC-7

Brand: TI

Package: SOIC-7 (4.9 x 3.9 x 1.75 mm)

IN STOCK: 4840pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MMUN2211LT1G

NPN digital transistor, R1=10kΩ R2=10kΩ, 50V, 100mA, SOT-23-3, pre-biased BRT switch

Brand: Onsemi

Package: SOT-23-3 (TO-236, SC-59)

IN STOCK: 8500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

PIC32MX795F512L-80I/PF

32-bit PIC32MX MCU with Ethernet/CAN/USB, 80MHz, 512KB Flash, TQFP-100, industrial

Brand: MICROCHIP

Package: TQFP-100 (14 x 14 mm)

IN STOCK: 7912pcs

Cargo cycle: 3-7 Days

The minimum order is 1