PIC16F1704-E/ST - 8-Bit 32MHz 7KB Flash MCU 14-TSSOP | Microchip
MPN: PIC16F1704-E/ST ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.58 | $1.58 |
| 10 | $1.42 | $14.20 |
| 100 | $1.27 | $127.00 |
| 500 | $1.13 | $565.00 |
| 1,000 | $1.02 | $1,020.00 |
PIC16F1704-E/ST Overview
What is a PIC16 microcontroller? PIC16 microcontrollers are 8-bit reduced-instruction-set computing (RISC) microcontrollers from Microchip Technology, positioned between the baseline PIC10/12 families and the mid-range PIC18 line, and belong to the broader category of microcontrollers -> microcontrollers (MCU) -> 8-bit MCU -> RISC MCU -> embedded processors -> semiconductor. They are widely adopted for general-purpose embedded control because of their deterministic instruction execution, mature toolchain (MPLAB X IDE + XC8 compiler), and a deep ecosystem of application notes and code examples.
The PIC16F1704 integrates Microchip's Intelligent Analog features directly on-die, including a high-speed comparator, a 10-bit ADC, two operational amplifiers, an 8-bit DAC, a Zero-Cross Detect (ZCD) module, and Complementary Output Generator (COG). Additional Core Independent Peripherals (CIP) include Configurable Logic Cells (CLC) and Peripheral Pin Select (PPS), which allow many peripherals to be remapped to a broad set of I/O pins, increasing layout flexibility. Twelve general-purpose I/O pins are exposed alongside EUSART, I2C, and SPI serial interfaces.
The device belongs to the XLP (eXtreme Low Power) family, supporting sleep currents in the nanoamp range and active currents in the microamp range depending on clock configuration. Power is supplied from a single rail between 1.8 V and 5.5 V. Built-in peripherals include brown-out reset, power-on reset, watchdog timer, and PWM, enabling stand-alone operation without external supervision components.
Typical applications include consumer white goods, low-cost sensor conditioning boards, LED lighting controllers, battery-powered IoT edge nodes, handheld instrumentation, and automotive body and accessory subsystems. The combination of on-chip op-amps and a 10-bit ADC allows direct interfacing with analog sensors without an external signal chain.
When designing with the PIC16F1704, reserve adequate decoupling capacitance (100 nF close to VDD plus a bulk 1-10 µF) and follow Microchip's TSSOP-14 PCB layout recommendations. Use the PPS feature to optimize PCB routing, and validate AC/DC characteristics against the PIC16(L)F1704/8 datasheet before production release.
This page synthesizes distributor pricing, drop-in alternatives from the PIC16F170X family and cross-brand candidates, application guidance, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC16F1704-E/ST — 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 PIC16F1704-E/ST (same form factor and footprint) — differing in Package, Operating Temperature, ADC, Core Architecture, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1704-I/ST
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1705-I/ST
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1713-E/ST
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1503-I/ST
✅ Drop-In✓ In Stock
$0.94 / Unit
View Datasheet →PIC16F1613-E/ST
✅ Drop-In✓ In Stock
$0.85 / Unit
View Datasheet →PIC16F1574-E/ST
✅ Drop-In✓ In Stock
$0.98 / Unit
View Datasheet →PIC16F1704-E/ST Maximum Ratings & Electrical Characteristics
| Core | 8-bit PIC RISC |
| Core Architecture | Enhanced mid-range PIC16 |
| Maximum CPU Frequency | 32 MHz |
| Instruction Set Width | 14-bit |
| Program Memory (Flash) | 7 KB (4K x 14 words) |
| SRAM | 512 bytes |
| Number of I/O Pins | 12 |
| Supply Voltage (VDD) | 1.8 V to 5.5 V |
| Operating Temperature | -40 °C to +125 °C (E grade) |
| ADC | 10-bit |
| DAC | 8-bit |
| Op-Amps | 2 on-chip |
| Comparators | High-speed comparator |
| Zero-Cross Detect (ZCD) | Yes |
| Complementary Output Generator (COG) | Yes |
| Configurable Logic Cells (CLC) | Yes |
| Peripheral Pin Select (PPS) | Yes |
| PWM Modules | Yes (CCP/PWM) |
| Serial Interfaces | EUSART, I2C, SPI |
| Package | 14-pin TSSOP (4.40 mm body width) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant (per Microchip product page) |
| Lead-Free | Yes |
PIC16F1704-E/ST Pin Configuration
| Pin 1 | RA3/AN3/C1IN+/C2IN+/ZCD/COG1FLT/CLC1IN0/SS — Bidirectional I/O; analog input; comparator input; ZCD input; COG fault; CLC input; SPI slave select |
| Pin 2 | RA4/AN4/C1OUT/T0CKI/COG1RIS/CLC2IN0 — Bidirectional I/O; analog input; comparator output; Timer0 clock; COG rising input; CLC input |
| Pin 3 | RA5/MCLR/VPP/AN5/COG1FIS/CLC3IN0 — Bidirectional I/O; master clear (reset) input; programming voltage; analog input; COG falling input; CLC input |
| Pin 4 | VDD — Positive power supply (1.8 V to 5.5 V) |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB4/AN6/SDI/SDA/T1G/COG1/PWM4/CLC4IN0 — Bidirectional I/O; analog input; SPI data in; I2C data; Timer1 gate; COG; PWM; CLC input |
| Pin 7 | RB5/AN7/RX/DT/CCP1/PWM5/CLC4IN1 — Bidirectional I/O; analog input; EUSART RX; CCP1/PWM; CLC input |
| Pin 8 | RB6/SCK/SCL/CCP2/PWM6/CLC5IN0 — Bidirectional I/O; SPI clock; I2C clock; CCP2/PWM; CLC input |
| Pin 9 | RB7/TX/CK/DAC1OUT2/PWM3/CLC5IN1 — Bidirectional I/O; EUSART TX; DAC output; PWM; CLC input |
| Pin 10 | RA6/OSC2/CLKOUT/COG1CLK/CLC6IN0 — Bidirectional I/O; crystal oscillator output; clock out; COG clock; CLC input |
| Pin 11 | RA7/OSC1/CLKIN/COG1RIS/CLC6IN1 — Bidirectional I/O; crystal oscillator input; external clock in; COG rising input; CLC input |
| Pin 12 | RA0/AN0/C1IN0-/DAC1OUT1/OPA1IN+/CLC1IN1 — Bidirectional I/O; analog input; comparator input; DAC output; op-amp non-inverting input; CLC input |
| Pin 13 | RA1/AN1/C1IN0-/OPA1IN-/VREF+/CLC2IN1 — Bidirectional I/O; analog input; comparator input; op-amp inverting input; voltage reference +; CLC input |
| Pin 14 | RA2/AN2/OPA1OUT/C2OUT/COG1FLT/CLC3IN1 — Bidirectional I/O; analog input; op-amp output; comparator output; COG fault; CLC input |
Typical Applications
PIC16F1704-E/ST is suitable for 6 applications: Consumer Appliance Control, LED Lighting Driver and Dimming Controller, Battery-Powered IoT Edge Sensor Node, Handheld Instrumentation and Metering, Automotive Body and Accessory Modules, Industrial Sensor Conditioning Board.
Consumer Appliance Control
The PIC16F1704-E/ST's on-chip op-amps, 10-bit ADC, 8-bit DAC, and PWM modules allow direct interface to temperature, current, and triac-control sensing elements in white goods and small appliances. The -E extended temperature grade (-40 °C to +125 °C) supports under-cabinet and inside-enclosure deployments. The TSSOP-14 package fits tight control boards behind user panels, and the 32 MHz core drives state-machine control loops well below 1 ms. According to Microchip's PIC16F170X application notes, the CLC and PPS features reduce external glue logic, lowering BOM cost in cost-sensitive appliance SKUs.
Recommended
LED Lighting Driver and Dimming Controller
The PIC16F1704-E/ST is well suited to dimmable LED driver controllers, where its Zero-Cross Detect (ZCD) module detects mains zero crossings for phase-cut dimming while the COG (Complementary Output Generator) drives high-resolution PWM signals for flicker-free dimming. The 7 KB Flash stores color-mixing and thermal-foldback algorithms, and the 32 MHz CPU computes lighting transitions within microseconds. The 14-TSSOP footprint drops onto small driver PCBs alongside power MOSFETs and the MCP1700 LDO regulator, simplifying layout and keeping BOM cost low.
Recommended
Battery-Powered IoT Edge Sensor Node
The PIC16F1704-E/ST's eXtreme Low Power (XLP) technology delivers nanoamp-range sleep currents, ideal for coin-cell powered wireless sensor nodes. The on-chip 10-bit ADC reads battery voltage and analog sensors while the EUSART/SPI/I2C interfaces connect to sub-GHz transceivers such as the MRF89XA. PPS allows remapping peripheral functions to free up ADC-capable pins for sensor channels. With a 1.8 V to 5.5 V supply range, the MCU runs directly from a 2xAA or single Li-coin cell, simplifying power-tree design.
Recommended
Handheld Instrumentation and Metering
Portable meters and handheld instruments benefit from the PIC16F1704-E/ST's on-chip op-amps that amplify bridge sensors without external instrumentation amplifiers, reducing cost and board area. The 8-bit DAC generates stimulus waveforms or bias voltages, while the 10-bit ADC reads the conditioned signal at up to 30 ksps. The TSSOP-14 package fits inside compact enclosures, and the extended -40 °C to +125 °C temperature range supports outdoor and industrial use cases. The 7 KB Flash stores calibration tables and unit-conversion routines with room to spare.
Recommended
Automotive Body and Accessory Modules
The PIC16F1704-E/ST's extended temperature grade and on-chip Intelligent Analog peripherals support automotive body and accessory subsystems such as seat controllers, mirror adjusters, ambient lighting, and HVAC flaps. The PWM and COG modules drive FET bridges for small motors, while the ZCD enables AC-mains-zero-cross sensing for solid-state relay replacement. The 14-TSSOP package fits the dense PCB layouts typical of body controllers. For OEM-grade AEC-Q100 qualification, choose an explicitly automotive-grade PIC16 variant instead.
Recommended
Industrial Sensor Conditioning Board
Industrial 4-20 mA loops, RTD conditioning boards, and bridge-sensor signal chains use the PIC16F1704-E/ST's two on-chip op-amps to amplify differential sensors and the 10-bit ADC to digitize the result. The high-speed comparator triggers alarms without CPU intervention, while the CLC cells implement glue logic such as window comparators or PWM-to-voltage converters. The TSSOP-14 package and -E temperature grade suit DIN-rail and field-mounted enclosures. PPS simplifies PCB layout by allowing peripheral signals to be reassigned to alternate pins.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1704-E/ST — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1704-I/ST | PIC16F1705-I/ST | PIC16F1713-E/ST | PIC16F1503-I/ST | PIC16F1613-E/ST | PIC16F1574-E/ST |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 14-TSSOP | 14-TSSOP - same | 14-TSSOP - same | 14-TSSOP - same | 14-TSSOP - same | 14-TSSOP - same | 14-TSSOP - same |
| Core | 8-bit PIC16 (32 MHz) | 8-bit PIC16 (32 MHz) | 8-bit PIC16 (32 MHz) | 8-bit PIC16 (32 MHz) | 8-bit PIC16 (20 MHz) | 8-bit PIC16 (32 MHz) | 8-bit PIC16 (32 MHz) |
| Flash Memory | 7 KB (4K x 14) | 7 KB (4K x 14) | 14 KB (8K x 14) | 7 KB (4K x 14) | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) | 7 KB (4K x 14) |
| SRAM | 512 bytes | 512 bytes | 1024 bytes | 512 bytes | 256 bytes | 256 bytes | 512 bytes |
| Number of I/O | 12 | 12 | 12 | 12 | 12 | 12 | 12 |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| On-chip Op-Amps | 2 | 2 | 2 | 2 | 0 | 2 | 0 |
| ZCD + COG + CLC | Yes (all) | Yes (all) | Yes (all) | Yes (all) | No | Partial (ZCD/COG only) | Partial (16-bit PWM) |
| Temperature Grade | Extended -40 °C to +125 °C | Industrial -40 °C to +85 °C | Industrial -40 °C to +85 °C | Extended -40 °C to +125 °C | Industrial -40 °C to +85 °C | Extended -40 °C to +125 °C | Extended -40 °C to +125 °C |
| Approx. Unit Price (1k qty, USD) | $1.02 | $0.95 | $1.15 | $1.10 | $0.78 | $0.92 | $0.96 |
Key Differentiators
- On-chip Intelligent Analog: 2 op-amps, 10-bit ADC, 8-bit DAC, ZCD, COG, CLC (vs PIC16F1503-I/ST)
- Extended temperature grade (-E) included in part number (vs PIC16F1704-I/ST)
- Larger Flash and SRAM than PIC16F1613 family (vs PIC16F1613-E/ST)
- Same TSSOP-14 footprint as cost-optimized PIC16F1503 (vs PIC16F1503-I/ST)
Design Notes
Decouple VDD with a 100 nF ceramic capacitor placed within 3 mm of the VDD pin (pin 4) and add a bulk 1 µF to 10 µF capacitor on the same net. The PIC16F1704-E/ST's ADC and comparator accuracy depends on a clean VDD; place the 100 nF cap on the VDD side of the ferrite bead if a bead is used for noise isolation. Per Microchip PIC16F170X hardware design checklist, AVdd (when present on the package) must be tied directly to VDD with its own 100 nF decoupling cap to minimize ADC reference noise.
Use a TSSOP-14 land pattern with 0.65 mm pitch; recommended pad dimensions are 1.5 mm length × 0.4 mm width per JEDEC MO-153. For TSSOP packages exposed to high humidity or outdoor environments, add a solder mask sliver between adjacent pads to prevent solder bridges. Route the ICSPDAT/ICSPCLK traces (on RB7/RB6) directly to a 6-pin ICSP header so the device can be reprogrammed without removing it from the board.
Do not forget to configure unused pins as outputs (low) or inputs with internal weak pull-ups to avoid floating-pin current draw. When using the on-chip op-amps, observe the input common-mode range (0 V to VDD-1.4 V typical) and add an external clamp diode if the input can exceed VDD during transients. The MCLR pin (pin 3) must be pulled high via a 10 kΩ resistor for normal operation; leaving it floating causes intermittent resets. Always check the device errata sheet for the PIC16F1704 silicon revision used in production.
Place the PIC16F1704-E/ST so that analog input pins (ANx on RA0-RA3) connect to the sensor with the shortest possible trace. Use a ground guard ring around the analog input traces and route them over a continuous ground pour to minimize coupling from switching nodes. According to Microchip's analog layout guidelines, keep digital switching traces (PWM, EUSART, SPI) at least 5 mm away from analog traces, and use 90-degree or 45-degree trace bends rather than sharp right angles to control impedance.
Compliance Information
RoHS and REACH compliance confirmed per Microchip product page. E-grade is industrial (-40 °C to +125 °C), not AEC-Q100 automotive qualified - choose an AEC-Q100 part for automotive OEM programs. Lead-free and halogen-free per Microchip material declaration.