PIC16F1938-E/ML - 28KB Flash 8-bit MCU with LCD | Microchip
MPN: PIC16F1938-E/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.65 | $2.65 |
| 10 | $2.45 | $24.50 |
| 100 | $2.1 | $210.00 |
| 500 | $1.85 | $925.00 |
| 1,000 | $1.65 | $1,650.00 |
| 2,500 | $1.45 | $3,625.00 |
PIC16F1938-E/ML Overview
What is an 8-bit Flash microcontroller? It is a small, self-contained computing device that combines a CPU, non-volatile program memory (Flash), volatile data memory (RAM), and configurable I/O peripherals on a single silicon die. Microcontrollers belong to the broader category of embedded processors -> microcontrollers -> 8-bit microcontrollers -> Flash-based MCUs -> semiconductor ICs, and serve as the 'brains' of embedded systems, replacing discrete logic with programmable firmware for compact, low-cost designs.
Key differentiating features of the PIC16F1938 include the integrated LCD driver (up to 4 common, 32 segment capability in the 28-pin variant), the nanoWatt XLP sleep mode consuming under 100 nA typical, an enhanced mid-range 14-bit instruction set with 49 instructions, an internal 16 MHz precision oscillator (HFINTOSC) calibratable to +/-1%, and peripherals such as a 10-bit ADC with computation, multiple Enhanced USART, MSSP (SPI/I2C), comparators, and capture/compare/PWM modules. The device supports ICSP (In-Circuit Serial Programming) and the standard PICkit/SNAP/MPLAB debugger interface.
Architecturally, the PIC16F1938 uses Microchip's enhanced mid-range core with a 14-bit wide instruction word, separate 16-level hardware stack, and a two-stage pipeline. Its low-power design uses switchable clock sources and peripheral module disable bits, allowing unused peripherals to be turned off entirely for ultra-low sleep current. The 28-pin QFN package exposes an EP pad (pin 29, internally bonded) for enhanced thermal dissipation.
Typical applications include low-power battery-powered sensor nodes with LCD display readout, consumer remote controls, digital thermostats, handheld medical monitors, simple industrial controllers, white-goods user interfaces, and USB/CDC-capable human-interface devices. The integrated LCD driver is the standout application enabler, eliminating an external LCD bias circuit and reducing BOM cost.
When designing with this device, ensure the ICSP programming pins (PGC/PGD) are accessible and that adequate decoupling (100 nF + bulk 10 uF) is placed near VDD. The LCD charge pump and segment drive strength must be matched to the panel glass capacitance to avoid ghosting.
This page synthesizes Microchip datasheet specifications, distributor pricing tiers, drop-in same-family alternatives, and practical low-power design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC16F1938-E/ML — 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 PIC16F1938-E/ML (same form factor and footprint) — differing in Communication, Package, LCD Driver, Timers, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1938-I/ML
✅ Drop-In✓ In Stock
$1.92 / Unit
View Datasheet →PIC16F1938-E/SP
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$2.05 / Unit
View Datasheet →PIC16F1937-I/ML
✅ Drop-In✓ In Stock
$2.18 / Unit
View Datasheet →PIC16F1936-I/ML
✅ Drop-In✓ In Stock
$2.15 / Unit
View Datasheet →PIC16F1934-I/ML
✅ Drop-In✓ In Stock
$1.74 / Unit
View Datasheet →PIC16F18855-I/ML
✅ Drop-In✓ In Stock
$1.38 / Unit
View Datasheet →PIC16F18455-I/ML
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16F1938-E/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | Enhanced Mid-Range 8-bit PIC |
| Program Memory (Flash) | 28 KB |
| Data Memory (RAM) | 1 KB |
| EEPROM | 256 Bytes |
| Instruction Set Width | 14-bit |
| Number of Instructions | 49 |
| Maximum CPU Speed | 32 MHz (8 MIPS) |
| Operating Voltage Range | 1.8 V to 5.5 V |
| I/O Pins | 25 |
| LCD Driver | Yes (up to 4 common, 32 segment) |
| ADC | 10-bit, up to 11 channels |
| Comparators | 2 (with selectable references) |
| Timers | 5 (3x 8-bit, 2x 16-bit) |
| Communication | EUSART, MSSP (SPI/I2C) |
| PWM Modules | Enhanced CCP, 10-bit PWM |
| Package | 28-QFN (ML), 6x6 mm, exposed pad |
| Operating Temperature | -40C to +125C (Extended, 'E' suffix) |
| nanoWatt XLP Sleep Current | Typically < 100 nA |
| RoHS Status | Compliant (lead-free, plastic SOIC/QFN) |
| Programming | ICSP via PGC/PGD, supports PICkit/SNAP/MPLAB |
PIC16F1938-E/ML Pin Configuration
| Pin 1 | RA3/AN3/Vref+/SEG15 — PORTA bit 3 / ADC input / positive voltage reference / LCD segment 15 |
| Pin 2 | RA2/AN2/SEG16 — PORTA bit 2 / ADC input / LCD segment 16 |
| Pin 3 | RA1/AN1/SEG17 — PORTA bit 1 / ADC input / LCD segment 17 |
| Pin 4 | RA0/AN0/SEG18 — PORTA bit 0 / ADC input / LCD segment 18 |
| Pin 5 | RA7/OSC1/CLKIN — PORTA bit 7 / crystal oscillator input / external clock input |
| Pin 6 | RA6/OSC2/CLKOUT — PORTA bit 6 / crystal oscillator output / clock output |
| Pin 7 | RC0 — PORTC bit 0 |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RC1 — PORTC bit 1 |
| Pin 10 | RC2/SEG19 — PORTC bit 2 / LCD segment 19 |
| Pin 11 | RC3/SEG20 — PORTC bit 3 / LCD segment 20 |
| Pin 12 | RC4/SEG21 — PORTC bit 4 / LCD segment 21 |
| Pin 13 | RC5/SEG22 — PORTC bit 5 / LCD segment 22 |
| Pin 14 | RC6/SEG23 — PORTC bit 6 / LCD segment 23 |
| Pin 15 | RC7/SEG24 — PORTC bit 7 / LCD segment 24 |
| Pin 16 | RB7/SEG25 — PORTB bit 7 / LCD segment 25 |
| Pin 17 | RB6/SEG26 — PORTB bit 6 / LCD segment 26 |
| Pin 18 | RB5/SEG27 — PORTB bit 5 / LCD segment 27 |
| Pin 19 | RB4/SEG28 — PORTB bit 4 / LCD segment 28 |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB3/SEG29 — PORTB bit 3 / LCD segment 29 |
| Pin 22 | RB2/SEG30 — PORTB bit 2 / LCD segment 30 |
| Pin 23 | RB1/SEG31 — PORTB bit 1 / LCD segment 31 |
| Pin 24 | RB0/INT/SEG32 — PORTB bit 0 / external interrupt / LCD segment 32 |
| Pin 25 | RA5/ICSPCLK — PORTA bit 5 / ICSP clock |
| Pin 26 | RA4/ICSPDAT — PORTA bit 4 / ICSP data |
| Pin 27 | RC3 — PORTC bit 3 (alternate function) |
| Pin 28 | RC4 — PORTC bit 4 (alternate function) |
Typical Applications
PIC16F1938-E/ML is suitable for 6 applications: Battery-Powered Sensor Node with LCD, Digital Thermostat / HVAC User Interface, Industrial Handheld Meter / Multimeter, Consumer Remote Control with LCD, White-Goods / Appliance User Interface, Portable Medical / Health Monitor.
Battery-Powered Sensor Node with LCD
The PIC16F1938-E/ML is purpose-built for battery-powered sensor nodes that need an integrated LCD readout, eliminating the cost of an external LCD driver IC. Its nanoWatt XLP sleep current of typically <100 nA, combined with 32 MHz/8 MIPS performance for fast sensor read-and-display bursts, lets a CR2032-powered sensor deliver years of service life. The 10-bit ADC with hardware capacitive voltage divider supports direct thermistor/photodiode readout, while the integrated LCD segment driver drives up to 32 segments in the 28-pin variant - enough for a 4-digit numeric plus icons user interface. The extended -40C to +125C temperature range allows outdoor or industrial deployments. The 6x6 mm QFN-28 footprint leaves ample PCB real estate for a small coin-cell holder.
Recommended
Digital Thermostat / HVAC User Interface
The PIC16F1938-E/ML excels at the thermostat and HVAC user interface role because it integrates the LCD driver, capacitive touch via the CPS module (with comparator), ADC for NTC10K temperature sensing, and PWM outputs for triac-fired relays - all on a single chip. The 28KB Flash accommodates UI state machines, scheduling logic, and EEPROM-backed setpoint storage. The 1.8-5.5V operating range simplifies direct battery backup or USB-powered wall designs. The 25 I/O pins cover segment LCD, button matrix, triac drive, and serial connection to a host HVAC controller.
Recommended
Industrial Handheld Meter / Multimeter
For handheld industrial meters such as digital multimeters, clamp meters, and insulation testers, the PIC16F1938-E/ML provides the right mix of low-power operation (essential for AA-battery-powered products), integrated LCD for the segment display, 10-bit ADC for measurement ranges, and the extended -40C to +125C temperature range for harsh industrial environments. The 32 MHz internal oscillator eliminates an external crystal, saving cost and PCB area. Comparators can be used for range detection and diode-test mode, while the EUSART enables isolated serial logging to a PC.
Recommended
Consumer Remote Control with LCD
The PIC16F1938-E/ML's nanoWatt XLP technology (under 100 nA sleep) makes it ideal for IR/RF remote controls that spend 99.9% of their life in deep sleep. The integrated LCD can display channel number, battery status, and menu icons on a small segmented display. The EUSART and MSSP peripherals support IR encoding, RF sub-GHz modules, and Bluetooth Low Energy coprocessor connection via SPI. The 28-pin QFN-28 (ML) package fits into the slim form factor demanded by modern universal remote designs.
Recommended
White-Goods / Appliance User Interface
Washing machines, dishwashers, ovens, and refrigerators typically need a single MCU to drive a segmented LCD, scan a button matrix, control motor drivers via PWM, and communicate with a main controller board. The PIC16F1938-E/ML handles all of these in one package, with the integrated LCD driver reducing BOM and the 25 I/O pins allowing generous button and rotary encoder plus encoding capability. The extended temperature range supports the oven door and unvented dryer environments. The MSSP supports I2C connection to a main appliance controller.
Recommended
Portable Medical / Health Monitor
For battery-powered portable medical devices such as glucometers, pulse oximeters, and thermometers, the PIC16F1938-E/ML delivers the low sleep current needed for multi-year shelf life, the integrated LCD for at-home result display, and 10-bit ADC precision for sensor readouts. The extended -40C to +125C temperature rating covers both clinical and pharmacy storage environments. The 28KB Flash supports complex calibration curves and EEPROM stores user preferences. The MSSP can interface to BLE modules for smartphone connectivity.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1938-E/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1938-I/ML | PIC16F1937-I/ML | PIC16F1936-I/ML | PIC16F1934-I/ML | PIC16F18855-I/ML |
|---|---|---|---|---|---|---|
| Package | QFN-28 (ML), 6x6 mm | QFN-28 (ML), 6x6 mm - same | QFN-28 (ML), 6x6 mm - same | QFN-28 (ML), 6x6 mm - same | QFN-28 (ML), 6x6 mm - same | QFN-28 (ML), 6x6 mm - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 28 KB | 28 KB | 14 KB (-50%) | 14 KB (-50%) | 7 KB (-75%) | 14 KB (-50%) |
| RAM | 1 KB | 1 KB | 1 KB | 1 KB | 512 B (-50%) | 1 KB |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B | 256 B |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| Max CPU Speed | 32 MHz / 8 MIPS | 32 MHz / 8 MIPS | 32 MHz / 8 MIPS | 32 MHz / 8 MIPS | 32 MHz / 8 MIPS | 32 MHz / 8 MIPS |
| LCD Driver | Yes (up to 32 segments) | Yes (32 segments) | Yes (32 segments) | Yes (32 segments) | Yes (limited segments) | Yes (no LCD on 18855 in 28-pin) |
| I/O Pins | 25 | 25 | 25 | 25 | 25 | 25 |
| Temperature Grade | -40C to +125C (Extended, 'E') | -40C to +85C (Industrial, 'I') | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
Key Differentiators
- Higher Flash density (28 KB) vs PIC16F1937/1936 (vs PIC16F1937-I/ML)
- Extended -40C to +125C temperature range vs industrial -40C to +85C (vs PIC16F1938-I/ML)
- Smaller PCB footprint than SOIC-28 alternative (vs PIC16F1938-E/SP)
- Integrated LCD driver eliminates external charge pump (vs PIC16F18855-I/ML)
Design Notes
Estimated: at VDD = 3.3V, 32 MHz active, 1 mA active current is typical; sleep current is <100 nA typical with nanoWatt XLP. For CR2032 (220 mAh) designs assuming 0.1% active duty cycle, average current is ~1 uA and battery life exceeds 10 years. Always place a 100 nF ceramic decoupling capacitor within 5 mm of VDD (pin 20) and a 10 uF bulk capacitor on the same rail.
The QFN-28 (ML) package has an exposed thermal pad (pin 29, internally bonded to VSS) that MUST be soldered to a copper ground pour for mechanical reliability and thermal dissipation. Recommended thermal pad via pattern: 3x3 grid of 0.3 mm thermal vias connecting the EP to the inner ground plane. Failure to solder the EP causes intermittent open-circuit failures during thermal cycling.
Do NOT confuse the 'E' suffix (extended -40C to +125C temperature) with 'F' (PIC16F1938 vs PIC16LF1938, the LF variant has lower voltage range and slightly different sleep current). The 'ML' suffix uniquely denotes QFN-28, distinct from 'SP' (SOIC-28) and 'P' (SPDIP-28) - they are NOT pin-to-pin drop-in on the PCB because the land pattern differs. Reserved pins RB3/RB6/RB7 must not be left floating when unused - configure them as outputs or enable internal weak pull-ups.
Route the ICSP clock and data lines (ICSPCLK/ICSPDAT, RA5/RA4 in 28-pin QFN) to dedicated test pads on the PCB edge - never share ICSP lines with high-current signals like LCD backplanes or PWM motor drive. For LCD segment traces, keep adjacent segments trace-impedance matched and avoid running segment lines under the EP ground pour (creates capacitive coupling that smears segments). Use guard traces between LCD COM and SEG lines if the panel is long (>10 cm).
Compliance Information
RoHS compliant per Microchip product page. Plastic SOIC/QFN package, lead-free finish. AEC-Q100 qualification NOT applicable for this industrial-grade MCU - automotive designers should consider PIC16F1938-E/ML with PPAP documentation or move to PIC18F family with AEC-Q100. Halogen-free per Microchip environmental compliance data.