Microchip Technology

PIC12C509-04/P - 8-Bit 4MHz OTP MCU 1.5KB | Microchip

MPN: PIC12C509-04/P βœ“ Active
In Stock Ships in 1-3 business days
2.5 V to 5.5 V Vdss 25 mA per pin Id 8-pin PDIP (300 mil) Package 4 MHz Speed OTP (One-Time Programmable) EPROM Memory
From $1.18 USD / Unit
MOQ: 1 |
Price updated: 2026-09-14
Volume Pricing
Qty Unit Price Extended
1 $1.95 $1.95
10 $1.78 $17.80
100 $1.55 $155.00
500 $1.32 $660.00
1,000 $1.18 $1,180.00
ℹ️ All prices are in USD

PIC12C509-04/P Overview

The Microchip Technology PIC12C509-04/P is an 8-bit CMOS one-time-programmable (OTP) microcontroller from the baseline PIC12C family, packaged in a 8-pin PDIP through-hole format. It executes instructions in 200 ns at a 4 MHz clock rate and integrates 1.5 KB (1K x 12) of OTP program memory, 41 bytes of data RAM, and 6 general-purpose I/O pins on an 8-pin footprint.

An 8-bit microcontroller is a single-chip computer that processes data in 8-bit-wide chunks using a Harvard or modified-Harvard architecture; in the Microchip taxonomy it sits under the PIC family, which is itself a sub-family of microcontrollers, embedded controllers, and ultimately standard ICs. OTP variants are programmed once by the user or contract manufacturer, in contrast to flash-based PICs that allow field re-programming, which makes them attractive for low-cost, high-volume, fixed-function applications.

Key features include a RISC core with 33 single-cycle instructions, a programmable 4 MHz internal/external oscillator option, a watchdog timer with its own on-chip RC oscillator for reliable recovery, power-saving Sleep mode, and a wide operating voltage range of 2.5 V to 5.5 V. The 8-pin footprint gives 6 usable I/O lines plus VDD and VSS, with each I/O capable of sourcing up to 25 mA for direct LED drive. The device is qualified for the standard 0 Β°C to +70 Β°C commercial temperature range (the -04 speed grade and /P PDIP suffix) and is RoHS-compliant.

Typical applications span low-cost consumer appliances, hobby/educational projects, simple sensor interfaces, and replacement of discrete logic. Designers should leave enough PCB area for the through-leads and apply decoupling capacitors within 5 mm of VDD/VSS; the MCLR pin must be tied high through a resistor for normal operation and pulled low only for in-circuit serial programming.

Drop-in alternatives for PIC12C509-04/P β€” 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 PIC12C509-04/P (same form factor and footprint) β€” differing in Package, Program Memory Size, Program Memory Type, Comparator, Core Architecture.

Microchip Technology
Package: 8-pin PDIP (0.300 inch / 7.62 mm)
Program Memory Size: 768 B (512 x 12 words)
Comparator: None
Microchip Technology
Package: PDIP-8 (300 mil)
Program Memory Size: 768 B (512 x 12 words)
Program Memory Type: OTP (One-Time-Programmable)

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

PIC12C509A-04/P

βœ… Drop-In
πŸ“¦ 8-pin PDIP
Same 8-pin PDIP footprint, same 1.5KB OTP memory, 4MHz /04 speed grade, die revision (A) with improved oscillator

πŸ“‹ Reference alternative (not in catalog)

PIC12C508A-04/P

βœ… Drop-In
Microchip Technology
πŸ“¦ 8-pin PDIP
PIC 8-bit RISC (Harvard) Β· OTP (One-Time-Programmable) Β· 768 B (512 x 12 words) Β· 25 B Β· 4 MHz (1 us instruction cycle) Β· 33 single-word/single-cycle instructions Β· 6 pins Β· 1 x 8-bit TMR0 with programmable prescaler

βœ“ In Stock

$0.95 / Unit

View Datasheet β†’

PIC12F509-I/P

βœ… Drop-In
πŸ“¦ 8-pin PDIP
Same 8-pin PDIP footprint, flash-based (reprogrammable), up to 20MHz (vs 4MHz), adds internal 4/8MHz oscillator

πŸ“‹ Reference alternative (not in catalog)

PIC12F508-I/P

βœ… Drop-In
πŸ“¦ 8-pin PDIP
Same 8-pin PDIP footprint, flash-based, 768B program memory, 25 RAM, 20MHz, internal 4/8MHz oscillator

πŸ“‹ Reference alternative (not in catalog)

PIC12C508-04/P

