Contents
0. Introduction
1. Features
2. Silicon Errata and Data Sheet Clarification Document
3. tinyAVR 1-series Overview
3.1 Configuration Summary
3.11 Peripheral Summary
4. Block Diagram
5. Pinout
5.1 20-Pin SOIC
5.2 20-Pin VQFN
6. I/O Multiplexing and Considerations
6.1 Multiplexed Signals
7. Memories
7.1 Overview
7.2 Memory Map
7.3 In-System Reprogrammable Flash Program Memory
7.4 SRAM Data Memory
7.5 EEPROM Data Memory
7.6 User Row
7.7 Signature Bytes
7.8 I/O Memory
7.9 Memory Section Access from CPU and UPDI on Locked Device
7.
7.
7.10 Configuration and User Fuses (FUSE)
7.10
7.10
7.101 SIGROW - Signature Row Summary
7.102 Signature Row Description
7.1021 Device ID n
7.1022 Serial Number Byte n
7.1023 Temperature Sensor Calibration n
7.1024 OSC16 Error at 3V
7.1025 OSC16 Error at 5V
7.1026 OSC20 Error at 3V
7.1027 OSC20 Error at 5V
7.10
7.10
7.103 Fuse Summary - FUSE
7.104 Fuse Description
7.1041 Watchdog Configuration
7.1042 BOD Configuration
7.1043 Oscillator Configuration
7.1044 Timer Counter Type D Configuration
7.1045 System Configuration 0
7.1046 System Configuration 1
7.1047 Application Code End
7.1048 Boot End
7.1049 Lockbits
8. Peripherals and Architecture
8.1 Peripheral Module Address Map
8.2 Interrupt Vector Mapping
8.
8.
8.3 System Configuration (SYSCFG)
8.3
8.3
8.31 Register Summary - SYSCFG
8.32 Register Description - SYSCFG
8.321 Device Revision ID Register
9. AVR CPU
9.1 Features
9.2 Overview
9.3 Architecture
9.4 Arithmetic Logic Unit (ALU)
9.41 Hardware Multiplier
9.5 Functional Description
9.51 Program Flow
9.52 Instruction Execution Timing
9.53 Status Register
9.54 Stack and Stack Pointer
9.55 Register File
9.551 The X-, Y-, and Z-Registers
9.56 Accessing 16-Bit Registers
9.561 Accessing 24-Bit Registers
9.57 Configuration Change Protection (CCP)
9.571 Sequence for Write Operation to Configuration Change Protected I/O Registers
9.572 Sequence for Execution of Self-Programming
9.
9.
9.6 Register Summary - CPU
9.7 Register Description
9.71 CCP
9.72 SP
9.73 SREG
10. NVMCTRL - Nonvolatile Memory Controller
10.1 Features
10.2 Overview
10.21 Block Diagram
10.22 System Dependencies
10.221 Clocks
10.222 I/O Lines and Connections
10.223 Interrupts
10.224 Events
10.225 Debug Operation
10.
10.
10.3 Functional Description
10.31 Memory Organization
10.311 Flash
10.312 EEPROM
10.313 User Row
10.32 Memory Access
10.321 Read
10.322 Page Buffer Load
10.323 Programming
10.324 Commands
10.3241 Write Command
10.3242 Erase Command
10.3243 Erase-Write Operation
10.3244 Page Buffer Clear Command
10.3245 Chip Erase Command
10.3246 EEPROM Erase Command
10.3247 Fuse Write Command
10.33 Preventing Flash/EEPROM Corruption
10.34 Interrupts
10.35 Sleep Mode Operation
10.36 Configuration Change Protection
10.
10.
10.4 Register Summary - NVMCTRL
10.5 Register Description
10.51 Control A
10.52 Control B
10.53 Status
10.54 Interrupt Control
10.55 Interrupt Flags
10.56 Data
10.57 Address
11. CLKCTRL - Clock Controller
11.1 Features
11.2 Overview
11.21 Block Diagram - CLKCTRL
11.22 Signal Description
11.3 Functional Description
11.31 Sleep Mode Operation
11.3
11.3
11.32 Main Clock Selection and Prescaler
11.33 Main Clock After Reset
11.3
11.3
11.34 Clock Sources
11.341 Internal Oscillators
11.3411 16/20 MHz Oscillator (OSC20M)
11.34111 OSC20M Stored Frequency Error Compensation
11.3412 32 KHz Oscillator (OSCULP32K)
11.342 External Clock Sources
11.3421 32.768 kHz Crystal Oscillator (XOSC32K)
11.3422 External Clock (EXTCLK)
11.35 Configuration Change Protection
11.
11.
11.4 Register Summary - CLKCTRL
11.5 Register Description
11.51 Main Clock Control A
11.52 Main Clock Control B
11.53 Main Clock Lock
11.54 Main Clock Status
11.55 16/20 MHz Oscillator Control A
11.56 16/20 MHz Oscillator Calibration A
11.57 16/20 MHz Oscillator Calibration B
11.58 32 KHz Oscillator Control A
11.59 32.768 kHz Crystal Oscillator Control A
12. SLPCTRL - Sleep Controller
12.1 Features
12.2 Overview
12.21 Block Diagram
12.22 System Dependencies
12.221 Clocks
12.222 I/O Lines and Connections
12.223 Interrupts
12.224 Events
12.225 Debug Operation
12.
12.
12.3 Functional Description
12.31 Initialization
12.32 Operation
12.321 Sleep Modes
12.322 Wake-Up Time
12.33 Configuration Change Protection
12.
12.
12.4 Register Summary - SLPCTRL
12.5 Register Description
12.51 Control A
13. RSTCTRL - Reset Controller
13.1 Features
13.2 Overview
13.21 Block Diagram
13.22 Signal Description
13.
13.
13.3 Functional Description
13.31 Initialization
13.32 Operation
13.321 Reset Sources
13.3211 Power-On Reset (POR)
13.3212 Brown-Out Detector (BOD) Reset Source
13.3213 Software Reset
13.3214 External Reset
13.3215 Watchdog Reset
13.3216 Universal Program Debug Interface (UPDI) Reset
13.322 Reset Time
13.33 Sleep Mode Operation
13.34 Configuration Change Protection
13.
13.
13.4 Register Summary - RSTCTRL
13.5 Register Description
13.51 Reset Flag Register
13.52 Software Reset Register
14. CPUINT - CPU Interrupt Controller
14.1 Features
14.2 Overview
14.21 Block Diagram
14.22 Signal Description
14.23 System Dependencies
14.231 Clocks
14.232 I/O Lines and Connections
14.233 Interrupts
14.234 Events
14.235 Debug Operation
14.
14.
14.3 Functional Description
14.31 Initialization
14.32 Operation
14.321 Enabling, Disabling, and Resetting
14.322 Interrupt Vector Locations
14.323 Interrupt Response Time
14.324 Interrupt Priority
14.325 Scheduling of Normal Priority Interrupts
14.3251 Non-Maskable Interrupts (NMI)
14.3252 Static Scheduling
14.3253 Round Robin Scheduling
14.3254 Compact Vector Table
14.33 Events
14.34 Sleep Mode Operation
14.35 Configuration Change Protection
14.
14.
14.4 Register Summary - CPUINT
14.5 Register Description
14.51 Control A
14.52 Status
14.53 Interrupt Priority Level 0
14.54 Interrupt Vector with Priority Level 1
15. EVSYS - Event System
15.1 Features
15.2 Overview
15.21 Block Diagram
15.22 Signal Description
15.23 System Dependencies
15.231 Clocks
15.232 I/O Lines
15.
15.
15.3 Functional Description
15.31 Initialization
15.32 Operation
15.321 Event User Multiplexer Setup
15.322 Event System Channel
15.323 Event Generators
15.324 Software Event
15.33 Interrupts
15.34 Sleep Mode Operation
15.35 Debug Operation
15.36 Synchronization
15.37 Configuration Change Protection
15.
15.
15.4 Register Summary - EVSYS
15.5 Register Description
15.51 Asynchronous Channel Strobe
15.52 Synchronous Channel Strobe
15.53 Asynchronous Channel n Generator Selection
15.54 Synchronous Channel n Generator Selection
15.55 Asynchronous User Channel n Input Selection
15.56 Synchronous User Channel n Input Selection
16. PORTMUX - Port Multiplexer
16.1 Overview
16.
16.
16.2 Register Summary - PORTMUX
16.3 Register Description
16.31 Control A
16.32 Control B
16.33 Control C
16.34 Control D
17. PORT - I/O Pin Configuration
17.1 Features
17.2 Overview
17.21 Block Diagram
17.22 Signal Description
17.23 System Dependencies
17.231 Clocks
17.232 I/O Lines and Connections
17.233 Interrupts
17.234 Events
17.235 Debug Operation
17.
17.
17.3 Functional Description
17.31 Initialization
17.32 Operation
17.321 Basic Functions
17.322 Virtual Ports
17.323 Pin Configuration
17.33 Interrupts
17.34 Events
17.35 Sleep Mode Operation
17.36 Synchronization
17.37 Configuration Change Protection
17.
17.
17.4 Register Summary - PORT
17.5 Register Description - Ports
17.51 Data Direction
17.52 Data Direction Set
17.53 Data Direction Clear
17.54 Data Direction Toggle
17.55 Output Value
17.56 Output Value Set
17.57 Output Value Clear
17.58 Output Value Toggle
17.59 Input Value
17.510 Interrupt Flags
17.511 Pin n Control
17.
17.
17.6 Register Summary - VPORT
17.7 Register Description - Virtual Ports
17.71 Data Direction
17.72 Output Value
17.73 Input Value
17.74 Interrupt Flag
18. BOD - Brown-out Detector
18.1 Features
18.2 Overview
18.21 Block Diagram
18.22 System Dependencies
18.221 Clocks
18.222 I/O Lines and Connections
18.223 Interrupts
18.224 Events
18.225 Debug Operation
18.
18.
18.3 Functional Description
18.31 Initialization
18.32 Interrupts
18.33 Sleep Mode Operation
18.34 Synchronization
18.35 Configuration Change Protection
18.
18.
18.4 Register Summary - BOD
18.5 Register Description
18.51 Control A
18.52 Control B
18.53 VLM Control A
18.54 Interrupt Control
18.55 VLM Interrupt Flags
18.56 VLM Status
19. VREF - Voltage Reference
19.1 Features
19.2 Overview
19.21 Block Diagram
19.
19.
19.3 Functional Description
19.31 Initialization
19.
19.
19.4 Register Summary - VREF
19.5 Register Description
19.51 Control A
19.52 Control B
19.53 Control C
19.54 Control D
20. WDT - Watchdog Timer
20.1 Features
20.2 Overview
20.21 Block Diagram
20.22 Signal Description
20.23 System Dependencies
20.231 Clocks
20.232 I/O Lines and Connections
20.233 Interrupts
20.234 Events
20.235 Debug Operation
20.
20.
20.3 Functional Description
20.31 Initialization
20.32 Operation
20.321 Normal Mode
20.322 Window Mode
20.323 Configuration Protection and Lock
20.33 Events
20.34 Interrupts
20.35 Sleep Mode Operation
20.36 Synchronization
20.37 Configuration Change Protection
20.
20.
20.4 Register Summary - WDT
20.5 Register Description
20.51 Control A
20.52 Status
21. TC0/1 – 16-bit Timer/Counter Type 0 and 1
21.1 Features
21.2 Overview
21.21 Block Diagram
21.22 Signal Description
21.23 System Dependencies
21.231 Clocks
21.232 I/O Lines and Connections
21.233 Interrupts
21.234 Events
21.235 Debug Operation
21.
21.
21.3 Functional Description
21.31 Definitions
21.32 Initialization
21.33 Operation
21.331 Normal Operation
21.332 Double Buffering
21.333 Changing the Period
21.334 Compare Channel
21.3341 Waveform Generation
21.3342 Frequency (FRQ) Waveform Generation
21.3343 Single-slope PWM Generation
21.3344 Dual-slope PWM
21.3345 Port Override for Waveform Generation
21.335 Timer/Counter Commands
21.336 Split Mode - Two 8-Bit Timer/Counters
21.34 Events
21.35 Interrupts
21.36 Sleep Mode Operation
21.37 Configuration Change Protection
21.
21.
21.4 Register Summary - TCA in Normal Mode (CTRLD.SPLITM=0)
21.5 Register Description - Normal Mode
21.51 Control A
21.52 Control B - Normal Mode
21.53 Control C - Normal Mode
21.54 Control D
21.55 Control Register E Clear - Normal Mode
21.56 Control Register E Set - Normal Mode
21.57 Control Register F Clear
21.58 Control Register F Set
21.59 Event Control
21.510 Interrupt Control Register - Normal Mode
21.511 Interrupt Flag Register - Normal Mode
21.512 Debug Control Register
21.513 Temporary Bits for 16-Bit Access
21.514 Counter Register - Normal Mode
21.515 Period Register - Normal Mode
21.516 Compare n Register - Normal Mode
21.517 Period Buffer Register
21.518 Compare n Buffer Register
21.
21.
21.6 Register Summary - TCA in Split Mode (CTRLD.SPLITM=1)
21.7 Register Description - Split Mode
21.71 Control A
21.72 Control B - Split Mode
21.73 Control C - Split Mode
21.74 Control D
21.75 Control Register E Clear - Split Mode
21.76 Control Register E Set - Split Mode
21.77 Interrupt Control Register - Split Mode
21.78 Interrupt Flag Register - Split Mode
21.79 Debug Control Register
21.710 Low Byte Timer Counter Register - Split Mode
21.711 High Byte Timer Counter Register - Split Mode
21.712 Low Byte Timer Period Register - Split Mode
21.713 High Byte Period Register - Split Mode
21.714 Compare Register n For Low Byte Timer - Split Mode
21.715 High Byte Compare Register n - Split Mode
22. TCB - 16-bit Timer/Counter Type B
22.1 Features
22.2 Overview
22.21 Block Diagram
22.211 Noise Canceler
22.22 Signal Description
22.23 System Dependencies
22.231 Clocks
22.232 I/O Lines and Connections
22.233 Interrupts
22.234 Events
22.235 Debug Operation
22.
22.
22.3 Functional Description
22.31 Definitions
22.32 Initialization
22.33 Operation
22.331 Modes
22.3311 Periodic Interrupt Mode
22.3312 Time-Out Check Mode
22.3313 Input Capture on Event Mode
22.3314 Input Capture Frequency Measurement Mode
22.3315 Input Capture Pulse-Width Measurement Mode
22.3316 Input Capture Frequency and Pulse-Width Measurement Mode
22.3317 Single-Shot Mode
22.3318 8-Bit PWM Mode
22.332 Output
22.333 Noise Canceler
22.334 Synchronized with TCAn
22.34 Events
22.35 Interrupts
22.36 Sleep Mode Operation
22.37 Synchronization
22.38 Configuration Change Protection
22.
22.
22.4 Register Summary - TCB
22.5 Register Description
22.51 Control A
22.52 Control B
22.53 Event Control
22.54 Interrupt Control
22.55 Interrupt Flags
22.56 Status
22.57 Debug Control
22.58 Temporary Value
22.59 Count
22.510 Capture/Compare
23. TCD - 12-Bit Timer/Counter Type D
23.1 Features
23.2 Overview
23.21 Block Diagram
23.22 Signal Description
23.23 System Dependencies
23.231 Clocks
23.232 I/O Lines and Connections
23.233 Interrupts
23.234 Events
23.235 Debug Operation
23.24 Definitions
23.
23.
23.3 Functional Description
23.31 Initialization and Disabling
23.32 Operation
23.321 Register Synchronization Categories
23.322 Clock Selection and Prescalers
23.323 Waveform Generation Modes
23.3231 One Ramp Mode
23.3232 Two Ramp Mode
23.3233 Four Ramp Mode
23.3234 Dual Slope Mode
23.324 TCD Inputs
23.3241 Input Blanking
23.3242 Digital Filter
23.3243 Asynchronous Event Detection
23.3244 Input Modes
23.32441 Input Mode 1: Stop Output, Jump to Opposite Compare Cycle, and Wait
23.32442 Input Mode 2: Stop Output, Execute Opposite Compare Cycle, and Wait
23.32443 Input Mode 3: Stop Output, Execute Opposite Compare Cycle while Fault Active
23.32444 Input Mode 4: Stop all Outputs, Maintain Frequency
23.32445 Input Mode 5: Stop all Outputs, Execute Dead Time while Fault Active
23.32446 Input Mode 6: Stop All Outputs, Jump to Next Compare Cycle, and Wait
23.32447 Input Mode 7: Stop all Outputs, Wait for Software Action
23.32448 Input Mode 8: Stop Output on Edge, Jump to Next Compare Cycle
23.32449 Input Mode 9: Stop Output at Level, Maintain Frequency
23.324410 Input Mode 10: Stop Output on Edge, Maintain Frequency
23.324411 Input Mode Summary
23.325 Dithering
23.326 TCD Counter Capture
23.327 Output Control
23.33 Events
23.331 Programmable Output Events
23.34 Interrupts
23.35 Sleep Mode Operation
23.36 Synchronization
23.37 Configuration Change Protection
23.
23.
23.4 Register Summary - TCD
23.5 Register Description
23.51 Control A
23.52 Control B
23.53 Control C
23.54 Control D
23.55 Control E
23.56 Event Control x
23.57 Interrupt Control
23.58 Interrupt Flags
23.59 Status
23.510 Input Control x
23.511 Fault Control
23.512 Delay Control
23.513 Delay Value
23.514 Dither Control
23.515 Dither Value
23.516 Debug Control
23.517 Capture x
23.518 Compare Set x
23.519 Compare Clear x
24. RTC - Real-Time Counter
24.1 Features
24.2 Overview
24.21 Block Diagram
24.22 Signal Description
24.23 System Dependencies
24.231 Clocks
24.232 I/O Lines and Connections
24.233 Interrupts
24.234 Events
24.235 Debug Operation
24.
24.
24.3 RTC Functional Description
24.31 Initialization
24.311 Configure the Clock CLK_RTC
24.312 Configure RTC
24.32 Operation - RTC
24.321 Enabling, Disabling, and Resetting
24.4 PIT Functional Description
24.41 Initialization
24.42 Operation - PIT
24.421 Enabling, Disabling, and Resetting
24.422 PIT Interrupt Timing
24.5 Events
24.6 Interrupts
24.7 Sleep Mode Operation
24.8 Synchronization
24.9 Configuration Change Protection
24.
24.
24.10 Register Summary - RTC
24.11 Register Description
24.111 Control A
24.112 Status
24.113 Interrupt Control
24.114 Interrupt Flag
24.115 Temporary
24.116 Debug Control
24.117 Clock Selection
24.118 Count
24.119 Period
24.1110 Compare
24.1111 Periodic Interrupt Timer Control A
24.1112 Periodic Interrupt Timer Status
24.1113 PIT Interrupt Control
24.1114 PIT Interrupt Flag
24.1115 Periodic Interrupt Timer Debug Control
25. USART - Universal Synchronous and Asynchronous Receiver and Transmitter
25.1 Features
25.2 Overview
25.21 Signal Description
25.22 System Dependencies
25.221 Clocks
25.222 I/O Lines and Connections
25.223 Interrupts
25.224 Events
25.225 Debug Operation
25.226 Block Diagram
25.
25.
25.3 Functional Description
25.31 Initialization
25.32 Operation
25.321 Clock Generation
25.3211 Internal Clock Generation - The Fractional Baud Rate Generator
25.3212 Synchronous Slave External Clock limitations
25.3213 Double Speed Operation
25.3214 Synchronous Clock Operation
25.3215 Master SPI Mode Clock Generation
25.322 Frame Formats
25.3221 Parity
25.3222 SPI Frame Formats
25.323 Data Transmission - USART Transmitter
25.3231 Sending Frames
25.3232 Disabling the Transmitter
25.324 Data Reception - USART Receiver
25.3241 Receiving Frames
25.3242 Receiver Error Flags
25.3243 Parity Checker
25.3244 Disabling the Receiver
25.3245 Flushing the Receive Buffer
25.3246 Asynchronous Data Reception
25.32461 Asynchronous Clock Recovery
25.32462 Asynchronous Data Recovery
25.3247 Asynchronous Operational Range
25.325 USART in Master SPI mode
25.3251 USART SPI vs. SPI
25.326 RS-485 Mode of Operation
25.327 Start Frame Detection
25.328 Break Character Detection and Auto-Baud
25.329 One-Wire Mode
25.3210 Multiprocessor Communication Mode
25.32101 Using Multiprocessor Communication Mode
25.3211 IRCOM Mode of Operation
25.32111 Overview
25.32112 Block Diagram
25.32113 IRCOM and Event System
25.33 Events
25.34 Interrupts
25.35 Configuration Change Protection
25.
25.
25.4 Register Summary - USART
25.5 Register Description
25.51 Receiver Data Register Low Byte
25.52 Receiver Data Register High Byte
25.53 Transmit Data Register Low Byte
25.54 Transmit Data Register High Byte
25.55 USART Status Register
25.56 Control A
25.57 Control B
25.58 Control C - Async Mode
25.59 Control C - Master SPI Mode
25.510 Baud Register
25.511 Debug Control Register
25.512 IrDA Control Register
25.513 IRCOM Transmitter Pulse Length Control Register
25.514 IRCOM Receiver Pulse Length Control Register
26. SPI - Serial Peripheral Interface
26.1 Features
26.2 Overview
26.21 Block Diagram
26.22 Signal Description
26.23 System Dependencies
26.231 Clocks
26.232 I/O Lines and Connections
26.233 Interrupts
26.234 Events
26.235 Debug Operation
26.
26.
26.3 Functional Description
26.31 Initialization
26.32 Operation
26.321 Master Mode Operation
26.3211 SS Pin Functionality in Master Mode - Multi-Master Support
26.3212 Normal Mode
26.3213 Buffer Mode
26.322 Slave Mode
26.3221 SS Pin Functionality in Slave Mode
26.3222 Normal Mode
26.3223 Multi Slave Systems - SS Pin Functionality
26.3224 Buffer Mode
26.323 Data Modes
26.33 Interrupts
26.34 Sleep Mode Operation
26.35 Configuration Change Protection
26.
26.
26.4 Register Summary - SPI
26.5 Register Description
26.51 Control A
26.52 Control B
26.53 Interrupt Control
26.54 Interrupt Flags
26.55 Data
27. TWI - Two-Wire Interface
27.1 Features
27.2 Overview
27.21 Block Diagram
27.22 Signal Description
27.23 System Dependencies
27.231 Clocks
27.232 I/O Lines and Connections
27.233 Interrupts
27.234 Events
27.235 Debug Operation
27.
27.
27.3 Functional Description
27.31 Initialization
27.32 General TWI Bus Concepts
27.321 Start and Stop Conditions
27.322 Bit Transfer
27.323 Address Packet
27.324 Data Packet
27.325 Transaction
27.326 Clock and Clock Stretching
27.327 Arbitration
27.328 Synchronization
27.33 TWI Bus State Logic
27.34 Operation
27.341 Electrical Characteristics
27.342 TWI Master Operation
27.3421 Clock Generation
27.3422 Transmitting Address Packets
27.34221 Case M1: Arbitration Lost or Bus Error during Address Packet
27.34222 Case M2: Address Packet Transmit Complete - Address not Acknowledged by Slave
27.34223 Case M3: Address Packet Transmit Complete - Direction Bit Cleared
27.34224 Case M4: Address Packet Transmit Complete - Direction Bit Set
27.3423 Transmitting Data Packets
27.3424 Receiving Data Packets
27.3425 Quick Command Mode
27.343 TWI Slave Operation
27.3431 Receiving Address Packets
27.34311 Case S1: Address Packet Accepted - Direction Bit Set
27.34312 Case S2: Address Packet Accepted - Direction Bit Cleared
27.34313 Case S3: Collision
27.34314 Case S4: STOP Condition Received
27.3432 Receiving Data Packets
27.3433 Transmitting Data Packets
27.344 Smart Mode
27.35 Events
27.36 Interrupts
27.37 Sleep Mode Operation
27.38 Synchronization
27.39 Configuration Change Protection
27.
27.
27.4 Register Summary - TWI
27.5 Register Description
27.51 Control A
27.52 Debug Control
27.53 Master Control A
27.54 Master Control B
27.55 Master Status
27.56 Master Baud Rate
27.57 Master Address
27.58 Master DATA
27.59 Slave Control A
27.510 Slave Control B
27.511 Slave Status
27.512 Slave Address
27.513 Slave Data
27.514 Slave Address Mask
28. CRCSCAN - Cyclic Redundancy Check Memory Scan
28.1 Features
28.2 Overview
28.21 Block Diagram
28.22 System Dependencies
28.221 Clocks
28.222 I/O Lines and Connections
28.223 Interrupts
28.224 Events
28.225 Debug Operation
28.
28.
28.3 Functional Description
28.31 Initialization
28.32 Operation
28.321 Checksum
28.33 Interrupts
28.34 Sleep Mode Operation
28.35 Configuration Change Protection
28.
28.
28.4 Register Summary - CRCSCAN
28.5 Register Description
28.51 Control A
28.52 Control B
28.53 Status
29. CCL - Configurable Custom Logic
29.1 Features
29.2 Overview
29.21 Block Diagram
29.22 Signal Description
29.23 System Dependencies
29.231 Clocks
29.232 I/O Lines
29.233 Interrupts
29.234 Debug Operation
29.3 Functional Description
29.31 Initialization
29.32 Operation
29.321 Enabling, Disabling, and Resetting
29.322 Look-Up Table Logic
29.323 Truth Table Inputs Selection
29.324 Filter
29.325 Edge Detector
29.326 Sequential Logic
29.327 Clock Source Settings
29.33 Events
29.34 Sleep Mode Operation
29.35 Configuration Change Protection
29.
29.
29.4 Register Summary - CCL
29.5 Register Description
29.51 Control A
29.52 Sequential Control 0
29.53 LUT n Control A
29.54 LUT n Control B
29.55 LUT n Control C
29.56 TRUTHn
30. AC – Analog Comparator
30.1 Features
30.2 Overview
30.21 Block Diagram
30.22 Signal Description
30.23 System Dependencies
30.231 Clocks
30.232 I/O Lines and Connections
30.233 Interrupts
30.234 Events
30.235 Debug Operation
30.
30.
30.3 Functional Description
30.31 Initialization
30.32 Operation
30.321 Input Hysteresis
30.322 Input Sources
30.3221 Pin Inputs
30.3222 Internal Inputs
30.323 Low-Power Mode
30.33 Events
30.34 Interrupts
30.35 Sleep Mode Operation
30.36 Configuration Change Protection
30.
30.
30.4 Register Summary - AC
30.5 Register Description
30.51 Control A
30.52 MUX Control A
30.53 Interrupt Control
30.54 Status
31. ADC - Analog-to-Digital Converter
31.1 Features
31.2 Overview
31.21 Block Diagram
31.22 Signal Description
31.23 System Dependencies
31.231 Clocks
31.232 I/O Lines and Connections
31.233 Interrupts
31.234 Events
31.235 Debug Operation
31.24 Definitions
31.
31.
31.3 Functional Description
31.31 Initialization
31.32 Operation
31.321 Starting a Conversion
31.322 Clock Generation
31.323 Conversion Timing
31.324 Changing Channel or Reference Selection
31.3241 ADC Input Channels
31.3242 ADC Voltage Reference
31.3243 Analog Input Circuitry
31.325 ADC Conversion Result
31.326 Temperature Measurement
31.327 Window Comparator Mode
31.328 PTC Operation
31.33 Events
31.34 Interrupts
31.35 Sleep Mode Operation
31.36 Synchronization
31.37 Configuration Change Protection
31.
31.
31.4 Register Summary - ADCn
31.5 Register Description
31.51 Control A
31.52 Control B
31.53 Control C
31.54 Control D
31.55 Control E
31.56 Sample Control
31.57 MUXPOS
31.58 Command
31.59 Event Control
31.510 Interrupt Control
31.511 Interrupt Flags
31.512 Debug Run
31.513 Temporary
31.514 Result
31.515 Window Comparator Low Threshold
31.516 Window Comparator High Threshold
31.517 Calibration
32. DAC - Digital-to-Analog Converter
32.1 Features
32.2 Overview
32.21 Block Diagram
32.22 Signal Description
32.23 System Dependencies
32.231 Clocks
32.232 I/O Lines and Connections
32.233 Events
32.234 Interrupts
32.235 Debug Operation
32.
32.
32.3 Functional Description
32.31 Initialization
32.32 Operation
32.321 Enabling, Disabling, and Resetting
32.322 Starting a Conversion
32.323 DAC as Source For Internal Peripherals
32.33 Sleep Mode Operation
32.34 Configuration Change Protection
32.
32.
32.4 Register Summary - DAC
32.5 Register Description
32.51 Control A
32.52 DATA
33. PTC - Peripheral Touch Controller
33.1 Overview
33.2 Features
33.3 Block Diagram
33.4 Signal Description
33.5 Product Dependencies
33.51 I/O Lines
33.511 Mutual Capacitance Sensor Arrangement
33.512 Self Capacitance Sensor Arrangement
33.52 Clocks
33.53 Analog-Digital Converter (ADC)
33.6 Functional Description
34. UPDI - Unified Program and Debug Interface
34.1 Features
34.2 Overview
34.21 Block Diagram
34.22 System Dependencies
34.221 Clocks
34.222 I/O Lines and Connections
34.223 Events
34.224 Power Management
34.
34.
34.3 Functional Description
34.31 Principle of Operation
34.311 UPDI UART
34.312 BREAK Character
34.32 Operation
34.321 UPDI Enable with Fuse Override of RESET Pin
34.322 UPDI Enable with 12V Override of RESET Pin
34.323 UPDI Disable
34.324 Output Enable Timer Protection for GPIO Configuration
34.325 UPDI Communication Error Handling
34.326 Direction Change
34.33 UPDI Instruction Set
34.331 LDS - Load Data from Data Space Using Direct Addressing
34.332 STS - Store Data to Data Space Using Direct Addressing
34.333 LD - Load Data from Data Space Using Indirect Addressing
34.334 ST - Store Data from Data Space Using Indirect Addressing
34.335 LCDS - Load Data from Control and Status Register Space
34.336 STCS (Store Data to Control and Status Register Space)
34.337 REPEAT - Set Instruction Repeat Counter
34.338 KEY - Set Activation KEY
34.34 System Clock Measurement with UPDI
34.35 Interbyte Delay
34.36 System Information Block
34.37 Enabling of KEY Protected Interfaces
34.371 Chip Erase
34.372 NVM Programming
34.373 User Row Programming
34.38 Events
34.39 Sleep Mode Operation
34.
34.
34.4 Register Summary - UPDI
34.5 Register Description
34.51 Status A
34.52 Status B
34.53 Control A
34.54 Control B
34.55 ASI Key Status
34.56 ASI Reset Request
34.57 ASI Control A
34.58 ASI System Control A
34.59 ASI System Status
34.510 ASI CRC Status
35. Instruction Set Summary
36. Conventions
36.1 Numerical Notation
36.2 Memory Size and Type
36.3 Frequency and Time
36.4 Registers and Bits
37. Acronyms and Abbreviations
38. Electrical Characteristics
38.1 Disclaimer
38.2 Absolute Maximum Ratings
38.3 General Operating Ratings
38.4 Power Consumption for ATtiny1616
38.5 Power Consumption for ATtiny3216
38.6 Wake-Up Time
38.7 Power Consumption of Peripherals
38.8 BOD and POR Characteristics
38.9 External Reset Characteristics
38.10 Oscillators and Clocks
38.11 I/O Pin Characteristics
38.12 USART
38.13 SPI
38.14 TWI
38.15 VREF
38.16 ADC
38.17 DAC
38.18 AC
38.19 PTC
38.20 UPDI Timing
38.21 Programming Time
39. Typical Characteristics
39.1 Power Consumption
39.11 Supply Currents in Active Mode for ATtiny1616
39.12 Supply Currents in Idle Mode for ATtiny1616
39.13 Supply Currents in Power-Down Mode for ATtiny1616
39.14 Supply Currents in Standby Mode for ATtiny1616
39.15 Supply Currents in Active Mode for ATtiny3216
39.16 Supply Currents in Idle Mode for ATtiny3216
39.17 Supply Currents in Standby Mode for ATtiny3216
39.18 Supply Currents in Power-Down Mode for ATtiny3216
39.2 GPIO
39.3 VREF Characteristics
39.4 BOD Characteristics
39.5 ADC Characteristics
39.6 AC Characteristics
39.7 OSC20M Characteristics
39.8 OSCULP32K Characteristics
40. Ordering Information
40.1 Product Information
40.2 Product Identification System
41. Package Drawings
41.1 Online Package Drawings
41.2 20-Pin SOIC300
41.3 20-Pin VQFN
42. Thermal Considerations
42.1 Thermal Resistance Data
42.2 Junction Temperature
43. Errata
43.
43.
43.1 Errata - ATtiny1616/3216
44. Data Sheet Revision History
44.1 Rev. C - 07/2019
44.2 Rev. B - 06/2018
44.3 Rev. A - 06/2018
The Microchip Website
Product Change Notification Service
Customer Support
Product Identification System
Microchip Devices Code Protection Feature
Legal Notice
Trademarks
Quality Management System
Worldwide Sales and Service