{"id":6499,"date":"2026-06-17T03:22:52","date_gmt":"2026-06-17T03:22:52","guid":{"rendered":"https:\/\/materialparts.com\/attiny2313-20pu\/"},"modified":"2026-06-17T03:22:52","modified_gmt":"2026-06-17T03:22:52","slug":"attiny2313-20pu","status":"publish","type":"post","link":"https:\/\/materialparts.com\/es\/attiny2313-20pu\/","title":{"rendered":"ATTINY2313-20PU"},"content":{"rendered":"<h2>Productos<\/h2>\n<p>The ATTINY2313-20PU from Microchip Technology (formerly Atmel) is an 8-bit AVR RISC microcontroller with 2KB Flash, 128 bytes SRAM, and 128 bytes EEPROM in a 20-pin PDIP through-hole package. Running at up to 20 MHz from 2.7V to 5.5V, it provides 18 I\/O pins, one 8-bit and one 16-bit timer, UART, SPI, and I2C interfaces for simple embedded control.<\/p>\n<h2>Especificaciones<\/h2>\n<ul>\n<li>Core: AVR 8-bit RISC (most instructions single-cycle)<\/li>\n<li>Max Frequency: 20 MHz<\/li>\n<li>Flash: 2KB (10,000 erase\/write cycles)<\/li>\n<li>SRAM: 128 bytes<\/li>\n<li>EEPROM: 128 bytes (100,000 cycles)<\/li>\n<li>Timers: 1x 8-bit, 1x 16-bit<\/li>\n<li>Interfaces: USI (SPI\/I2C), UART<\/li>\n<li>PWM: 4 channels<\/li>\n<li>GPIO: 18 I\/O<\/li>\n<li>Analog Comparator: 1<\/li>\n<li>Supply Voltage: 2.7V ~ 5.5V<\/li>\n<li>Active Current: 3.6 mA at 20 MHz, 5V<\/li>\n<li>Power-Down: 0.1 \u00b5A<\/li>\n<li>Operating Temperature: -40\u00b0C ~ 85\u00b0C<\/li>\n<li>Package: PDIP-20 (through-hole)<\/li>\n<\/ul>\n<h2>Caracter\u00edsticas<\/h2>\n<ul>\n<li>High-performance AVR RISC architecture with 120 instructions<\/li>\n<li>32 x 8 general-purpose working registers<\/li>\n<li>On-chip 2-cycle hardware multiplier<\/li>\n<li>USI module for SPI and I2C communication<\/li>\n<li>Full-duplex UART with frame error detection<\/li>\n<li>External and internal interrupt sources<\/li>\n<li>Programmable watchdog timer with separate oscillator<\/li>\n<li>In-System Programming (ISP) via SPI<\/li>\n<li>DebugWIRE on-chip debugging<\/li>\n<\/ul>\n<h2>Aplicaciones<\/h2>\n<ul>\n<li>Hobbyist and maker projects (Arduino-compatible)<\/li>\n<li>Simple protocol converters and gateways<\/li>\n<li>Low-cost sensor nodes<\/li>\n<li>LED lighting controllers<\/li>\n<li>Small motor control applications<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Product Overview The ATTINY2313-20PU from Microchip Technology (formerly Atmel) is an 8-bit AVR RISC microcontroller with 2KB Flash, 128 bytes SRAM, and 128 bytes EEPROM in a 20-pin PDIP through-hole package. Running at up to 20 MHz from 2.7V to 5.5V, it provides 18 I\/O pins, one 8-bit and one 16-bit timer, UART, SPI, and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13,25],"tags":[],"chip_brand":[134],"class_list":["post-6499","post","type-post","status-publish","format-standard","hentry","category-integrated-circuits-ics","category-microcontrollers-mcu","chip_brand-microchip"],"acf":{"brief_explanation":"8-bit AVR MCU, 20MHz, 2KB Flash, 128B SRAM, UART\/SPI\/I2C, 18 I\/O, PDIP-20 through-hole","date_code":"","package_case":"PDIP-20","in_stock":9800,"datasheet":"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/Atmel-2543-AVR-ATtiny2313_Datasheet.pdf","price":"$1.15","product_introduction":"The ATTINY2313-20PU from Microchip Technology is a low-power 8-bit AVR RISC microcontroller that provides 2KB of Flash program memory, 128 bytes of SRAM, and 128 bytes of data EEPROM in a hobbyist-friendly 20-pin PDIP through-hole package. The AVR architecture executes most instructions in a single clock cycle, delivering up to 20 MIPS throughput at 20 MHz. The device features a Universal Serial Interface (USI) that can be configured for SPI or I2C communication, a full-duplex UART for serial communication, and four PWM channels for LED dimming and motor control. The PU suffix indicates PDIP-20 package, ideal for breadboard prototyping and educational use.","working_principle":"The ATTINY2313-20PU operates on the AVR 8-bit RISC architecture with 32 general-purpose working registers directly connected to the ALU, allowing two registers to be accessed in a single clock cycle. This Harvard architecture uses separate memories and buses for program and data, enabling simultaneous access. The USI module provides a flexible serial interface that can operate as SPI master\/slave or I2C master\/slave using a minimal hardware implementation (shift register, counter, and control logic) supplemented by software for protocol handling. The UART supports full-duplex communication with configurable data format (5-9 data bits) and frame error detection. The 16-bit timer supports input capture, output compare, and PWM generation for precise timing control. ISP programming allows firmware updates without removing the device from the circuit.","pin_description":"<table><tr><th>Pin<\/th><th>Name<\/th><th>Function<\/th><\/tr><tr><td>1<\/td><td>RESET\/PA2<\/td><td>Reset (active low, active by default) \/ Port A2<\/td><\/tr><tr><td>2<\/td><td>RXD\/PD0<\/td><td>UART Receive \/ Port D0<\/td><\/tr><tr><td>3<\/td><td>TXD\/PD1<\/td><td>UART Transmit \/ Port D1<\/td><\/tr><tr><td>4<\/td><td>PA1\/XCK\/CKOUT<\/td><td>Port A1 \/ USI Clock \/ Clock Output<\/td><\/tr><tr><td>5<\/td><td>PA0\/OC1B\/ICP<\/td><td>Port A0 \/ Timer1 Output Compare B \/ Input Capture<\/td><\/tr><tr><td>6<\/td><td>PB0\/OC0A<\/td><td>Port B0 \/ Timer0 Output Compare A (PWM)<\/td><\/tr><tr><td>7<\/td><td>PB1\/OC0B\/OC1A<\/td><td>Port B1 \/ Timer0 OC B \/ Timer1 OC A (PWM)<\/td><\/tr><tr><td>8<\/td><td>PB2\/OC1B\/SS<\/td><td>Port B2 \/ Timer1 OC B \/ SPI Slave Select<\/td><\/tr><tr><td>9<\/td><td>PB3\/MOSI\/OC2<\/td><td>Port B3 \/ SPI MOSI \/ USI Data<\/td><\/tr><tr><td>10<\/td><td>PB4\/MISO<\/td><td>Port B4 \/ SPI MISO<\/td><\/tr><\/table>","application_scenarios":"The ATTINY2313-20PU is a favorite in the maker community for its PDIP-20 through-hole package that fits standard breadboards, making it ideal for Arduino-based projects and educational electronics. It serves as a simple protocol converter between UART and I2C\/SPI buses in system integration tasks. For LED lighting controllers, the four PWM channels enable smooth dimming of multiple LED strings. In low-cost sensor nodes, the UART provides wired communication while the analog comparator enables simple threshold detection. The 2KB Flash is sufficient for small control programs, and the ISP capability allows field firmware updates.","alternative_models":"<table><tr><th>Model<\/th><th>Manufacturer<\/th><th>Key Difference<\/th><\/tr><tr><td>ATTINY4313-20PU<\/td><td>Microchip<\/td><td>4KB Flash, 256B RAM variant<\/td><\/tr><tr><td>ATTINY2313A-PU<\/td><td>Microchip<\/td><td>Rev A, lower power consumption<\/td><\/tr><tr><td>ATmega328P-PU<\/td><td>Microchip<\/td><td>32KB Flash, PDIP-28, Arduino Uno MCU<\/td><\/tr><\/table>"},"_links":{"self":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/posts\/6499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/comments?post=6499"}],"version-history":[{"count":0,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/posts\/6499\/revisions"}],"wp:attachment":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/media?parent=6499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/categories?post=6499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/tags?post=6499"},{"taxonomy":"chip_brand","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/chip_brand?post=6499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}