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
Go to Inquiry

Image for reference only

Manufacturer Part:

PIC18F46K42-I

Package:

40-pin PDIP / 44-pin TQFP / UQFN

Brand:
Other recommendations you may be interested in.
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

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.

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 (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
  • 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
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
Ultra-low-power ARM Cortex-M0+ MCU at 32MHz with 64KB Flash, 8KB SRAM + 2KB EEPROM, USB FS, 2x DAC, LCD, capacitive touch in LQFP-48.

Brand:

Package:

LQFP-48

In stock:

3655pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Ultra-low-power ARM Cortex-M0+ MCU at 32MHz with 64KB Flash, 8KB SRAM + 2KB EEPROM, 2x DAC, LCD controller, capacitive touch, LPUART in LQFP-64.

Brand:

Package:

LQFP-64

In stock:

8117pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Ultra-low-power ARM Cortex-M0+ MCU at 32MHz with 32KB Flash, 8KB SRAM, 12-bit ADC, 2x I2C, 2x USART, value line L0 series in LQFP-48.

Brand:

Package:

LQFP-48

In stock:

5433pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
ARM Cortex-M7 MCU at 280MHz with 2MB Flash, 1.4MB SRAM, LCD-TFT, JPEG, Octo-SPI, FDCAN, DFSDM, SMPS, high RAM-to-Flash ratio in LQFP-144.

Brand:

Package:

LQFP-144

In stock:

3284pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Dual-core ARM Cortex-M7@480MHz + M4@240MHz MCU with 2MB dual-bank Flash, 1MB SRAM, LCD-TFT, JPEG, Ethernet, FDCAN, SMPS in LQFP-144.

Brand:

Package:

LQFP-144

In stock:

10853pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Flagship ARM Cortex-M7 MCU at 480MHz with 2MB dual-bank Flash, 1MB SRAM, LCD-TFT, JPEG, FDCAN, Ethernet, DFSDM, HRTIM in LQFP-208.

Brand:

Package:

LQFP-208

In stock:

2743pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Quality Assurance

Quality is the core foundation of our long-term global cooperation. With over 20 years of experience in the electronic component industry, Materialparts has built a strict and standardized quality management system covering component sourcing, incoming inspection, full-batch testing, packaging and delivery. We are committed to delivering 100% genuine, high-reliability electronic components for industrial control, automotive electronics, consumer electronics and medical device industries, and fully safeguarding your production and R&D projects.

1. Authorized & Genuine Sourcing Promise

All of our electronic components are procured from official authorized distributors and original manufacturers. We strictly reject counterfeits, refurbished parts, disassembled components and gray-market goods. Every product is guaranteed to be brand-new original parts and fully consistent with the original technical parameters. For branded products such as NXP IC series, we maintain complete supply channel documents to realize full product traceability.

2. Strict Full-batch Quality Inspection

We implement 100% full-batch quality control for all goods before shipment. Our professional QC team conducts multi-dimensional tests including appearance inspection, electrical parameter testing, performance verification and packaging check. Each batch of components is attached with complete inspection reports and batch records. We stick to zero-tolerance standards for defective products to ensure every piece of component meets industrial application requirements.

3. Industry Standard Compliance

Our products comply with a variety of international industry quality standards to adapt to high-standard application scenarios:
  • Automotive Electronics: All automotive-grade components pass AEC-Q series certification, featuring excellent stability and durability to adapt to complex vehicle operating environments.
  • Medical Devices: High-reliability components meet medical industry safety and compliance regulations, ensuring stable operation for medical equipment.
  • Industrial Control & Consumer Electronics: Products conform to universal international electronic industry standards, suitable for long-term continuous operation of various equipment.

4. Professional Reliability Control

For static-sensitive, moisture-sensitive and precision components such as ICs, PCBs, sensors and connectors, we carry out reliability screening in advance. Combined with standardized ESD anti-static packaging and vacuum moisture-proof packaging, we avoid component damage caused by static electricity, dampness or collision during storage and transportation, and retain the original performance of products.

5. Traceability Management System

We establish a complete product traceability system. Each batch of goods corresponds to independent batch number, sourcing record, inspection record and delivery record. Customers can query the whole lifecycle information of components at any time. This system effectively solves quality risks and facilitates after-sales handling and production quality control for your company.

6. After-sales Quality Guarantee

If any product is confirmed to have non-conformity quality problems due to our reasons after receipt, we provide free return, exchange and supplementary delivery services. Our professional quality team will also conduct root cause analysis to optimize our quality control process. We respond to quality feedback within 24 hours to resolve your worries efficiently.

Contact Us

If you have inquiries about our quality standards, inspection procedures or product certification documents, please feel free to contact us:

 

Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China

 

Shipping & Payment

Materialparts is a professional global supplier of electronic components with over 20 years of industry experience. We provide one-stop supply of passive components, integrated circuits, as well as parts for industrial control, automotive electronics, consumer electronics and medical devices. Below are the unified shipping and payment policies applicable to all orders, samples and bulk purchases worldwide.

1. Payment Terms

We offer a variety of secure and convenient payment methods to meet diverse business cooperation needs. Details are as follows:
  1. Accepted Payment Methods
  • T/T (Bank Wire Transfer): The primary settlement method for bulk orders and a widely used international payment channel.
  • PayPal: Ideal for small orders, sample orders and quick payments.
  1. Settlement Currency

     

    US Dollar (USD) is the default settlement currency. RMB is available for domestic customers.

  2. Bank Charges

     

    All transfer fees, intermediary bank charges and other remittance-related expenses shall be borne by the buyer.

  3. Payment Requirements
  • Sample and small orders: Shipment will be arranged upon full payment.
  • In-stock bulk orders: Goods will be delivered within 2 to 3 working days after full payment.

2. Shipping & Delivery

We partner with leading global logistics providers to ensure safe and fast delivery worldwide. Relevant details are listed below:
  1. Logistics Partners
  • International Express: DHL, FedEx, UPS, TNT
  • Economy Logistics: Air freight and sea freight for large-volume cargo
  • Domestic Delivery: SF Express, Yunda Express
  1. Order Processing Time
  • In-stock items: Orders confirmed and fully paid before 14:00 (GMT+8) will be shipped on the same day. All other orders will be dispatched within 1 to 2 working days.
  • Out-of-stock or sourced items: The delivery lead time will be confirmed separately according to brand and inventory status.
  1. Estimated Transit Time
  • International Express: 3 – 7 working days globally
  • Air Freight: 7 – 12 working days
  • Sea Freight: 25 – 40 working days for heavy and large bulk cargo
  1. Shipping Fee Rules
  • Shipping cost is calculated based on package weight, volume, destination and delivery method.
  • Both freight prepaid and freight collect are available. Please provide your courier account number in advance if you choose freight collect.
  • Free international express delivery is offered for large orders. Terms for long-term partners can be negotiated separately.
  1. Shipment Tracking
     

    Within 24 hours after dispatch, we will send the tracking number, commercial invoice, packing list and other documents to your email or communication account. You may check the shipment status online in real time.

3. General Order Rules & Notes

  1. MOQ & Sample Service

     

    We support flexible minimum order quantities for samples, small-batch and large-batch orders. All sample orders shall comply with the above shipping and payment policies.

  2. Packaging Standard

     

    All electronic components are packed with professional anti-static and shockproof materials. Original factory packaging is available for branded chips and integrated circuits.

4. Customs & Liability Statement

  1. Import Duties & Taxes

     

    All import duties, customs clearance fees and local taxes incurred for international shipments shall be borne by the buyer. We will provide complete customs documents to assist you with clearance procedures.

  2. Handling of Lost or Damaged Goods
  • In case of loss or severe damage during transit, please contact us within 48 hours after receiving the tracking information. We will assist you in filing a claim with the logistics provider.
  • We shall not be liable for any losses caused by incorrect delivery address, wrong contact information or the buyer’s refusal to complete customs clearance.

5. Local Pickup in Shenzhen

Local pickup service is available for customers in Shenzhen and surrounding areas:
  • Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong Province, China
  • Business Hours: 09:00 – 18:00, Monday to Friday. Closed on weekends and official public holidays.
  • Notice: Please make an appointment via email or communication tools one day in advance, and present your order information upon pickup.

Contact Information

Email: info@ic-vendor.com

Tel / WhatsApp: +86 13760382860

Service & Packaging

Materialparts is a professional electronic component supplier based in Shenzhen, China, with over 20 years of global trading experience. We integrate component procurement, quality inspection, technical support, customized packaging, and global delivery services to provide one-stop supply chain solutions. Our business covers industrial control, automotive electronics, consumer electronics, medical devices and other industries. We always adhere to genuine sources, stable supply and considerate after-sales service.

Core Services

1. One-stop Sourcing & BOM Support

We specialize in a full range of passive and active electronic components, including SMD resistors, power resistors, connectors, aviation connectors, LED beads, flexible circuit boards, printed circuit boards, and integrated circuits. Our professional team provides BOM list consolidation, component matching, and alternative model recommendation services. We support sample orders, small-batch trial production, and mass production orders with flexible MOQs to meet diverse procurement needs.

2. Genuine Product Guarantee & Full-process Quality Inspection

All products are sourced from official authorized channels and are 100% original genuine parts. Every batch of goods undergoes strict full-process quality inspection before delivery, with complete batch records and traceability documents provided. Our products comply with AEC-Q standards for automotive electronics and high-reliability specifications for medical devices. We eliminate counterfeits, refurbished parts and defective products from the source to secure your project production.

3. Fast Quotation & Order Processing

Our customer service team responds promptly to inquiries and quotation requests. All in-stock orders will be processed within one working day. We provide stocking reservation services for long-term cooperative customers, effectively solving problems such as component shortages and unstable supply chains.

4. Professional Technical Support

Our senior engineer team provides free technical consultation, model selection guidance and original manufacturer datasheets. We assist customers in solving problems related to product R&D, circuit design and component application, providing reliable technical support for project progress.

5. Sourcing for Special Components

Relying on our global supply chain network, we professionally source scarce components, obsolete parts and customized special components to efficiently solve your procurement difficulties.

6. Global Logistics & Document Services

We cooperate with mainstream international logistics providers including DHL, FedEx, UPS and TNT to achieve fast global delivery. We can provide complete export documents such as customs declaration files, commercial invoices and packing lists to ensure smooth customs clearance for international shipments. Local pickup is also available for customers in Shenzhen, China.

Professional Packaging Standards

Electronic components are sensitive to static electricity, collision, moisture and dust. We adopt industry-standard anti-static packaging solutions to fully ensure the integrity of goods during transportation and storage.

1. General Packaging Specifications

  • All components are packed separately to avoid damage caused by friction and collision;
  • Shockproof buffer materials are added for fragile products to ensure transportation safety;
  • Each package is clearly marked with part number, quantity, batch number and specifications for easy inventory counting and management.

2. Classified Professional Packaging

  • Anti-static Packaging: Static-sensitive components such as chips, circuit boards and sensors are packaged with anti-static bags, shielding boxes and conductive foam in strict accordance with international anti-static standards to prevent static damage.
  • Vacuum Moisture-proof Packaging: Moisture-sensitive components are vacuum-sealed with desiccants to isolate humid air, suitable for ocean transportation and long-term storage.
  • Original Factory Packaging: Integrated circuits of brands such as NXP are delivered with original reels, trays or tubes by default, retaining complete original packaging and adapting to automated SMT production lines.
  • Discrete Device Packaging: Discrete devices such as SMD resistors, power resistors and LEDs are quantitatively and classifiedly packaged with accurate quantity and clear marking.
  • Connector / Aviation Connector Packaging: Hard outer packaging is adopted to prevent pin bending and structural deformation.

3. Custom Packaging Services

We provide value-added services including personalized packaging, custom labeling and re-reeling according to customer requirements, fully matching your production and warehouse management standards.

Contact Information

For service consultation or packaging customization, please feel free to contact us:
Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China
 

Online Inquiry Form

Support Excel, PDF, CSV format files for full BOM list quotation

Submit your component procurement and custom packaging needs via the form below. We will provide a detailed quotation and professional solution within 1–8 working hours.