Microchip Technology

PIC16C662-20I/PQ - 8-Bit OTP MCU 7KB 33 I/O 20MHz | Microchip

MPN: PIC16C662-20I/PQ βœ— End of Life
In Stock Ships in 1-3 business days
4.5 V to 5.5 V Vdss 25 mA per pin Id 44-pin MQFP (PQ) Package 20 MHz Speed OTP (One-Time-Programmable EPROM) Memory
From $5.74 USD / Unit
MOQ: 1 |
Price updated: 2026-09-17
Volume Pricing
Qty Unit Price Extended
1 $8.95 $8.95
10 $8.06 $80.60
100 $7.16 $716.00
500 $6.45 $3,225.00
1,000 $5.74 $5,740.00
ℹ️ All prices are in USD

PIC16C662-20I/PQ Overview

The Microchip Technology PIC16C662-20I/PQ is a member of the PIC16C66x family of 8-bit CMOS EPROM/OTP microcontrollers with on-chip analog comparators, delivering 7KB of program memory, 176 bytes of RAM, and 33 digital I/O lines. It operates from a 4.5V to 5.5V supply at speeds up to 20 MHz (200 ns instruction cycle), and is housed in a 44-pin MQFP (PQ) package rated for the industrial temperature range (-40C to +85C).

An 8-bit microcontroller (MCU) is a small, self-contained computer-on-a-chip integrating a CPU core, program memory, data RAM, and peripherals. The PIC16C family belongs to the broader hierarchy: microcontroller -> embedded controller -> semiconductor -> integrated circuit. Within that taxonomy, the PIC16C662 sits in the mid-range PIC16C family, providing OTP (One-Time-Programmable) program memory suitable for low-to-medium volume production where field upgrades are not required.

Key features include a RISC architecture with only 35 single-word instructions to learn, 8-bit data path, two analog comparators with programmable reference, 8-bit/16-bit timers, a synchronous serial port (SSP) supporting SPI and I2C, and a USART with addressable TX/RX buffers. All instructions execute in a single cycle except program branches, which take two cycles - yielding 5 MIPS performance at 20 MHz. The 33 I/O pins can sink/source up to 25 mA each, suitable for direct LED drive.

The device is built on Microchip's baseline-plus CMOS process with EPROM program memory, providing field-programmability during development and OTP production cost at volume. The integrated analog comparators eliminate the need for external comparators in many closed-loop control applications, while the SSP and USART enable communication with peripheral ICs and host processors.

Typical applications include industrial control logic, motor drive interface circuits, sensor signal conditioning, automotive body electronics, and embedded control subsystems. The wide industrial temperature range and 33 I/O make the PIC16C662-20I/PQ a flexible workhorse for designers building mid-range 8-bit control systems.

When designing with this MCU, plan OTP programming into the production flow since OTP memory cannot be erased. Provide adequate decoupling (100 nF + 10 uF) near VDD/AVDD pins, and observe the in-circuit serial programming (ICSP) timing specifications for production programming reliability.

This page synthesizes distributor pricing, drop-in pin-compatible alternatives, and practical design notes for the PIC16C662-20I/PQ - information that goes beyond a single datasheet lookup.

Drop-in alternatives for PIC16C662-20I/PQ β€” 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 PIC16C662-20I/PQ (same form factor and footprint) β€” differing in Package, Program Memory Type, Program Memory Size, Analog Comparators, Communication Peripherals.

Microchip Technology
Program Memory Type: OTP
Program Memory Size: 7 KB
Microchip Technology
Package: 44-MQFP (Metric Plastic QFP)
Program Memory Type: OTP EPROM
Analog Comparators: Yes (integrated)
Microchip Technology
Package: 44-pin TQFP (PT)
Program Memory Size: 7 KB
Communication Peripherals: USART (SCI/SPI modes), PSP

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

No drop-in alternatives available for this product.

Request Alternatives

PIC16C662-20I/PQ Maximum Ratings & Electrical Characteristics

