Skip to main content

ATTINY321X

tinyAVR® 1-series

Microcontroller

The ATTINY321X is a microcontroller from Microchip Technology. tinyAVR® 1-series. View the full ATTINY321X datasheet below including specifications and datasheet sections.

Manufacturer

Microchip Technology

Overview

Part: ATtiny3216/3217 Automotive (Microchip)

Type: AVR Microcontroller

Description: The ATtiny3216/3217 Automotive are tinyAVR 1-series microcontrollers featuring an AVR® CPU with hardware multiplier, running at up to 16 MHz, with 32 KB Flash, 2 KB SRAM, and 256 bytes EEPROM, available in 20- or 24-pin packages.

Operating Conditions:

  • Supply voltage: 2.7–5.5 V (for 0-8 MHz operation); 4.5–5.5 V (for 0-16 MHz operation)
  • Operating temperature: -40 to +125 °C
  • Max CPU frequency: 16 MHz

Absolute Maximum Ratings:

  • Max continuous current: Not applicable

Key Specs:

  • CPU: AVR® CPU with two-cycle hardware multiplier
  • Flash memory: 32 KB In-system self-programmable
  • SRAM: 2 KB
  • EEPROM: 256 bytes
  • ADC: Two 10-bit 115 ksps Analog-to-Digital Converters
  • DAC: Three 8-bit Digital-to-Analog Converters
  • Digital Interfaces: One USART, one master/slave SPI, one TWI (I2C compatible)
  • I/O lines: Up to 22 programmable I/O lines

Features:

  • Event System for CPU independent inter-peripheral signaling
  • Core Independent Peripherals (CIPs)
  • Peripheral Touch Controller (PTC) with Driven Shield+ and Boost Mode
  • Configurable Custom Logic (CCL) with two programmable look-up tables
  • Single-Pin Unified Program and Debug Interface (UPDI)
  • Three sleep modes: Idle, Standby, Power-Down

Applications:

  • Automotive applications

Package:

  • 20-pin SOIC300
  • 24-pin VQFN 4x4 mm with wettable flanks

Features

  • CPU

    • AVR® CPU
    • Running at up to 16 MHz
    • Single-cycle I/O access
    • Two-level interrupt controller
    • Two-cycle hardware multiplier
  • Memories

    • 32 KB In-system self-programmable Flash memory
    • 256 bytes EEPROM
    • 2 KB SRAM
    • Write/erase endurance:
      • Flash 10,000 cycles
      • EEPROM 100,000 cycles
    • Data retention:
      • 40 years at 55°C
  • System

    • Power-on Reset (POR)
    • Brown-out Detector (BOD)
    • Clock options:
      • 16 MHz low-power internal RC oscillator
      • 32.768 kHz Ultra Low-Power (ULP) internal RC oscillator
      • 32.768 kHz external crystal oscillator
      • External clock input
    • Single-Pin Unified Program and Debug Interface (UPDI)
    • Three sleep modes:
      • Idle with all peripherals running for immediate wake-up
      • Standby
  • Configurable operation of selected peripherals

    • Power-Down with full data retention
  • Peripherals

  • One 16-bit Timer/Counter type A (TCA) with a dedicated period register and three compare channels

  • Two 16-bit Timer/Counter type B (TCB) with input capture

  • One 12-bit Timer/Counter type D (TCD) optimized for control applications

  • One 16-bit Real-Time Counter (RTC) running from an external crystal, external clock, or internal RC oscillator

  • Watchdog Timer (WDT) with Window mode, with a separate on-chip oscillator

  • One USART with fractional baud rate generator, auto-baud, and start-of-frame detection

  • One master/slave Serial Peripheral Interface (SPI)

  • One Two-Wire Interface (TWI) with dual address match

    • Philips I2C compatible
    • Standard mode (Sm, 100 kHz)
    • Fast mode (Fm, 400 kHz)
    • Fast mode plus (Fm+, 1 MHz)
  • Three Analog Comparators (AC) with a low propagation delay

  • Two 10-bit 115 ksps Analog-to-Digital Converters (ADCs)

  • Three 8-bit Digital-to-Analog Converters (DACs) with one external channel

  • Multiple voltage references (VREF):

    • 0.55V
    • 1.1V
    • 1.5V
    • 2.5V
    • 4.3V
  • Event System (EVSYS) for CPU independent and predictable inter-peripheral signaling

  • Configurable Custom Logic (CCL) with two programmable look-up tables

  • Automated CRC memory scan

  • Peripheral Touch Controller (PTC)

    • Capacitive touch buttons, sliders, wheels and 2D surfaces
    • Wake-up on touch
    • Driven shield for improved moisture and noise handling performance
    • Up to 14 self-capacitance channels
    • Up to 49 mutual capacitance channels
  • External interrupt on all general purpose pins

  • I/O and Packages:

    • Up to 22 programmable I/O lines
    • 20-pin SOIC300
    • 24-pin VQFN 4x4 mm with wettable flanks
  • Temperature Ranges:

    • -40°C to 105°C
    • -40°C to 125°C
  • Speed Grades:

    • 0-8 MHz @ 2.7V 5.5V
    • 0-16 MHz @ 4.5V 5.5V

Pin Configuration

This bit field selects the Reset/UPDI pin configuration.

ValueDescription
0x0GPIO
0x1UPDI
0x2RESET
OtherReserved

Note: When configuring the RESET pin as GPIO, there is a potential conflict between the GPIO actively driving the output, and a high-voltage UPDI enable sequence initiation. To avoid this, the GPIO output driver is disabled for 768 OSC32K cycles after a System Reset. Enable any interrupts for this pin only after this period.

Related Variants

The following components are covered by the same datasheet.

Part NumberManufacturerPackage
ATTINY3216Microchip Technology20-pin SOIC300
ATTINY3216/3217Microchip Technology
ATTINY3217Microchip Technology
Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Get structured datasheet data via API

Get started free