Transcription of AVR® Microcontroller with Core Independent Peripherals ...
1 ATtiny416/816 AVR Microcontroller with Core Independent Peripheralsand picoPower TechnologyIntroductionThe ATtiny416/816 microcontrollers are using the high-performance low-power AVR RISC architecture,and is capable of running at up to 20 MHz, with up to 4/8KB Flash, 256/512bytes of SRAM and 128bytesof EEPROM in a 20-pin package. The series uses the latest technologies with a flexible and low powerarchitecture including Event System and SleepWalking, accurate analog features and advancedperipherals. Capacitive touch interfaces with driven shield are supported with the integrated QTouch peripheral touch CPU AVR 8-bit CPU Running at up to 20 MHz Single Cycle I/O Access Two-level Interrupt Controller Two-cycle Hardware Multiplier Memories 4/8KB In-system self-programmable Flash Memory 128B EEPROM 256/512B SRAM System Power-on Reset (POR) Brown-out Detection (BOD) Clock Options: 16/20 MHz Low Power Internal RC Oscillator Ultra Low Power (ULP) Internal RC Oscillator External Crystal Oscillator External Clock Input Single Pin Unified Program Debug Interface (UPDI) Three Sleep Modes.
2 Idle with All Peripherals Running and Mode for Immediate Wake Up Time Standby Configurable Operation of Selected Peripherals SleepWalking Peripherals Power Down with Wake-up Functionality 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 1 Peripherals 6-channel Event System One 16-bit Timer/Counter Type A with Dedicated Period Register, Three Compare Channels(TCA) One 16-bit Timer/Counter type B with Input Capture (TCB) One 12-bit Timer/Counter type D Optimized for Control Applications (TCD) One 16-bit Real Time Counter (RTC) Running from External Crystal or Internal RC Oscillator One USART with Fractional Baud Rate Generator, Auto-baud, and Start-of-frame Detection Master/Slave Serial Peripheral Interface (SPI) Master/Slave TWI with Dual Address Match Standard Mode (Sm, 100kHz) Fast Mode (Fm, 400kHz) Fast Mode Plus (Fm+, 1 MHz)
3 Configurable Custom Logic (CCL) with Two Programmable Lookup Tables (LUT) Analog Comparator (AC) with Low Propagation Delay 10-bit 115ksps Analog to Digital Converter (ADC) 8-bit Digital to Analog Converter (DAC) Five Selectable Internal Voltage References: , , , and Automated CRC Memory Scan Watchdog Timer (WDT) with Window Mode, with Separate On-chip Oscillator Peripheral Touch Controller (PTC)(1) Capacitive Touch Buttons, Sliders and Wheels Wake-up on Touch Driven Shield for Improved Moisture and Noise Handling Performance Six Self-capacitance and Nine Mutual-capacitance Channels External Interrupt on All General Purpose Pins I/O and Packages: 18 Programmable I/O Lines 20-pin VQFN 3x3 and SOIC300 Temperature Ranges: -40 C to 105 C -40 C to 125 C Temperature Graded Device Options Available Speed Grades: 0-5 MHz @ 0-10 MHz @ 0-20 MHz @ : 1.
4 Only Available in Devices with 8KB Flash. ATtiny416/816 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 2 Table of 1-Series Multiplexing and Resistance Microchip Web 15 Customer Change Notification 15 Microchip Devices Code Protection 16 Quality Management System Certified by Sales and 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 31. tinyAVR 1-Series OverviewThe figure below shows the tinyAVR 1-series, laying out pin count variants and memory sizes: Vertical migration can be done upwards without code modification, since these devices are pincompatible and provide the same or even more features.
5 Downward migration may require codemodification due to fewer available instances of some Peripherals . Horizontal migration to the left reduces the pin count and therefore also the available 1-1. tinyAVR 1-Series Overview32KB16KB8KB4KB2KB8142024 PinsFlashATtiny816 ATtiny817 ATtiny814 ATtiny417 ATtiny1616 ATtiny1617 ATtiny414 ATtiny416 ATtiny412 ATtiny214 ATtiny212 ATtiny1614 Devices with different Flash memory size typically also have different SRAM and name of a device of the series contains information as depicted below:Figure 1-2. Device Designations6=20 pins4=14 pins2= 8 pinsCarrier TypeAT tiny 416 - SFRF lash size in KBtinyAVR seriesPin countPackage up to 20 pinsPackage TypeM=QFNS=SOIC300SS=SOIC150 Temperature RangeN=-40 C to +105 CF=-40 C to +125 CR=Tape & Reel ATtiny416/816 2017 Microchip Technology Inc.
6 Datasheet Preliminary SummaryDS40001933A-page Configuration Peripheral SummaryTable 1-1. Peripheral SummaryATtiny416 ATtiny816 Pins2020 SRAM256B512 BFlash4KB8 KBEEPROM128B128 BMax. frequency (MHz)202016-bit Timer/Counter type A (TCA)1116-bit Timer/Counter type B (TCB)1112-bit Timer/Counter type D (TCD)11 Real Time Counter (RTC)11 USART11 SPI11 TWI (I2C)11 ADC11 ADC channels1212 DAC11AC11 Peripheral Touch Controller (PTC)(1)No1 PTC number of self-capacitance channels(1)-6 PTC number of mutual-capacitance channels(1)-9 Custom Logic/Configurable Lookup Tables11 Window Watchdog11 Event System channels66 General purpose I/O1818 External interrupts1818 CRCSCAN11 Note: 1. The PTC takes control over the ADC while the PTC is used.
7 ATtiny416/816 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 52. Ordering ATtiny416 Table 2-1. ATtiny416 Ordering CodesOrdering Code(1)FlashPackage Type(GPC)LeadsPower SupplyOperational RangeCarrier TypeATtiny416-MNR4 KBVQFN 3x3 (ZCL) - (-40 C+105 C)Tape & ReelATtiny416-MFR4 KBVQFN 3x3 (ZCL) - (-40 C+125 C)Tape & ReelATtiny416-SNR4 KBSOIC300 (SRJ) - (-40 C+105 C)Tape & ReelATtiny416-SFR4 KBSOIC300 (SRJ) - (-40 C+125 C)Tape & Reel1. Pb-free packaging complies to the European Directive for Restriction of Hazardous Substances(RoHS directive). Also Halide free and fully ATtiny816 Table 2-2. ATtiny816 Ordering CodesOrdering Code(1)FlashPackage Type(GPC)LeadsPower SupplyOperational RangeCarrier TypeATtiny816-MNR8 KBVQFN 3x3 (ZCL) - (-40 C+105 C)Tape & ReelATtiny816-MFR8 KBVQFN 3x3 (ZCL) - (-40 C+125 C)Tape & ReelATtiny816-SNR8 KBSOIC300 (SRJ) - (-40 C+105 C)Tape & ReelATtiny816-SFR8 KBSOIC300 (SRJ) - (-40 C+125 C)Tape & ReelNote: 1.
8 Pb-free packaging complies to the European Directive for Restriction of Hazardous Substances(RoHS directive). Also Halide free and fully Green. ATtiny416/816 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 63. Block DiagramFigure 3-1. ATtiny416 Block DiagramIN/OUTDATABUSC lock generationBUS MatrixCPUUSART0 SPI0 CCLAC0 ADC0 TCA0 TCB0 AINP0 AINN0 OUTAIN[11:0]WO[5:0]RXDTXDXCKXDIRMISOMOSI SCKSSPORTSS ystem ManagementSLPCTRLRSTCTRLCLKCTRLEVENTROUT INGNETWORKDATABUSUPDICRCSRAMNVMCTRLF lashEEPROMOSC20 MOSC32 KDetectors/referencesBOD/VLMPORB andgapWDTRTCCPUINTMMSMSSOCDRSTSEXTCLKLUT n-IN[2:0]LUTn-OUTWOCLKOUTPA[7:0]PB[5:0]P C[3:0]GPIORTWI0 SDASCLTCD0WO[A,B,C,D]XOSC32kTOSC2 TOSC1To detectorsUPDI / RESETEVSYSEVOUT[n:0]DAC0 OUT ATtiny416/816 2017 Microchip Technology Inc.
9 Datasheet Preliminary SummaryDS40001933A-page 7 Figure 3-2. ATtiny816 Block DiagramAIN[11:0] X[5:0] Y[5:0] IN/OUTDATABUSC lock generationBUS MatrixCPUUSART0 SPI0 CCLAC0 ADC0 / PTCTCA0 TCB0 AINP0 AINN0 OUTWO[5:0]RXDTXDXCKXDIRMISOMOSISCKSSPORT SS ystem ManagementSLPCTRLRSTCTRLCLKCTRLEVENTROUT INGNETWORKDATABUSUPDICRCSRAMNVMCTRLF lashEEPROMOSC20 MOSC32 KDetectors/referencesBOD/VLMPORB andgapWDTRTCCPUINTMMSMSSOCDRSTSEXTCLKLUT n-IN[2:0]LUTn-OUTWOCLKOUTPA[7:0]PB[5:0]P C[3:0]GPIORTWI0 SDASCLTCD0WO[A,B,C,D]XOSC32kTOSC2 TOSC1To detectorsUPDI / RESETEVSYSEVOUT[n:0]DAC0 OUT ATtiny416/816 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 84. 20-pin SOIC123456713111214 VDDGNDPA1PA2PA4PA5PA7PA6PB08910152019181 716PB1PB4PB5PC0PC2PC3PC1PA0/RESET/UPDIPA 3/EXTCLKTOSC2/PB3 TOSC1/PB2 GPIO VDD power domainClock, crystalProgramming, Debug, ResetInput supplyGroundAnalog functionDigital function only ATtiny416/816 2017 Microchip Technology Inc.
10 Datasheet Preliminary SummaryDS40001933A-page 20-pin VQFN1234567820191817913141516101112PA1PA 4PA7PA6PB0PB1PB4PB5PC2PC3PA5 GNDVDDPA2PC0PC1PA0/RESET/UPDIPB3/TOSC2 EXTCLK /PA3PB2/TOSC1 GPIO VDD power domainClock, crystalProgramming, Debug, ResetInput supplyGroundAnalog functionDigital function only ATtiny416/816 2017 Microchip Technology Inc. Datasheet Preliminary SummaryDS40001933A-page 105. I/O Multiplexing and Multiplexed SignalsTable 5-1. PORT Function MultiplexingVQFN 20-pinSOIC 20-pinPin Name (1,2)Other/SpecialADC0 PTC(3)AC0 DAC0 USART0 SPI0 TWI0 TCA0 TCB0 TCD0 CCL1916PA0 RESETUPDIAIN0 LUT0-IN02017PA1 BREAKAIN1 TXDMOSISDALUT0-IN1118PA2 EVOUT0 AIN2 RxDMISOSCLLUT0-IN2219PA3 EXTCLKAIN3 XCKSCKWO3320 GND41 VDD52PA4 AIN4X0/Y0 XDIRSSWO4 WOALUT0-OUT63PA5 AIN5X1/Y1 OUTWO5 WOWOB74PA6 AIN6X2/Y2 AINN0 OUT85PA7 AIN7X3/Y3 AINP0 LUT1-OUT96PB5 CLKOUTAIN8 AINP1WO2107PB4 AIN9 AINN1WO1 LUT0-OUT118PB3 TOSC1 RxDWO0129PB2 TOSC2, EVOUT1 TxDWO21310PB1 AIN10X4/Y4 XCKSDAWO11411PB0 AIN11X5/Y5 XDIRSCLWO01512PC0 SCKWOWOC1613PC1 MISOWODLUT1-OUT1714PC2 EVOUT2 MOSI1815PC3 SSWO3 LUT1-IN0 Note: 1.