Architecture 8-bit RISC
Program Memory Type OTP (One-Time-Programmable EPROM)
Program Memory Size 7 KB (4K x 14)
RAM Size 176 bytes
Maximum Clock Frequency 20 MHz
Instruction Cycle 200 ns (single-cycle)
Supply Voltage Range 4.5 V to 5.5 V
I/O Pins 33
Analog Comparators 2
Timers 3 (Timer0 8-bit, Timer1 16-bit, Timer2 8-bit)
Communication Peripherals SSP (SPI/I2C), USART/SCI
Operating Temperature Range -40 C to +85 C (Industrial)
Package 44-pin MQFP (PQ)
Mounting Type Surface Mount
Instruction Set 35 instructions
MIPS 5 MIPS at 20 MHz
I/O Sink/Source Current 25 mA per pin
Watchdog Timer Yes (programmable WDT)
In-Circuit Programming ICSP support

PIC16C662-20I/PQ Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 OSC1/CLKIN β€” Oscillator crystal input or external clock input
Pin 2 OSC2/CLKOUT β€” Oscillator crystal output or clock output
Pin 3 MCLR/VPP β€” Master clear reset or programming voltage input
Pin 4 RA0/AN0 β€” PORTA bit 0 / analog comparator input
Pin 5 RA1/AN1 β€” PORTA bit 1 / analog comparator input
Pin 6 RA2/AN2/CVREF β€” PORTA bit 2 / analog comparator input / comparator voltage reference
Pin 7 RA3/AN3/VREF+ β€” PORTA bit 3 / analog comparator input / positive voltage reference
Pin 8 RA4/T0CKI β€” PORTA bit 4 / Timer0 clock input
Pin 9 RA5/SS/AN4 β€” PORTA bit 5 / SPI slave select / analog comparator input
Pin 10 VSS β€” Ground reference
Pin 11 VDD β€” Positive supply voltage
Pin 12 RB0/INT β€” PORTB bit 0 / external interrupt input
Pin 13 RB1 β€” PORTB bit 1
Pin 14 RB2 β€” PORTB bit 2
Pin 15 RB3/PGM β€” PORTB bit 3 / low-voltage programming enable
Pin 16 RB4 β€” PORTB bit 4
Pin 17 RB5 β€” PORTB bit 5
Pin 18 RB6/PGC β€” PORTB bit 6 / ICSP clock input
Pin 19 RB7/PGD β€” PORTB bit 7 / ICSP data I/O
Pin 20 VSS β€” Ground reference
Pin 21 VDD β€” Positive supply voltage
Pin 22 RC0/T1OSO/T1CKI β€” PORTC bit 0 / Timer1 oscillator output / Timer1 clock input
Pin 23 RC1/T1OSI/CCP2 β€” PORTC bit 1 / Timer1 oscillator input / CCP2 output
Pin 24 RC2/CCP1 β€” PORTC bit 2 / CCP1 I/O
Pin 25 RC3/SCK/SCL β€” PORTC bit 3 / SPI clock / I2C clock
Pin 26 RC4/SDI/SDA β€” PORTC bit 4 / SPI data in / I2C data
Pin 27 RC5/SDO β€” PORTC bit 5 / SPI data out
Pin 28 RC6/TX/CK β€” PORTC bit 6 / USART async transmit / USART sync clock
Pin 29 RC7/RX/DT β€” PORTC bit 7 / USART async receive / USART sync data
Pin 30 VSS β€” Ground reference
Pin 31 VDD β€” Positive supply voltage
Pin 32 RD0 β€” PORTD bit 0
Pin 33 RD1 β€” PORTD bit 1
Pin 34 RD2 β€” PORTD bit 2
Pin 35 RD3 β€” PORTD bit 3
Pin 36 RD4 β€” PORTD bit 4
Pin 37 RD5 β€” PORTD bit 5
Pin 38 RD6 β€” PORTD bit 6
Pin 39 RD7 β€” PORTD bit 7
Pin 40 VSS β€” Ground reference
Pin 41 VDD β€” Positive supply voltage
Pin 42 RE0/RD β€” PORTE bit 0 / parallel slave port read control
Pin 43 RE1/WR β€” PORTE bit 1 / parallel slave port write control
Pin 44 RE2/CS β€” PORTE bit 2 / parallel slave port chip select

