8-Bit PIC and AVR Microcontrollers
8-Bit PIC and AVR Microcontrollers
8-Bit PIC and AVR Microcontrollers
www.microchip.com/8bit
Overview
As a designer of innovative products, you have a desire to make technology smart, more efficient and accessible
to everyone.
Microchip has a passion for developing products and tools that make it easier for you to solve your design problems and adapt to
future needs. Our current lineup of PIC® and AVR® MCUs is the pinnacle of innovation in the 8-bit embedded space and incorpo-
rates the latest technologies to enhance system performance while reducing power consumption and development time.
The PIC and AVR MCU brands represent the two dominant architectures in the embedded design universe. With more than 45
years of combined experience developing commercially available and cost-effective MCUs, Microchip is the supplier of choice for
thousands of customers worldwide. With a strong history of innovation in 8-bit MCUs, Microchip’s extensive portfolio has the right
product for any application.
History of Inovation
2 www.microchip.com/8bit
Unified Strength
Microchip’s portfolio of more than 1,200 8-bit PIC and AVR MCUs is not only the industry’s largest, but also offers superior
flexibility and performance in areas of utmost importance to modern embedded designers.
Microchip’s online design centers provide all the necessary information to get started on a new design within a specific application
segment. Items found on the design centers include supporting products, application notes, reference designs and development
tools. Here are some design centers to help you with your next 8-bit design.
4 www.microchip.com/8bit
Home Appliance Lighting Smart Energy
Microchip helps implement the new With advanced peripheral integration Microchip is well-positioned to address
features and functionality required for and support for all lighting technologies, various requirements of smart metering
your next appliance design with MCUs a scalable Microchip solution provides systems with a combination of discrete
integrated with fault-detecting hardware significant flexibility and innovation that and highly integrated system-on-chip
for safety-critical applications. Microchip expands lighting product capabilities and solutions built around the same process-
MCUs may be used for motor control, provides product differentiation. ing platforms. This will reduce time-to-
analog sensor measurements, front panel www.microchip.com/lighting market and enable an unmatched level of
keypad control and LCD/LED displays. flexibility in addressing new requirements.
www.microchip.com/homeappliance www.microchip.com/smartenergy
The 8-bit MCU portfolio’s true strength lies in the vast array of flexible hardware peripherals
that are available to increase capability in any control system. Working together, our selection
of Core Independent Peripherals, Intelligent Analog, user interface peripherals and on-board
communications can enable system functions on MCUs with minimal code footprint, reduced
power consumption and accelerated time-to-market. Common application functions like
power and motor control, environmental sensing, system management and user interface can
be combined onto a single MCU to develop an extremely cost-effective solution. For more
details about Microchip products, please visit our website at www.microchip.com/8bit.
Product
ADC (# of bits)
DAC (# of bits)
Family
10-bit PWM
16-bit PWM
SlopeComp
Data EE (B)
CCP/ECCP
Pin Count
HSComp
RAM (B)
Comp
CWG
COG
PRG
ZCD
OPA
(KB)
PIC10(L)F3XX 6 384–896 64 HEF 8 ü ü
6 www.microchip.com/8bit
Peripheral Function Focus
LIN Capable
SMT (24-bit)
IDLE/DOZE/
16-bit PWM
CRC/SCAN
UART with
HLT (8-bit)
MathACC
Protocols
TEMP/TS
EUSART/
DIA/MAP
mTouch®
AngTMR
AUSART
Sensing
DMA/VI
I2C/SPI
(16-bit)
WWDT
HCVD
RTCC
MULT
PMD
DSM
NCO
CLC
LCD
PPS
ü ü ü ü HLT ü
ü ü ü ü
ü ü 2 ü ü ü
ü ü ü ü ü ü
ü ü ü ü ü ü
ü ü ü ü ü ü ü 2 2 ü ü ü ü ü
ü ü ü
ü ü ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü ü ü ü ü
ü ü ü ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü ü
ü ü ü ü ü ü 2 ü ü ü ü
ü ü ü ü ü ü ü ü 2 ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü ü 2 ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü ü ü ü(5) ü ü ü
ü ü ü ü ü ü ü 5 2 ü ü ü ü ü
ü ü ü ü ü ü ü ü ü ü ü 1 1 2 ü ü ü ü ü ü ü
ü ü 4 2 ü ü ü ü(5) ü ü
ü ü ü ü ü ü ü ü ü ü ü 2 ü ü ü ü ü ü ü ü
ü ü ü ü ü ü ü 2 2 ü ü ü
8 www.microchip.com/8bit
LOGIC AND MATH: Customizable Logic and Math Functions
1. Integrated combinational and sequential logic
CLC: Configurable Logic Cell
2. Customer interconnection and re-routing of digital peripherals
MULT: Hardware Multiplier MULTIPLY function of two 8-bit values with 16-bit result
1. MULTIPLY, ADD, ACCUMULATE functions of 8-/16-bit values with 35-bit result
MathACC: Math Accelerator
2. Calculates a 16-bit PID function based on configurable Kp, Ki, Kd constants with a 34-bit result
SAFETY AND MONITORING: Hardware Monitoring and Fault Detection
CRC/SCAN: Cyclical Redundancy 1. Automatically calculates CRC checksum of Program/DataEE memory for NVM integrity
Check with Memory Scan 2. General purpose 16-bit CRC for use with memory and communications data
HLT: Hardware Limit Timer and 1. Hardware monitoring for missed periodic events and fault detection of external hardware
8-bit Timer/Counter 2. General purpose 8-bit timer/counter with external reset capabilities
WWDT: System supervisory circuit that generates a reset when software timing anomalies are detected within
Windowed Watch Dog Timer a configurable critical window
COMMUNICATIONS: General, Industrial, Lighting and Automotive
ACT: Active Clock Tuning for 1. Auto-tuning of internal oscillator when connected to USB host (eliminates need for external crystal)
Crystal-Free USB 2. Tunes internal oscillator to match accuracy of external clock source
CAN: Controller Area Network Industrial- and automotive-centric communication bus
1. Industrial- and automotive-centric communication bus
LIN: Local Interconnect Network
2. Support for LIN when using the EUSART
EUSART/AUSART: Enhanced/
1. General purpose serial communications
Addressable Universal Synchronous
2. Support for LIN when using the EUSART
Asynchronous Receiver Transmitter
I2C: Inter-Integrated Circuit General purpose 2-wire serial communications
SPI: Serial Peripheral Interface General purpose 4-wire serial communications
UART: Universal Asynchronous
Supports LIN master and slave, DMX, DALI and device protocols
Receiver Transmitter
USB: Universal Serial Bus Support for full-speed USB 2.0 device profiles
USER INTERFACE: Capacitive Touch Sensing and LCD Control
HCVD: Hardware Capacitive
Simplifies implementation and reduces overhead of mTouch sensing applications
Voltage Divider
LCD: Liquid Crystal Display Highly integrated segmented LCD controller
LCD w/Charge Pump: Liquid The LCD charge pump provides proper bias voltage and contrast for the LCD regardless of the Vdd
Crystal Display with Charge Pump level.
1. Capacitive sensing for touch buttons and sliders
mTouch: Microchip Proprietary
2. Capacitive sensing for system measurements and detection (ex. water level, intrusion detection,
Capacitive Touch Technology
etc.)
LOW POWER AND SYSTEM FLEXIBILITY: XLP Low-Power Technology, Peripheral and Interconnects
Dedicated memory area for data storage of temp sensor factory calibration values, factory ID and
DIA: Device Information Area
FVR values for ADC and COMP
Moves data between memories and peripherals without CPU overhead, improving overall system
DMA: Direct Memory Access
performance and efficiency
DOZE: Power Saving Mode Ability to run the CPU core slower than the system clock used by the internal peripherals
HEF: High-Endurance Flash 128B Non-volatile data storage with high-endurance 100k E/W cycles
Ability to put the CPU core to sleep while the internal peripherals continue to operate from the
IDLE: Power Saving Mode
system clock
MAP: Memory Access Partition Customizable Flash partitioning with bootloader write protection option
PMD: Peripheral Module Disable Peripheral power disable hardware to minimize power consumption of unused peripherals
I/O pin remapping of digital peripherals for greater design flexibility and optimized
PPS: Peripheral Pin Select
board layout
VI: Vectored Interrupts Offers faster and more predictable interrupt response times, with lower software overhead
XLP: eXtreme Low Power
XLP technology devices with extreme low-power operation modes for battery/low-power applications
Technology
Product
Internal Voltage
ADC (# of bits)
DAC (# of bits)
Comparators
Temperature
16-bit PWM
SRAM (KB)
Quadrature
8-bit PWM
Pin Count
Reference
Waveform
channels)
ADC (# of
Extension
Decoder
Sensor
ATtiny4/5/9/10 6 0.5–1 0.032 10³ 4(3) ü 2
ATtiny102/104 8/14 1 0.032 10 5/8 ü ü 2
ATtiny13A 8–20 1 0.064 10 4 ü 2
ATtiny20/40 12–20 2/4 0.128/0.256 10 8/12 ü ü 2 2
ATtiny24A/44A/84A 14–20 2–8 Up to 0.512 10 8 ü ü ü ü 2 2
ATtiny25(V)/45(V)/85(V) 8–20 2–8 Up to 0.512 10 4 ü ü ü ü 4
ATtiny48/88 28–32 4/8 Up to 0.512 10 8 ü ü ü 1 1
ATtiny87/167 20–32 8/16 0.512 10 11 ü ü ü 1 2
ATtiny261A/461A/861A 20–32 2–8 Up to 0.512 10 11 ü ü ü ü
ATtiny20x/40x/80x/160x 8–24 2–16 Up to 1 10 12 ü ü ü 2
ATtiny21x/41x/81x/161x/321x 8–24 2–32 Up to 2 10 12 ü 8 ü ü 2
ATtiny441/841 14–20 4/8 Up to 0.512 10 12 ü ü ü 1 2
ATtiny1634 20 16 1 10 12 ü ü ü 2 2
ATtiny2313A 20 2 0.128 – – ü ü 2 2
ATmega8A/16A/32A 28–44 8–32 1–2 10 8 ü 2 1
ATmega8U2/16U2/32U2 32 8–32 0.5–1 – – ü ü ü 4 6
ATmega16U4/32U4 32 16/32 1/2 10 12 ü ü ü 5
ATmega48PB/88PB/168PB/328PB 32 4–32 0.5–2 10 8 ü ü ü 4 2/6(6)
ATmega320x/480x 28–48 32–48 Up to 6 10 16 ü ü ü 4 3
ATmega64A/128A 64 64–128 4 10 8 ü ü ü 2 6
ATmega164PA/324PA/644PA/1284P 44 16–128 1–16 10 8 ü ü ü 4 2/2/4
ATmega165PA/325PA/645P 44 16–64 1–4 10 8 ü ü 4 6
ATmega169PA/329PA/649P 64 16–64 1–4 10 8 ü ü 2 2
ATmega324PB 44 32 2 10 8 ü ü 2 2
ATmega640/1280/2560/1281/2561 64–100 64–256 8 10 8/16 ü ü ü 4 6/12
ATmega3290PA/6490P 100 32–64 2–4 10 8 ü ü ü 2 2
ATmega3250PA/6450P 100 32–64 2–4 10 8 ü ü ü 2 2
ATxmega A1U Family 100 64–128 4–8 12 16 ü ü 12 ü ü 8 ü ü
ATxmega A3U Family 64 64–256 4–16 12 16 ü ü 12 ü ü 7 ü ü
ATxmega A4U Family 44–49 16–128 2–8 12 12 ü ü 12 ü ü 5 ü ü
ATxmega B1/B3 Family 64–100 64–128 4–8 12 8 ü ü ü ü 2/3 ü ü
ATxmega C3/D3 Family 64 32–384 4–32 12 16 ü ü ü ü 5 ü ü
ATxmega C4/D4 Family 44–49 16–128 2–8 12 12 ü ü ü ü 4 ü ü
ATxmega E5 Family 32 8–32 1–4 12 16 ü ü 12 ü ü 3 ü ü
1: LIN port also 2: Peripheral Touch Controller 3: Only on the ATtiny5/10 4: Not on the ATtiny212/214/412/414/416 5: Only on the ATmega1281/2561 6: Only on the ATmega328PB 7: Only on the C3 an
10 www.microchip.com/8bit
Peripheral Function Focus
Logic,
Timing and Safety and
Crypto and Communications User Interface System Flexibility
Measurements Monitoring
Math
Crypto (AES/DES)
DMA Channels
Event System
SleepWalking
Sleep Modes
External Bus
16-bit Timer/
12-bit Timer
picoPower®
8-bit Timer/
Technology
Technology
Technology
with PTC (2)
Real-Time
Counters
Interface
Counter
Counter
QTouch®
Counter
IRCOM
USART
QTouch
MULT
UART
WDT
LCD
BOD
CRC
POR
USB
CCL
SPI
I2C
1 ü ü ü 4
2 ü ü 1 4
ü ü ü ü 3 ü
1 1 ü ü ü 1 1 ü 4
1 1 ü ü ü 1 1 ü 4 ü
2 ü ü ü 1 1 ü 3
1 1 ü ü ü 1 1 3 ü
1 1 ü ü ü 1(1) 1 2 4
1 1 ü ü ü 1 1 ü 4 ü
ü 1 ü ü ü ü ü ü 1(1)
1 1 ü ü 3 ü
ü 1 1 ü ü ü ü ü ü 1(1) 1 1 ü(4) ü ü 3 ü
1 2 ü ü ü 2 1 1 4 ü
1 1 ü ü ü 2 1 ü 4 ü
1 1 ü ü ü 1 1 2 3 ü
ü 2 1 ü ü ü ü 1 1 1 ü 5
ü 2 3 ü ü ü ü 2 ü 2 2 ü 6
1 1 ü ü ü ü 1 ü 1 6
ü 2 1/3(6) ü ü ü ü 1/2(6) 1/2(6) 1/2(6) ü 1(6) 6
1 5 ü ü ü ü ü ü 4 1 1 ü 3 ü
2 2 ü ü ü ü 2 1 1 ü 6
ü 2 1/1/2 ü ü ü ü 2 1 1 ü 6 ü
ü 2 3 ü ü ü ü 3 2 2 ü 6 ü
ü 2 1 ü ü ü ü 1 1 1 ü ü 5
ü 2 1 ü ü ü ü 1 1 1 ü ü 5
ü 2 4 ü ü ü ü 2/4 1 1 ü ü(5) 6
ü 2 1 ü ü ü ü 1 1 1 ü ü 5
ü 2 1 ü ü ü ü 1 1 1 ü 5
ü 8 ü ü ü ü ü ü 8 ü 4 4 ü ü ü 4 ü 5 ü
ü 7 ü ü ü ü ü ü 7 ü 2 3 ü ü 4 ü 5 ü
ü 5 ü ü ü ü ü ü 5 ü 2 2 ü ü 4 ü 5 ü
ü 2/3 ü ü ü ü ü ü 1/2 ü 1 1 ü ü ü 2 ü 5 ü
ü 5 ü ü ü ü ü 3 ü (7)
2 2 ü ü ü 5 ü
ü 4 ü ü ü ü ü 2 ü(7) 2 2 ü ü ü 5 ü
ü 3 ü ü ü ü ü ü 2 1 1 ü ü 4 ü 5 ü
nd C4
Peripheral Spotlight
Peripheral Touch Controller
The powerful tiny ONE series (tiny416/817/1617) MCUs feature the Peripheral Touch
Controller (PTC), which enables you to easily add capacitive buttons and sliders to your
embedded application. The PTC autonomously acquires and processes capacitive
touch inputs without external components. On-chip hardware based noise filtering,
moisture tolerance and zero-drift temperature compensation ensure reliable sensor op-
eration in the harshest of operating climates. Additionally, the PTC’s core-independent
operation gives you the ability to reduce your design’s power consumption with the
wake-on-touch or wake-on-proximity features. No matter the requirements, your next
touch-based solution just became easier with the Peripheral Touch Controller.
12 www.microchip.com/8bit
COMMUNICATIONS: General, Industrial, Lighting and Automotive
USART: Universal Synchronous 1. General purpose serial communications
Asynchronous Receiver Transmitter 2. Support for LIN/IrDA®
I2C: Inter-Integrated Circuit General purpose 2-wire serial communications
SPI: Serial Peripheral Interface General purpose 4-wire serial communications
IRCOM: Infrared Communication Encodes and decodes data according to the IrDA communication
Module protocol
USER INTERFACE: Capacitive Touch Sensing and LCD Control
LCD: Liquid Crystal Display Highly integrated segmented LCD controller
QTouch®: Microchip Proprietary
Provides a simple-to-use solution to realize touch-sensitive interfaces
Touch Technology
QTouch with PTC: QTouch with Provides a simple-to-use solution to realize touch-sensitive interfaces
Peripheral Touch Controller with a Peripheral Touch Controller
LOW POWER AND SYSTEM FLEXIBILITY: Low-Power Technology, Peripheral and Interconnects
Moves data between memories and peripherals without CPU overhead,
DMA: Direct Memory Access
improving overall system performance and efficiency
Flexible routing of peripheral events, ability to control peripheral
Event System
independent from the CPU
Highly flexible module for interfacing external memories and memory-
External Bus Interface
addressable peripherals
picoPower® Technology Low-power technology
Low-power saving modes, IDLE, power-down, power-save, standby and
Sleep Modes
extended standby
SleepWalking Ability to put the CPU core to sleep until a relevant event occurs
Peripheral Spotlight
Analog-to-Digital Converter with Computation
Many embedded applications require the measurement of analog voltages, along with a
significant amount of post-processing and signal analysis. Typically, these tasks place a
heavy burden on MCU hardware and can significantly lengthen your code development
cycle. The Analog-to-Digital Converter with Computation (ADC2) peripheral, available on
several PIC MCU families, implements a suite of post-processing features in hardware,
including low-pass filtering, oversampling and averaging. The ADC2 also automates
signal acquisition tasks and adds new capabilities, such as continuous mode retrigger
(which waits for a certain threshold before triggering a conversion) and auto conversion
(which allows triggering a conversion based on variety of internal and external sources) to significantly reduce CPU load and
software development time. With the ADC2, you don’t have to spend valuable cycles performing expensive computations;
this Core Independent Peripheral does the heavy lifting for you.
PIC10 MCUs
PIC10 microcontrollers have a simple instruction set for ease of use and quick development. They offer the smallest form factor
that can be easily implemented into the most space constrained designs. This microcontroller family includes an internal oscillator,
a comparator, ADC and data memory for data-logging, giving engineers the ability to add smarts in various entry-level applica-
tions. Its low cost and easy implementation can also help designers to replace multiple discrete components with an integrated
MCU solution, resulting in additional savings in board space.
PIC12/PIC16 MCUs
PIC12/PIC16 microcontrollers are ideal for many applications that require a higher level of embedded control and more memory.
These peripheral-rich devices feature various serial analog and digital peripherals, such as: SPI, I2C, USART, LCD and ADCs. With
low sleep and dynamic current consumption, these MCUs are highly suited for energy efficient and battery powered applications.
PIC18 MCUs
Offering the largest pin count and memory size, PIC18 microcontrollers combine the maximum level of performance and inte-
gration with the ease-of-use of an 8-bit architecture. With up to 16 MIPS of processing power, PIC18 microcontrollers feature
advanced peripherals such as CAN, USB, Ethernet, touch sensing and LCD display drivers. The PIC18 family has a flexible range
of self-programming Flash memory from 4 KB to 128 KB and up to 8 KB RAM. Many PIC18 products conserve power with XLP
technology and specialized clocking and sleep modes for battery applications.
tinyAVR® MCUs
The tinyAVR MCU family is optimized for applications that require performance, power efficiency and ease of use in a small package. All
tinyAVR devices are based on the same architecture and compatible with other AVR® devices. The integrated ADC, DAC, comparators,
EEPROM memory and brown-out detector let you build applications without adding external components. tinyAVR devices also offer
Flash memory and on-chip debug for fast, secure and cost-effective in-circuit upgrades that significantly cut your time to market.
megaAVR®
The megaAVR family is the ideal choice for designs that need some extra muscle. For applications requiring large amounts of
code, megaAVR devices offer substantial program and data memories with performance up to 20 MIPS. Meanwhile, innovative
picoPower technology helps minimize power consumption. All megaAVR devices offer self-programmability for fast, secure and
cost-effective in-circuit upgrades. You can even upgrade the Flash memory while running your application.
XMEGA® MCUs
The XMEGA family of MCUs delivers the best possible combination of real-time performance, high integration and low power
consumption for 8/16-bit MCU applications.
14 www.microchip.com/8bit
Development Tools
Software Development
Dedicated PIC and AVR MCU Tool Chains
Microchip Technology offers two best-in-class tool chains for PIC and AVR MCUs. These separate and dedicated development
ecosystems will help streamline your next design, from prototype to production. Microchip offers easy-to-use software and hardware
development resources to accelerate your next PIC or AVR MCU-based design. The PIC microcontrollers are finding their way into
new applications like smartphones, audio accessories, video gaming peripherals and advanced medical devices. Microchip provides
solutions for the entire performance range of 8-bit microcontrollers, with easy-to-use development tools, complete technical documen-
tation and post design-in support through a global sales and distribution network.
Intuitive Graphical
Configuration Tools
Simplified
Development
Environments
www.microchip.com
The Microchip name and logo, the Microchip logo, AVR, megaAVR, MPLAB, PIC, picoPower, QTouch, tinyAVR and XMEGA are registered trademarks and PICDEM is a trademark of Microchip
Technology Incorporated in the U.S.A. and other countries. mTouch is a registered trademark of Microchip Technology Inc in the U.S.A. All other trademarks mentioned herein are property of their
respective companies. © 2018, Microchip Technology Incorporated. All Rights Reserved. 2/18 DS30009630M