Microchip PIC16F684-I/ST 8-Bit Microcontroller: Features and Application Design Guide
The PIC16F684-I/ST from Microchip Technology is a high-performance, cost-effective 8-bit microcontroller built on an enhanced mid-range core. This powerful yet compact MCU packs a significant number of advanced peripherals into a small 14-pin package, making it an ideal solution for a vast array of embedded control applications, from consumer appliances to automotive subsystems and industrial automation.
Key Features and Architectural Overview
At the heart of the PIC16F684 lies an enhanced Harvard architecture core with a 14-bit wide instruction set, enabling highly efficient C-code optimization and a compact programming footprint. Operating at a maximum frequency of 20 MHz, it delivers 5 MIPS of performance, providing ample processing power for complex control tasks.
Its standout features include:
Ample Memory: It is equipped with 3.5 KB of self-read/write Flash program memory, 128 bytes of RAM, and 256 bytes of EEPROM data memory for non-volatile storage of critical parameters.
Advanced Analog Capabilities: A integrated 10-bit Analog-to-Digital Converter (ADC) with up to 11 input channels allows for precise sensor data acquisition (temperature, voltage, etc.). It also features two analog comparators with programmable references.
Enhanced PWM and Timers: The Enhanced Capture/Compare/PWM (ECCP) module offers multiple modes of operation for sophisticated control of motors (e.g., brushless DC) and power converters. Combined with multiple timers, it provides precise timing and waveform generation.
Durable I/O and Package: The device boasts 11 high-current source/sink I/O pins, organized into two ports. These pins are robust and can interface directly with LEDs and other peripherals. It is offered in a space-saving 14-pin TSSOP (ST) package, suitable for dense PCB layouts.
Application Design Guide and Considerations

Designing with the PIC16F684 requires a methodical approach to leverage its full potential.
1. Power Supply and Decoupling: Ensure a stable and clean power supply. Place 100nF decoupling capacitors as close as possible to the VDD and VSS pins to filter high-frequency noise, which is critical for the internal ADC's accuracy.
2. Clock Configuration: The MCU supports multiple clock modes: precise external crystals/resonators or internal high-precision internal (8MHz) and low-power (31kHz) oscillators. For cost-sensitive applications requiring moderate timing accuracy, the internal oscillator is often sufficient, eliminating external components.
3. Analog Design Best Practices: When using the ADC:
Use a separate, quiet ground plane for analog components.
Impedance matching of the signal source is crucial; a simple RC filter on the input pin can help eliminate aliasing.
During ADC conversion, minimize digital switching on other I/O pins to reduce noise coupling.
4. Utilizing the ECCP Module: For motor control applications, configure the ECCP module in the appropriate PWM mode (e.g., half-bridge or full-bridge). Ensure the external MOSFET or transistor drivers have sufficient current capability and switching speed. Implement dead-band control to prevent shoot-through currents in bridge circuits.
5. Low-Power Design: For battery-operated devices, leverage the SLEEP mode and the ability to switch between clock sources. The microcontroller can be woken from sleep by various interrupts (e.g., pin change, timer overflow), allowing it to perform a task quickly and return to a low-power state, dramatically extending battery life.
6. Development Tools: Accelerate development using Microchip's MPLAB X IDE and the PICKit™ programmer/debugger. These tools provide a complete environment for writing code (in C or assembly), simulating, and debugging hardware in real-time.
ICGOODFIND: The PIC16F684-I/ST stands out as a remarkably versatile and powerful 8-bit microcontroller. Its rich peripheral set, including a high-resolution ADC, robust ECCP, and generous memory, all housed in a minimal footprint, provides an exceptional value proposition for designers. By following sound design practices for power, analog, and PWM applications, engineers can reliably deploy this MCU to create efficient, sophisticated, and cost-optimized embedded solutions for a multitude of modern electronic products.
Keywords: PIC16F684, 8-bit Microcontroller, ECCP Module, ADC, Embedded Design
