Opens in a new tab

PIC18F46K42-I

PIC18 K42 next-gen MCU, 64KB Flash, 4KB RAM, 1KB EEPROM, 12-bit ADCC 35ch, DMA, vectored interrupts, 4 PWM, NCO, DSM, ZCD, 2 UART, SPI/2xI2C, XLP, 40-pin

12600

Effective Inventory

Image for reference only

Manufacturer Part:

PIC18F46K42-I

Package:

40-pin PDIP / 44-pin TQFP / UQFN

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The PIC18F46K42-I is a 40-pin, 8-bit high-performance microcontroller from Microchip Technology featuring the PIC18 architecture with next-generation Core Independent Peripherals (CIPs), DMA, vectored interrupts, and a 12-bit ADC with computation capability. With 64KB (32K x 16) of Flash program memory, 4096 bytes of RAM, and 1024 bytes of data EEPROM, it operates at up to 64 MHz across 2.3V to 5.5V. Advanced features include a 35-channel 12-bit ADC with computation and context switching (ADCC), Direct Memory Access (DMA) controller, vectored interrupts, Memory Access Partition (MAP), Device Information Area (DIA) with factory calibration, four standalone PWMs, one CCP, one NCO, one DSM, two comparators, a 5-bit DAC, a Zero-Cross Detector (ZCD), two UARTs, one SPI, and two I2C interfaces. With its rich set of intelligent peripherals that operate without CPU intervention, the K42 family represents the latest evolution of PIC18 MCUs, ideal for complex sensor interfaces, touch applications, industrial control, automotive systems, and IoT devices requiring high performance and low power.

Key Specifications

Core Architecture 8-bit PIC18 RISC Architecture
Program Memory 64KB Flash (32K x 16 words)
RAM 4096 bytes (4 KB)
Data EEPROM 1024 bytes (1 KB)
Maximum Speed 64 MHz (16 MIPS)
Operating Voltage 2.3V to 5.5V
I/O Pins 36
ADC 12-bit ADCC, 35 channels, with computation & context switching
Comparators 2 high-speed analog comparators
DAC 5-bit rail-to-rail DAC
Zero-Cross Detect Yes (ZCD module)
PWM 4 standalone PWMs + 1 CCP = 5 total PWM outputs
NCO 1 Numerically Controlled Oscillator
DSM 1 Data Signal Modulator
Communication 2 x UART, 1 x SPI, 2 x I2C
DMA DMA controller for CPU-less data transfers
Interrupts Vectored interrupts with programmable priority
Voltage Reference FVR: 1.024V / 2.048V / 4.096V
Low Power XLP, 50 nA Sleep typical @ 1.8V
Stack Levels 31-level hardware stack
Hardware Multiplier 8 x 8 single-cycle hardware multiplier
CRC/Scan 32-bit CRC with memory scanner
Debug In-Circuit Debug (ICD) integrated on-chip
Operating Temperature -40C to +85C (Industrial)
Package 40-pin PDIP / 44-pin TQFP / UQFN

Features

  • C compiler optimized PIC18 RISC architecture, 16 MIPS at 64 MHz
  • 31-level deep hardware stack, 8×8 single-cycle hardware multiplier
  • Vectored interrupts with programmable single/dual priority
  • Two-level hardware context saving for fast interrupt response
  • Direct Memory Access (DMA) controller – CPU-less data transfers
  • Memory Access Partition (MAP) – bootloader write protection
  • Device Information Area (DIA) – factory calibration data
  • 32-bit CRC with Memory Scan for Class B safety
  • 12-bit ADC with Computation (ADCC) – averaging, filtering, oversampling
  • 35 ADC channels with context switching for multi-sensor applications
  • Two high-speed analog comparators with hysteresis
  • 5-bit rail-to-rail DAC with buffered output
  • Zero-Cross Detection (ZCD) for AC signal sensing
  • Fixed Voltage Reference (FVR): 1.024V, 2.048V, 4.096V
  • Four standalone PWM modules
  • One Capture/Compare/PWM (CCP) module
  • Numerically Controlled Oscillator (NCO) for frequency synthesis
  • Data Signal Modulator (DSM) for IR/RF modulation
  • Two UART modules with 2-byte FIFO and DMA support
  • One SPI module and two I2C modules (SMBus/PMBus compatible)
  • eXtreme Low-Power (XLP): 50 nA Sleep, 500 nA WDT
  • DOZE mode – CPU runs slower than peripherals
  • IDLE and SLEEP modes for selective power reduction
  • Peripheral Module Disable (PMD) for selective peripheral power-down
  • High/Low-Voltage Detect (HLVD) for supply monitoring
  • Programmable Brown-out Reset (BOR)
  • Windowed Watchdog Timer (WWDT)
  • 36 I/O pins with 25 mA sink/source capability
  • Self-programmable Flash under software control
  • In-Circuit Serial Programming (ICSP) and In-Circuit Debug (ICD)
  • Recommended for Automotive Design