βœ… Drop-In
Microchip Technology
πŸ“¦ 8-pin PDIP
PIC 8-bit RISC Β· Harvard, 12-bit instruction word Β· OTP (One-Time Programmable) EPROM Β· 768 B (512 x 12 words) Β· 25 B Β· 4 MHz Β· 200 ns (single-cycle at 4 MHz) Β· 2.5 V to 5.5 V (typical 3.3 V / 5 V)

βœ“ In Stock

$1.62 / Unit

View Datasheet β†’

PIC12C509-04/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC 8-bit RISC
Core Sub-family Baseline PIC12C
Program Memory Type OTP (One-Time Programmable) EPROM
Program Memory Size 1.5 KB (1K x 12)
Data RAM 41 bytes
Data EEPROM Not present
Maximum CPU Clock 4 MHz
Instruction Cycle Time 200 ns (4 MHz, 1:1 clock ratio for /04 variant)
Operating Voltage Range 2.5 V to 5.5 V
I/O Pins 6 (of 8 package pins; 2 are VDD/VSS)
I/O Sink/Source Current 25 mA per pin
Timers 1 x 8-bit Timer0 with watchdog
Watchdog Timer Yes, dedicated on-chip RC oscillator
ADC Not present
Comparator Not present
ICSP (In-Circuit Serial Programming) Yes (2-wire)
Package 8-pin PDIP (300 mil)
Mounting Type Through-Hole
Operating Temperature Range 0 Β°C to +70 Β°C (commercial)
RoHS Status Compliant

PIC12C509-04/P Pin Configuration

DIP-8 Package Pinout Diagram DIP-8 8-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 8 2 7 3 6 4 5 DIP-8
Pin 1 GP5/OSC1/CLKIN β€” GPIO GP5 / external oscillator input / external clock input
Pin 2 GP4/OSC2/CLKOUT β€” GPIO GP4 / external oscillator output / clock output
Pin 3 GP3/MCLR/VPP β€” GPIO GP3 / Master Clear reset (active low) / programming voltage
Pin 4 GP2/T0CKI β€” GPIO GP2 / Timer0 external clock input
Pin 5 GP1 β€” GPIO GP1
Pin 6 GP0 β€” GPIO GP0
Pin 7 VSS β€” Ground reference
Pin 8 VDD β€” Positive supply (2.5 V to 5.5 V)

Typical Applications

PIC12C509-04/P is suitable for 6 applications: Low-Cost Consumer Appliance Controller, Educational Microcontroller Learning Platform, Discrete-Logic Replacement / Glue Controller, Simple Sensor Interface / Signal Conditioner, Automotive Interior Lighting Module (Pre-CAN Era Style), Battery-Operated IoT Edge Node (Sleep-Duty Cycle).

🏭

Low-Cost Consumer Appliance Controller

The PIC12C509-04/P fits small household appliances (toasters, fans, simple timers) because of its 1.5 KB OTP program memory, 6 GPIO pins (sufficient for relay, button, LED, and buzzer), and 25 mA per-pin drive that can source LEDs without a driver. With a 4 MHz internal RC plus external crystal option, the device runs a fixed state-machine cleanly. At 2.5-5.5 V it operates directly from 3.3 V or 5 V rails, while OTP keeps BOM cost low in mass production. The 8-pin PDIP through-hole package is friendly to hand-soldered prototypes and small-batch runs.

πŸŽ“

Educational Microcontroller Learning Platform

The PIC12C509-04/P is a popular microcontroller for university and hobbyist courses because of its simple baseline RISC architecture (33 instructions), small 1.5 KB memory that forces disciplined coding, and 8-pin PDIP package that drops into a breadboard or DIP socket. Students learn timer interrupts, watchdog reset, and Sleep-mode power saving on a real production silicon without the complexity of peripherals. The /04 4 MHz grade provides a 200 ns instruction cycle, easy to trace by hand. The MCLR pin supports 2-wire ICSP, allowing instructors to demonstrate programming workflows.

πŸ”§

Discrete-Logic Replacement / Glue Controller

Replacing 4-6 discrete 74HC gates with one PIC12C509-04/P shrinks PCB area and gives designers a programmable state machine instead of hard-wired logic. With 6 GPIO and 4 MHz CPU, it can scan a 4-key keypad, drive a small LED, and toggle a relay in well under 1 ms. The 41-byte RAM is enough for a lookup-table decoder. OTP memory and 25 mA per-pin drive let it switch relays or low-side MOSFETs directly. The 8-pin PDIP footprint and 0-70 Β°C commercial range suit industrial control panels and instrumentation front-ends.

🧩

Simple Sensor Interface / Signal Conditioner