Typical Applications

PIC16C662-20I/PQ is suitable for 6 applications: Industrial Control Logic, Motor Drive Interface, Sensor Signal Conditioning, Automotive Body Electronics, Embedded Subsystem Control, Building Automation.

🏭

Industrial Control Logic

The PIC16C662-20I/PQ's 33 I/O lines, 7KB OTP program memory, and integrated USART make it ideal for industrial control logic modules, including PLC remote I/O racks, conveyor sequencers, and machine-tool interlocks. The 5 MIPS throughput at 20 MHz handles PID loops and protocol stacks, while the two analog comparators simplify closed-loop feedback without external op-amps. Its industrial -40C to +85C rating suits factory-floor enclosures without additional thermal conditioning. Program the device once at production via ICSP and field-proven OTP reliability keeps maintenance interventions minimal.

πŸ€–

Motor Drive Interface

The PIC16C662-20I/PQ is well suited as the control front-end for brushed DC and stepper motor drivers, where its 25 mA I/O drive directly interfaces with opto-couplers and small relay coils, while the PWM-friendly Timer2 module generates variable duty-cycle control signals. The 16-bit Timer1 enables precise velocity measurement via quadrature encoders, and the dual analog comparators allow current-limit detection on the H-bridge return path. Industrial temperature rating supports under-hood and motor cabinet environments.

🧩

Sensor Signal Conditioning

For sensor signal conditioning, the PIC16C662-20I/PQ's two on-chip analog comparators allow direct interfacing with thermocouples, photodiodes, and Hall-effect sensors without external op-amps, while its SSP peripheral supports SPI or I2C digital sensors like accelerometers and pressure transducers. The 35-instruction RISC core executes averaging and linearization routines in real time at 20 MHz. The 33 I/O lines are sufficient to multiplex multiple sensor channels and drive status LEDs in a single compact 44-pin MQFP footprint.

πŸš—

Automotive Body Electronics

The PIC16C662-20I/PQ serves well in cabin-level automotive body modules such as seat controllers, mirror adjusters, and lighting dimmers, where its 25 mA I/O directly drives small relays and LED arrays without buffer transistors. The industrial temperature range covers automotive cabin conditions. However, for under-hood AEC-Q100 qualified applications, Microchip recommends migrating to the PIC18F family. The 7KB OTP memory holds body-control state machines and CAN-style message handlers, with the USART enabling LIN bus communication via external transceiver.

πŸ“±

Embedded Subsystem Control

The PIC16C662-20I/PQ functions as an intelligent peripheral controller in larger embedded systems, handling key-scan matrices, display multiplexing, and keypad debounce while communicating with the host processor via SPI or USART. Its 176 bytes of RAM and 7KB OTP are adequate for menu-driven human-interface logic, while 33 I/O easily drives 4x5 keypads and 7-segment LED displays. The MQFP-44 package fits compact handheld enclosures, and the industrial temperature rating supports outdoor consumer electronics.

🌐

Building Automation

In building automation subsystems such as HVAC damper controllers, access control keypads, and lighting ballast interfaces, the PIC16C662-20I/PQ delivers reliable 8-bit control at low cost. The 7KB OTP accommodates Modbus RTU or BACnet-style protocol handlers, while the dual analog comparators process thermistor and LDR inputs directly. The 33 I/O drive TRIAC optocouplers and zero-cross detectors, and the 5 MIPS throughput handles multiple channel scans. Industrial temperature operation supports unheated equipment closets and rooftop unit installations.

Recommended Products Summary