Applications

  • Advanced sensor interfaces with 12-bit precision
  • Touch sensing and HMI applications (buttons, sliders, touchscreen)
  • Industrial control and automation with DMA offload
  • Automotive body electronics and sensor modules
  • IoT devices with multiple communication protocols
  • Medical devices requiring safety and precision
  • Smart home and consumer appliances
Product Introduction: PIC18F46K42-I Product Introduction

The PIC18F46K42 is a 40/44-pin high-performance 8-bit Flash microcontroller from Microchip Technology, part of the advanced K42 family featuring Core Independent Peripherals (CIPs) that operate without CPU intervention. It offers 64KB (32K x 16) of Flash program memory, 4KB of RAM, and 1KB of data EEPROM, operating at up to 64 MHz (16 MIPS) across 2.3V to 5.5V. Key advancements include a Direct Memory Access (DMA) controller enabling CPU-less data transfers between memory and peripherals, vectored interrupts with fast fixed-latency response, and a 12-bit ADC with Computation (ADCC) featuring 35 channels, hardware averaging, filtering, and context switching for multi-channel sensor applications. Memory Access Partition (MAP) provides bootloader protection, while the Device Information Area (DIA) stores factory-calibrated values for ADC and comparators. Peripherals include four standalone PWMs, one CCP, one Numerically Controlled Oscillator (NCO), one Data Signal Modulator (DSM), a Zero-Cross Detector (ZCD), two comparators, a 5-bit DAC, two UARTs, one SPI, and two I2C interfaces. XLP technology provides 50 nA Sleep current. With its intelligent peripherals, DMA offload, and vectored interrupts, the K42 family represents the latest generation of PIC18 MCUs, ideal for complex sensor processing, touch applications, industrial control, automotive, and IoT designs. Available in PDIP-40, TQFP-44, and UQFN-48 packages with industrial temperature range.

Working Principle: PIC18F46K42-I Working Principle

The PIC18F46K42 operates on the PIC18 RISC architecture with vectored interrupts and a DMA controller, representing a significant advancement over previous PIC18 families. The DMA controller enables direct data transfers between any memory space and any peripheral without CPU intervention, significantly improving system performance and reducing power consumption by offloading data movement tasks. Vectored interrupts provide fixed-latency interrupt response with automatic context saving and two-level priority, enabling faster real-time response. The 12-bit ADCC (ADC with Computation) is a highly advanced analog front end with 35 input channels, hardware averaging, threshold comparison, and context switching – allowing the ADC to automatically sequence through multiple sensor channels and perform basic signal processing without CPU involvement. Four standalone PWM modules, one CCP, and an NCO provide flexible waveform generation. The Data Signal Modulator (DSM) combines a carrier signal with a data signal for IR/RF transmission applications. The Zero-Cross Detector (ZCD) enables AC line sensing for TRIAC control and power applications. Two UART modules with FIFO and DMA support, one SPI, and two I2C interfaces provide comprehensive communication options. The 32-bit CRC with memory scanner enables Class B safety compliance by periodically verifying program memory integrity. Power management includes DOZE, IDLE, and SLEEP modes plus Peripheral Module Disable for optimizing power consumption. MAP partitions Flash memory for bootloader protection, while DIA stores factory calibration data.

