EmbeddedRelated.com
PIC18F27K42-I/SP

MCHPPIC18F27K42-I/SP

Microchip Technology
PIC PIC® XLP™ 18K Microcontroller IC 8-Bit 64MHz 128KB (64K x 16) FLASH 28-SPDIP
Active661 in stock

Overview

The PIC18F27K42-I/SP is an 8-bit microcontroller featuring 128KB of Flash memory and a 64MHz internal oscillator. Housed in a 28-pin SPDIP package, it is specifically designed for through-hole prototyping and legacy system maintenance. It includes Core Independent Peripherals (CIPs) such as DMA and Vectored Interrupts to offload tasks from the CPU.

Why Choose This Part

This MCU offers a massive 128KB Flash capacity in a through-hole package, which is rare for modern 8-bit parts. The inclusion of two DMA controllers and a vectored interrupt controller significantly improves real-time performance and code efficiency compared to standard PIC18 devices.

Applications

Industrial Sensor Interfacing
Using dual DMA channels and a 12-bit ADC with Computation (ADC2) to automate data acquisition without CPU intervention.
Legacy System Upgrades
Replacing older 28-pin DIP microcontrollers in existing hardware to provide more memory and faster processing speeds.
Educational Development
Teaching embedded systems architecture on a breadboard-friendly platform with hardware-level interrupt management.
Communication Gateways
Bridging multiple serial protocols using its two UARTs, two I2C, and one SPI interface.

Key Specifications

Speed 64MHz
RAM Size 8K x 8
Core Size 8-Bit
EEPROM Size 1K x 8
Peripherals Brown-out Detect/Reset, DMA, HLVD, POR, PWM, WDT
Connectivity I2C, LINbus, SPI, UART/USART
Mounting Type Through Hole
Number of I/O 25
Core Processor PIC
Package / Case 28-DIP (0.300", 7.62mm)
Data Converters A/D 24x12b; D/A 1x5b
Oscillator Type Internal
Program Memory Size 128KB (64K x 16)
Program Memory Type FLASH
Operating Temperature -40degC ~ 85degC (TA)
Supplier Device Package 28-SPDIP
Voltage - Supply (Vcc/Vdd) 2.3V ~ 5.5V

Getting Started

To develop for this chip, use the MPLAB X IDE and the XC8 Compiler from Microchip. For hardware debugging, the MPLAB PICkit 5 or MPLAB Snap can be connected to the ICSP pins. Since it is a 28-pin SPDIP, it can be plugged directly into a standard breadboard and powered via a 5V or 3.3V rail.

PIC18F27 Family

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

Part Number Flash RAM Package ADC/DAC Peripherals Temp Range Stock
PIC18F27K42-I/SP (this part) 128KB 8K DIP-28 A/D 24x12b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 661
PIC18F27K40-I/SP 128KB 3.6K DIP-28 A/D 24x10b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 905
PIC18F27K40T-I/SS 128KB 3.6K SSOP-28 A/D 24x10b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 2,630
PIC18F27K42-E/SO 128KB 8K SOIC-28 A/D 24x12b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 125degC .. 3,146
PIC18F27Q10-I/SO 128KB 3.53K SOIC-28 A/D 24x10b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 652
PIC18F27Q43-I/SO 128KB 8K SOIC-28 A/D 24x12b; D/A 1x8b Brown-out Detect/R.. -40degC ~ 85degC (.. 1,530
PIC18F27K42-E/SS 128KB 8K SSOP-28 A/D 24x12b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 125degC .. 113
PIC18F27K42-I/SO 128KB 8K SOIC-28 A/D 24x12b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 1,778
PIC18F27Q43-I/SP 128KB 8K DIP-28 A/D 24x12b; D/A 1x8b Brown-out Detect/R.. -40degC ~ 85degC (.. 465
PIC18F27K40-I/SO 128KB 3.6K SOIC-28 A/D 24x10b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 85degC (.. 1,314
PIC18F27K42-E/ML 128KB 8K VQFN-28 A/D 24x12b; D/A 1x5b Brown-out Detect/R.. -40degC ~ 125degC .. 102

Also Consider

ATmega328P MCHPMicrochip Technology - A common 28-pin DIP alternative with extensive Arduino community support, though it has significantly less Flash and RAM.
PIC18F26K22 MCHPMicrochip Technology - A lower-cost 28-pin DIP alternative for applications that only require 64KB of Flash and standard interrupt handling.