MAX232 RS-232 line driver for USART Used in: Industrial Control Logic 24LC256 I2C EEPROM for parameter storage Used in: Industrial Control Logic L298N Dual H-bridge motor driver Used in: Motor Drive Interface HCPL-2630 Opto-isolator for fault feedback Used in: Motor Drive Interface LM35 Precision temperature sensor Used in: Sensor Signal Conditioning MPX2050 Pressure sensor for I2C conditioning Used in: Sensor Signal Conditioning TJA1020 LIN bus transceiver Used in: Automotive Body Electronics BTS432E2 Smart high-side power switch Used in: Automotive Body Electronics MAX7219 LED display driver, SPI-controlled Used in: Embedded Subsystem Control HD44780 Character LCD controller via parallel I/O Used in: Embedded Subsystem Control MOC3021 Random-phase TRIAC optoisolator Used in: Building Automation MAX485 RS-485 transceiver for Modbus Used in: Building Automation
What is the operating voltage of PIC16C662-20I/PQ?
The PIC16C662-20I/PQ operates from a supply voltage of 4.5V to 5.5V according to the manufacturer datasheet. Operation below 4.5V is not guaranteed; an external brown-out detector or voltage supervisor is recommended for systems with unstable rails. For low-voltage designs, consider the PIC16F family which extends operation down to 2.0V.
How much program memory does PIC16C662-20I/PQ have?
The PIC16C662-20I/PQ contains 7KB of OTP program memory (4K x 14-bit words), sufficient for moderately complex control loops, serial protocol stacks, and table-driven state machines. Because the memory is One-Time-Programmable, every code revision during development must use a new device unless a windowed CERQUIN package is selected.
What is the maximum clock speed of PIC16C662-20I/PQ?
The PIC16C662-20I/PQ operates at up to 20 MHz external clock input, yielding 200 ns instruction cycles and 5 MIPS throughput. All instructions are single-cycle except program branches, which take two cycles. Above 20 MHz the part is not specified, so HS oscillator mode should be selected with a crystal rated for the target frequency.
How many I/O pins does PIC16C662-20I/PQ have?
The PIC16C662-20I/PQ provides 33 digital I/O pins on the 44-pin MQFP package. Each I/O can source or sink up to 25 mA, sufficient to drive LEDs and small relays directly. Several pins share functions with analog comparator inputs and serial peripheral I/O, so design your pin allocation before laying out the schematic.
Where can I download the PIC16C662-20I/PQ datasheet?
The PIC16C662 datasheet is available on the Microchip Technology website (document number 30211D, datasheet family PDF). It includes electrical characteristics, instruction set reference, and programming specifications. Always refer to the latest revision errata sheet for known silicon anomalies before finalizing firmware.
Is the PIC16C662-20I/PQ still in production?
The PIC16C662-20I/PQ is in NRND (Not Recommended for New Designs) status with Microchip Technology, meaning the part is still orderable but is being phased out. For new designs, Microchip recommends migrating to the PIC16F877 or PIC18F family, which offer Flash memory, lower power, and longer lifecycle guarantees.
What is the operating temperature range of PIC16C662-20I/PQ?
The 'I' suffix on PIC16C662-20I/PQ designates the industrial temperature range, -40C to +85C. This range covers outdoor industrial enclosures, automotive cabin environments, and most factory-floor applications. For full automotive under-hood use, the AEC-Q100 qualified PIC18F family should be substituted.
What is the difference between PIC16C662 and PIC16C662-20I/PQ?
The PIC16C662 is the base die, while PIC16C662-20I/PQ is the specific orderable part: -20 designates 20 MHz max clock, I denotes industrial temperature range, PQ denotes the 44-pin MQFP package. The PIC16C662-20/PQ variant is the commercial temperature version, while PIC16C662-04I/PQ runs at 4 MHz for low-speed designs.
What package does PIC16C662-20I/PQ come in?
The PIC16C662-20I/PQ uses a 44-pin Metric Quad Flat Pack (MQFP), designated by the PQ suffix, with a body size of 10x10 mm and 0.8 mm lead pitch. The PQ package is surface-mount and is footprint-compatible with the 44-pin TQFP on most layouts, although pinout orientation should be verified before reusing an existing PCB.
What are good drop-in replacements for PIC16C662-20I/PQ?
Pin-compatible drop-in replacements include PIC16C662-20I/PT (44-pin TQFP), PIC16C662-20I/L (44-pin PLCC), and PIC16C662-20E/PQ (extended temperature variant) - all share the same die and peripherals. For new designs needing modern features, the PIC16F877-20I/PQ offers Flash memory and a longer lifecycle in the same package family.
Hey Google, what can replace a PIC16C662-20I/PQ?
Direct replacements for the PIC16C662-20I/PQ in the same 44-pin MQFP package include PIC16C662-20I/PT, PIC16C662-20E/PQ, and PIC16C662-04I/PQ. If Flash memory is acceptable, the PIC16F877-20I/PQ is a recommended modern equivalent with the same peripheral set. Each alternative offers the same 33 I/O, 7KB program memory, and dual analog comparators as the original part.
What is the price of PIC16C662-20I/PQ in 2026?
As of 2026-09-18, distributor pricing for the PIC16C662-20I/PQ ranged from approximately $8.95 per unit at qty 1 to about $5.74 per unit at qty 1000 from authorized distributors including Mouser and Heisener. Pricing varies with allocation; sourcing through a Microchip authorized distributor is recommended to avoid counterfeit parts since the part is in NRND status.
Is PIC16C662-20I/PQ in stock at distributors?
As of 2026-09-18, the PIC16C662-20I/PQ was listed as available in limited quantity from 2 distributors on Octopart, with Heisener reporting approximately 2,400 units in stock. Lead time for non-stocked variants is typically 4-6 weeks. For volume orders, plan ahead or migrate to the PIC16F877 family to avoid allocation risk.
What are the key specifications engineers should know about PIC16C662-20I/PQ?
The PIC16C662-20I/PQ has five headline specifications engineers should memorize: 7KB OTP program memory, 176 bytes RAM, 33 digital I/O, 20 MHz maximum clock, and 4.5V-5.5V supply. It also integrates two analog comparators, SSP, USART, and three timers. These parameters define its envelope of use and are the primary constraints when selecting firmware libraries and compiler toolchains.
How does PIC16C662-20I/PQ compare to PIC16F877?
The PIC16C662-20I/PQ (OTP, 7KB, 33 I/O) is an older PIC16C part, while the PIC16F877 (Flash, 14KB, 33 I/O) is its modern Flash-based successor. The PIC16F877 offers in-circuit reprogrammability, lower power consumption, additional peripherals (ADC, PWM, capture/compare), and active lifecycle status. Both share the same PIC16C mid-range architecture, so firmware migration is straightforward.
What is the lead time for PIC16C662-20I/PQ orders?
As of 2026-09-18, the lead time for PIC16C662-20I/PQ from distributors was reported as 'to be confirmed' on Heisener, with estimated delivery of Mar 22 to Mar 27 for non-stocked units. Because the part is NRND, lead times can extend further as stock depletes. Designers are advised to place final orders early or migrate to PIC16F877 family equivalents.