The PIC12C509-04/P can serve as a low-cost sensor interface (RTD, thermistor, or humidity sensor digitizer) where the on-chip Timer0 measures RC charge time to within 1% and the 4 MHz CPU computes linearization. Six GPIO is sufficient for sensor power-gate, sense input, alert LED, and 1-wire output. The 2.5 V minimum supply lets it run directly from a single Li coin cell. The /04 speed grade ensures deterministic 200 ns cycle timing for sensor read. 41 bytes RAM easily holds calibration constants.

πŸš—

Automotive Interior Lighting Module (Pre-CAN Era Style)

For low-current automotive interior lighting (door-step lamps, vanity LEDs, courtesy lights), the PIC12C509-04/P provides 6 GPIO that can PWM multiple LEDs through MOSFET drivers at 4 MHz. 25 mA per-pin source lets it drive small LEDs directly, and 1.5 KB of code supports smooth fade-in/fade-out ramps. Note that this part lacks AEC-Q100 qualification; for new automotive designs Microchip recommends PIC16F1xxx AEC-Q100 qualified parts. Use the /04 grade's deterministic 200 ns timing for repeatable PWM periods.

πŸ“±

Battery-Operated IoT Edge Node (Sleep-Duty Cycle)

In battery-powered sensor edge nodes, the PIC12C509-04/P's Sleep mode (current at the Β΅A level) combined with watchdog wakeup yields years of life on a CR2032. The 4 MHz /04 clock provides fast wake-and-process cycles (200 ns per instruction) so the CPU spends most of its time asleep. 41 bytes RAM and 6 GPIO are enough for a single sensor read and an interrupt-driven wake. The 2.5 V minimum supply operates directly from a depleted 3 V coin cell. OTP keeps BOM cost minimal in fixed-function sensor pucks.

Recommended Products Summary