Pin Description: PIC18F46K42-I Pin Definition and Functions
Pin (PDIP-40) Name Type Function
1 MCLR/VPP/RE3 I/P Master Clear / VPP / Port E I/O
2 RA0/AN0 I/O Port A I/O / ADC Channel 0
3 RA1/AN1 I/O Port A I/O / ADC Channel 1
4 RA2/AN2/C2IN+ I/O Port A I/O / ADC2 / Comp2 In+
5 RA3/AN3/VREF+ I/O Port A I/O / ADC3 / Vref+
6 RA4/T0CKI/C1OUT I/O Port A I/O / T0CKI / Comp1 Output
7 RA5/SS1/AN4/C2OUT I/O Port A I/O / SPI1 SS / ADC4 / Comp2 Out
8 RE0/AN5 I/O Port E I/O / ADC Channel 5
9 RE1/AN6 I/O Port E I/O / ADC Channel 6
10 RE2/AN7 I/O Port E I/O / ADC Channel 7
11 VSS P Ground Reference
12 RD0/AN8 I/O Port D I/O / ADC Channel 8
13 RD1/AN9 I/O Port D I/O / ADC Channel 9
14 RD2/AN10 I/O Port D I/O / ADC Channel 10
15 RD3/AN11 I/O Port D I/O / ADC Channel 11
16 RC0/T1OSO/T1CKI I/O Port C I/O / T1OSO / Timer1 Clock
17 RC1/T1OSI/CCP2/PWM2 I/O Port C I/O / T1OSI / CCP2 / PWM2
18 RC2/CCP1/PWM1/P1A I/O Port C I/O / CCP1 / PWM1 / PWM1A
19 RC3/SCK1/SCL1 I/O Port C I/O / SPI1 Clock / I2C1 Clock
20 RD4/AN12 I/O Port D I/O / ADC Channel 12
21 RD5/AN13 I/O Port D I/O / ADC Channel 13
22 RD6/AN14 I/O Port D I/O / ADC Channel 14
23 RD7/AN15 I/O Port D I/O / ADC Channel 15
24 RC4/SDI1/SDA1 I/O Port C I/O / SPI1 DI / I2C1 Data
25 RC5/SDO1 I/O Port C I/O / SPI1 Data Out
26 RC6/TX1/CK1 I/O Port C I/O / UART1 TX/Clock
27 RC7/RX1/DT1 I/O Port C I/O / UART1 RX/Data
28 VSS P Ground Reference
29 VDD P Positive Supply Voltage
30 RB0/INT0/PWM3 I/O Port B I/O / Ext Int0 / PWM3
31 RB1/AN10/PWM4 I/O Port B I/O / ADC10 / PWM4
32 RB2/AN8/NCO1 I/O Port B I/O / ADC8 / NCO Output
33 RB3/PGM/ZCD I/O Port B I/O / LVP / Zero-Cross Detect
34 RB4/SDA2/DSM I/O Port B I/O / I2C2 Data / Data Signal Modulator
35 RB5/SCL2/FLT0 I/O Port B I/O / I2C2 Clock / Fault Input 0
36 RB6/ICSPCLK/C1IN+ I/O Port B I/O / ICSP Clock / Comp1 In+
37 RB7/ICSPDAT/C1IN- I/O Port B I/O / ICSP Data / Comp1 In-
38 OSC1/CLKIN/RA7 I Oscillator Input / Clock Input / Port A I/O
39 OSC2/CLKOUT/RA6 O Oscillator Output / Clock Output / Port A I/O
40 VDD P Positive Supply Voltage
Application Scenarios: In which products and applications is PIC18F46K42-I used
  • High-precision multi-channel sensor interfaces with 12-bit ADC
  • Capacitive touch sensing and HMI applications
  • Industrial control with DMA offload and CIP peripherals
  • Automotive sensor modules and body control
  • IoT devices with multiple protocol connectivity
  • Medical devices requiring safety (CRC) and precision
  • Smart appliances with advanced touch and sensing
Alternative Models: What chips are recommended as replacements for PIC18F46K42-I
Manufacturer Part Number Package Notes
Microchip PIC18LF46K42-I 40-pin Low-voltage XLP, 1.8-3.6V, same features
Microchip PIC18F47K42-I 48-pin 128KB Flash, 8KB RAM, 47 I/O, highest memory
Microchip PIC18F26K42-I 28-pin 64KB Flash, 4KB RAM, 28-pin package
Microchip PIC18F45K42-I 40-pin 32KB Flash, 2KB RAM, lower cost K42
Microchip PIC18F46K22-I 40-pin Previous gen, 10-bit ADC, no DMA, lower cost

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