Engineering reference data for PIC16C662-20I/PQ β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16C662-20I/PQ for new designs only when the production volume justifies OTP memory, the industrial temperature range is required, and the 33 I/O with dual analog comparators is a precise fit. For modern designs, prefer the PIC16F877-20I/PQ which adds Flash reprogrammability, 10-bit ADC, and PWM at near-identical pricing. Use the PIC16C662-20/PQ (commercial temperature) for non-industrial environments where cost matters most. The PIC16C662-20I/PT variant fits designs requiring TQFP footprint, and the PIC16C662-04I/PQ serves low-speed applications needing only 4 MHz. All share the same PIC16C mid-range architecture and the same MPLAB XC8 toolchain, enabling rapid code reuse across variants.

Comparison with Alternatives

Parameter This Product PIC16C662-20I/PT PIC16C662-20I/L PIC16C662-20/PQ PIC16C662-20E/PQ PIC16F877-20I/PQ
Package 44-pin MQFP (PQ) 44-pin TQFP (PT) - similar 44-pin PLCC (L) - differs 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Max Clock Frequency 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
Program Memory Type OTP (7 KB) OTP (7 KB) OTP (7 KB) OTP (7 KB) Flash (14 KB)
Temperature Range -40 C to +85 C (Industrial) -40 C to +85 C (Industrial) 0 C to +70 C (Commercial) -40 C to +125 C (Extended) -40 C to +85 C (Industrial)
RAM Size 176 bytes 176 bytes 176 bytes 368 bytes
I/O Pins 33 33 33 33
Analog Comparators 2 2 2 2 + 10-bit ADC
Lifecycle Status NRND NRND NRND Active
Qty-1 Unit Price (USD, as of 2026-09-18) $8.95 $9.20 $7.85 $9.50