PIC12C508A-04/P Microchip Technology Used in: Low-Cost Consumer Appliance Controller PIC12F509-I/P Flash upgrade path if firmware tuning is required Used in: Low-Cost Consumer Appliance Controller, Educational Microcontroller Learning Platform, Simple Sensor Interface / Signal Conditioner, Automotive Interior Lighting Module (Pre-CAN Era Style), Battery-Operated IoT Edge Node (Sleep-Duty Cycle) PIC12C508-04/P Microchip Technology Used in: Educational Microcontroller Learning Platform PIC12F508-I/P Flash variant for late-stage firmware tweaks Used in: Discrete-Logic Replacement / Glue Controller PIC12C509A-04/P Improved die revision with same logic-replacement role Used in: Discrete-Logic Replacement / Glue Controller, Automotive Interior Lighting Module (Pre-CAN Era Style) PIC12C508A-04E/P Microchip Technology Used in: Simple Sensor Interface / Signal Conditioner PIC10F200-I/P Microchip Technology Used in: Battery-Operated IoT Edge Node (Sleep-Duty Cycle)
What is the program memory size of PIC12C509-04/P?
The PIC12C509-04/P contains 1.5 KB (1K x 12) of OTP EPROM program memory, according to the Microchip datasheet. It provides room for roughly 1000 single-word PIC instructions. This size suits small fixed-function control loops but is too small for protocol stacks or large state machines, where PIC12F509 or PIC16F1xxx flash parts are more appropriate.
What is the operating voltage range of PIC12C509-04/P?
The PIC12C509-04/P operates from 2.5 V to 5.5 V, per the Microchip datasheet, supporting both 3.3 V and 5 V rails. The device is fully static, so the clock can be stopped without losing internal state, which simplifies low-power designs where the CPU idles in Sleep mode.
What is the difference between PIC12C509-04/P and PIC12F509-I/P?
The PIC12C509-04/P uses one-time-programmable (OTP) EPROM with a 4 MHz maximum clock, while the PIC12F509-I/P uses flash memory, runs up to 20 MHz, and adds 64 bytes of EEPROM and an internal 4/8 MHz oscillator. Both share the same baseline PIC12 instruction set and 8-pin PDIP footprint, so pin-compatible firmware migration is possible but the programming algorithm differs.
How much RAM does PIC12C509-04/P have?
The PIC12C509-04/P provides 41 bytes of general-purpose data RAM, according to the Microchip datasheet. 8 of these bytes are shared with the 8-bit Timer0 register file and the PC stack. Because 41 bytes is very small, design code should declare variables conservatively and avoid deep call chains that exceed the 2-level hardware stack.
Does PIC12C509-04/P have ADC or comparator peripherals?
No, the PIC12C509-04/P integrates no ADC and no analog comparator, per the Microchip datasheet. Analog measurements must be handled by an external ADC or by a slope/RC-timing trick using Timer0. Designers needing on-chip ADC should move to PIC12F675 or PIC16F1xxx series.
Where can I buy PIC12C509-04/P and what is the lead time?
As of 2026-09-14, the PIC12C509-04/P is stocked at DigiKey (DigiKey part 249084) and Mouser, with on-site stock available for immediate shipment in tube packaging. Bulk and reel variants typically ship within 2-4 weeks from the manufacturer. Check the live distributor listing for current lead times.
What is the current price of PIC12C509-04/P at 100 pieces?
As of 2026-09-14, the 100-piece unit price for PIC12C509-04/P is approximately USD 1.55 from authorized distributors such as DigiKey and Mouser. Pricing drops further at 500- and 1000-piece breaks. Volume pricing should always be confirmed at quote time, as distributor stock and FX rates can shift intraday.
Is PIC12C509-04/P still in production?
Yes, the PIC12C509-04/P is currently active in the Microchip product family, although the Microchip product page notes that a newer recommended device exists. It remains in production for industrial, consumer, and educational designs. For new designs where flash reprogrammability is desired, PIC12F509 is the modern drop-in alternative.
What is the best drop-in replacement for PIC12C509-04/P?
The PIC12F509-I/P is the best functional drop-in replacement for PIC12C509-04/P: same 8-pin PDIP footprint, same 1.5 KB program memory, same 41-byte RAM, but with flash (reprogrammable) memory and an internal 4/8 MHz oscillator. PIC12C509A-04/P is an even tighter OTP match at 4 MHz with the same die, suitable when OTP is acceptable.
PIC12C509-04/P vs PIC12C508-04/P - which is better for a fixed-function 4 MHz design?
Both parts share the 8-pin PDIP package, the 4 MHz /04 speed grade, the same RISC core, and 6 I/O pins, but the PIC12C509 has 1.5 KB program memory and the PIC12C508 has only 768 bytes. For any design that may approach 1 KB of code, PIC12C509-04/P is the safer choice; PIC12C508-04/P is suitable only for very small code (<512 instructions).
Where can I download the PIC12C509-04/P datasheet PDF?
The official Microchip datasheet for the PIC12C509 family (document 40139E) can be downloaded directly from https://ww1.microchip.com/downloads/en/DeviceDoc/40139E.pdf. The datasheet covers both PIC12C508 and PIC12C509 variants. Mirror copies also exist on third-party datasheet sites such as alldatasheet and digchip, but the Microchip URL is the authoritative source.
Where is the pinout for PIC12C509-04/P?
The 8-pin PDIP pinout is documented in the Microchip datasheet: pin 1 GP5/OSC1/CLKIN, pin 2 GP4/OSC2/CLKOUT, pin 3 GP3/MCLR/VPP, pin 4 GP2/T0CKI, pin 5 GP1, pin 6 GP0, pin 7 VSS, pin 8 VDD. Two of the eight pins (VDD and VSS) are power, leaving 6 general-purpose I/O lines.
Can I reprogram the PIC12C509-04/P after the first programming?
No, the PIC12C509-04/P uses OTP EPROM, which can be programmed exactly once. According to the Microchip datasheet, attempting to re-program the device is not supported and may damage the part. For designs that require firmware updates, switch to PIC12F509-I/P, which uses flash memory and is field-reprogrammable.
What are the key specifications of PIC12C509-04/P that engineers should know?
The PIC12C509-04/P offers 1.5 KB OTP program memory, 41 bytes RAM, 6 I/O pins, a 4 MHz maximum CPU clock (200 ns instruction cycle), and a 2.5-5.5 V supply range, all in an 8-pin PDIP package. It also includes a watchdog timer with its own RC oscillator and Sleep mode for power saving. These characteristics make it ideal for low-cost fixed-function controllers where flash reprogramming is not required.
Is PIC12C509-04/P pin-compatible with PIC12F508 or PIC12F509?
Yes, PIC12F508-I/P and PIC12F509-I/P share the same 8-pin PDIP footprint, the same pinout (GP5/OSC1 on pin 1, etc.), and the same baseline PIC12 instruction set. This makes them pin-compatible replacements on existing PCBs, although developers must verify the programming algorithm and oscillator configuration match their toolchain before mass deployment.