Key Differentiators

  • Industrial temperature grade in MQFP package (vs PIC16C662-20/PQ)
  • Dual analog comparators with programmable reference (vs PIC16F877-20I/PQ)
  • Single 5V supply operation simplifies design (vs PIC16C662-04I/PQ)
  • OTP memory for production cost efficiency (vs PIC16F877-20I/PQ)

Design Notes

Decouple each VDD pin (pins 11, 21, 31, 41) with a 100 nF ceramic capacitor placed within 5 mm of the IC pin, and add a single 10 uF bulk tantalum or ceramic capacitor near the device. The PIC16C662 draws approximately 15 mA active at 20 MHz; ensure the 5V regulator can source the I/O sum plus core current. The analog comparator inputs benefit from a clean AVDD separate from the digital VDD when used for precision thresholding.

Because the PIC16C662 program memory is OTP, every firmware revision requires a fresh device. Plan OTP device inventory carefully, and use a windowed CERQUIN package (PIC16C662-20/JW) for prototype development. The MCLR/VPP pin must be pulled up through a resistor (typically 10 kOhm) and have a 100 nF capacitor for power-on-reset; do not leave it floating.

Place the 20 MHz crystal or resonator close to OSC1 (pin 1) and OSC2 (pin 2), with short, symmetric traces to minimize parasitic capacitance. The MQFP-44 package has a thermal pad which should be soldered to a copper pour on the PCB for improved heat dissipation - though power dissipation is modest, the thermal pad reduces ground bounce. Keep analog comparator traces (RA0-RA3) away from high-current digital switching lines.

When using the USART at high baud rates with long PCB traces, add a series resistor (22-100 Ohm) near the TX pin to dampen ringing. For SPI, observe the 33 pF maximum load specification and use a buffer if driving multiple slaves. The I2C bus requires pull-up resistors (typically 4.7 kOhm at 400 kHz) and benefits from a buffer when cable lengths exceed 30 cm.

Compliance Information

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Lead Free
Unknown
Halogen Free
Unknown
Conflict Minerals
Unknown

Compliance data not provided in the verified web data; verify with Microchip's product compliance declarations. The part is industrial temperature rated but not AEC-Q100 qualified - for automotive under-hood use, migrate to PIC18F family.

Data verified on: 2026-09-18 β€” data verified and curated by XAIPART's component engineering team

Related Searches

PIC16C662-20I/PQ datasheet PIC16C662-20I/PQ price Microchip PIC16C662 44-pin MQFP PIC16C662 OTP 7KB microcontroller PIC16C662 20MHz industrial temperature PIC16C662 vs PIC16F877 PIC16C662 industrial control application PIC16C662-20I/PQ drop-in replacement buy PIC16C662-20I/PQ in stock what is OTP microcontroller PIC16C662 pinout 44-pin MQFP PIC16C662 analog comparator reference voltage

Related Components & Terms

Microchip Technology PIC16C662 PIC16C662-20I/PQ PIC16C662-20I/PT PIC16C662-20I/L PIC16C662-20/PQ PIC16C662-20E/PQ PIC16C662-04I/PQ PIC16F877 8-bit microcontroller OTP EPROM RISC architecture MQFP-44 TQFP-44 PLCC-44 RoHS AEC-Q100 ICSP USART SSP analog comparator industrial temperature range NRND
Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details