Engineering reference data for PIC12C509-04/P β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC12C509-04/P when you need a low-cost 8-bit PIC microcontroller in an 8-pin PDIP through-hole package, with 1.5 KB of OTP memory, 41 bytes RAM, and 6 GPIO at 4 MHz - typical for fixed-function appliances, educational kits, or discrete-logic replacement. Choose the PIC12F509-I/P instead if your firmware is still under development, requires field updates, or you need higher CPU speed (up to 20 MHz) and internal 4/8 MHz oscillator. Choose the PIC12C508-04/P (or PIC12C508A-04/P) when code size is <512 instructions and you want the cheapest pin-compatible part. All five parts share the same 8-pin PDIP footprint, so the PCB does not need to change - only the firmware, programming algorithm, and unit price differ.

Comparison with Alternatives

Parameter This Product PIC12C509A-04/P PIC12C508A-04/P PIC12F509-I/P PIC12F508-I/P PIC12C508-04/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-pin PDIP 8-pin PDIP 8-pin PDIP 8-pin PDIP 8-pin PDIP 8-pin PDIP
Program Memory 1.5 KB OTP 1.5 KB OTP 768 B OTP 1.5 KB Flash 768 B Flash 768 B OTP
Data RAM 41 bytes 41 bytes 25 bytes 41 bytes 25 bytes 25 bytes
Maximum CPU Clock 4 MHz 4 MHz 4 MHz 20 MHz 20 MHz 4 MHz
Memory Type OTP EPROM OTP EPROM OTP EPROM Flash Flash OTP EPROM
I/O Pins 6 6 6 6 6 6
Operating Voltage 2.5 V to 5.5 V 2.5 V to 5.5 V 2.5 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.5 V to 5.5 V

Key Differentiators

  • Largest OTP program memory in the 8-pin baseline PIC12 family (vs PIC12C508A-04/P)
  • OTP memory is ideal for high-volume fixed-function designs (vs PIC12F509-I/P)
  • 4 MHz speed grade is fast enough for tight control loops (vs PIC12C508-04/P)

Design Notes

Place a 100 nF decoupling capacitor as close as possible to the VDD pin (pin 8) of the PIC12C509-04/P, ideally within 5 mm. For designs switching relays or LEDs, add a 10 Β΅F bulk capacitor near the regulator. The device is fully static, so the internal state is preserved even with the clock stopped - this allows aggressive Sleep-mode duty cycling to reach Β΅A-level average current on battery-powered designs.

When using an external crystal or resonator, place it within 5-10 mm of the OSC1/OSC2 pins (pins 1-2) and guard the traces with a ground ring to reduce EMI pickup. For ICSP programming, dedicate the MCLR/VPP pin (pin 3) to a 10 kΞ© pull-up resistor and expose it (along with GP0/GP1) on a programming header. Do not place a series capacitor on MCLR in production - leave it accessible for the programmer.

The PIC12C509-04/P uses OTP EPROM, so firmware cannot be revised once programmed. Lock the code-protect bit only after final firmware is verified, because a code-protected OTP part cannot be re-programmed to recover access. The 41-byte RAM is shared with the 2-level hardware stack, so reserve at least 4 bytes for stack frames. Finally, do not drive any GPIO pin above VDD or below VSS - the absolute maximum rating is -0.3 V to +6.0 V, but exceeding VDD by even 0.5 V will forward-bias internal ESD diodes and inject current into the supply rail.

Keep the MCLR trace short and direct; long MCLR traces pick up noise and cause spurious resets. If the design is in an electrically noisy environment (near a motor or relay), add a 100 nF ceramic in parallel with the MCLR pull-up. For multi-ICSP chains (production programming of multiple boards), include a 4.7 kΞ© isolation resistor on the data line so one board's programmer does not back-drive another.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per Microchip product page. Not AEC-Q100 qualified - not suitable for new automotive designs. Lead-free PDIP package.

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

Related Searches

PIC12C509-04/P PIC12C509-04/P datasheet Microchip PIC12C509 8-bit OTP microcontroller 4MHz 8-pin PDIP microcontroller 1.5KB PIC12C509-04/P programming tutorial PIC12C509 vs PIC12F509 PIC12C509-04/P buy price what is the RAM of PIC12C509-04/P PIC12C509-04/P pinout 8-pin PDIP PIC12C509-04/P distributor stock PIC12C509-04/P vs PIC12C508-04/P

Related Components & Terms

Microchip Technology PIC12C509-04/P PIC12C509A-04/P PIC12C508A-04/P PIC12F509-I/P PIC12F508-I/P PIC12C508-04/P PIC microcontroller 8-bit RISC OTP EPROM baseline PIC12C family PDIP-8 ICSP Watchdog Timer Timer0 RoHS AEC-Q100 MCLR reset Harvard architecture instruction cycle 200ns Sleep mode I/O pin current source 25mA internal oscillator voltage regulator rail 2.5V to 5.5V
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