{"id":7818,"date":"2026-06-27T03:41:07","date_gmt":"2026-06-27T03:41:07","guid":{"rendered":"https:\/\/materialparts.com\/attiny2313-20pu-2\/"},"modified":"2026-06-27T03:41:07","modified_gmt":"2026-06-27T03:41:07","slug":"attiny2313-20pu-2","status":"publish","type":"post","link":"https:\/\/materialparts.com\/es\/attiny2313-20pu-2\/","title":{"rendered":"ATTINY2313-20PU"},"content":{"rendered":"<h2>Productos<\/h2>\n<p>The ATTINY2313-20PU is a high-performance 8-bit AVR RISC microcontroller from Microchip Technology with 2KB Flash, 128B EEPROM, 128B SRAM, 20 MIPS at 20 MHz, USI, full-duplex UART, and debugWIRE in a 20-pin PDIP package.<\/p>\n<h2>Especificaciones<\/h2>\n<table>\n<tr>\n<td>N\u00facleo<\/td>\n<td>AVR 8-bit RISC<\/td>\n<\/tr>\n<tr>\n<td>Max Clock Speed<\/td>\n<td>20 MHz<\/td>\n<\/tr>\n<tr>\n<td>Throughput<\/td>\n<td>20 MIPS at 20 MHz<\/td>\n<\/tr>\n<tr>\n<td>Flash Memory<\/td>\n<td>2 KB (ISP)<\/td>\n<\/tr>\n<tr>\n<td>EEPROM<\/td>\n<td>128 bytes<\/td>\n<\/tr>\n<tr>\n<td>SRAM<\/td>\n<td>128 bytes<\/td>\n<\/tr>\n<tr>\n<td>I\/O Pins<\/td>\n<td>18<\/td>\n<\/tr>\n<tr>\n<td>Temporizadores<\/td>\n<td>2 x 8-bit, 1 x 16-bit<\/td>\n<\/tr>\n<tr>\n<td>PWM Channels<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>Comunicaci\u00f3n<\/td>\n<td>UART (full-duplex), USI (SPI\/I2C)<\/td>\n<\/tr>\n<tr>\n<td>Analog Comparator<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>Tensi\u00f3n de alimentaci\u00f3n<\/td>\n<td>2.7 V to 5.5 V (ATtiny2313V: 1.8V)<\/td>\n<\/tr>\n<tr>\n<td>Active Current<\/td>\n<td>2.4 mA at 20 MHz, 5V<\/td>\n<\/tr>\n<tr>\n<td>Power-Down Current<\/td>\n<td>0.1 \u00b5A typical<\/td>\n<\/tr>\n<tr>\n<td>Debug Interface<\/td>\n<td>debugWIRE<\/td>\n<\/tr>\n<tr>\n<td>Temperatura de funcionamiento<\/td>\n<td>-40\u00b0C to +85\u00b0C<\/td>\n<\/tr>\n<tr>\n<td>Paquete<\/td>\n<td>PDIP-20 (300 mil)<\/td>\n<\/tr>\n<\/table>\n<h2>Caracter\u00edsticas<\/h2>\n<ul>\n<li>High-performance AVR RISC architecture<\/li>\n<li>Most instructions execute in a single clock cycle<\/li>\n<li>20 MIPS throughput at 20 MHz<\/li>\n<li>2KB ISP Flash with 10,000 write\/erase cycles<\/li>\n<li>128 bytes EEPROM with 100,000 write\/erase cycles<\/li>\n<li>Universal Serial Interface (USI) for SPI and I2C<\/li>\n<li>Full-duplex UART with hardware framing<\/li>\n<li>debugWIRE on-chip debugging<\/li>\n<li>4 PWM channels via timer output compare<\/li>\n<li>External and internal interrupt sources<\/li>\n<\/ul>\n<h2>Aplicaciones<\/h2>\n<ul>\n<li>Hobby and maker projects<\/li>\n<li>Simple embedded controllers<\/li>\n<li>Protocol converters and bridges<\/li>\n<li>Sensor interface modules<\/li>\n<li>LED lighting controllers<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Product Overview The ATTINY2313-20PU is a high-performance 8-bit AVR RISC microcontroller from Microchip Technology with 2KB Flash, 128B EEPROM, 128B SRAM, 20 MIPS at 20 MHz, USI, full-duplex UART, and debugWIRE in a 20-pin PDIP package. Key Specifications Core AVR 8-bit RISC Max Clock Speed 20 MHz Throughput 20 MIPS at 20 MHz Flash Memory [&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-7818","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, 2KB Flash, 128B EEPROM, 20MHz, UART, USI, PDIP-20","date_code":"","package_case":"PDIP-20 (300 mil, 7.62 x 25.9 mm)","in_stock":7840,"datasheet":"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/doc2543.pdf","price":"$1.52 @ 1ku","product_introduction":"The ATTINY2313-20PU is a high-performance 8-bit AVR RISC microcontroller from Microchip Technology that combines 2KB ISP Flash, 128 bytes EEPROM, and 128 bytes SRAM in a through-hole PDIP-20 package ideal for prototyping and hobby projects. The AVR core achieves 20 MIPS throughput at 20 MHz by executing most instructions in a single clock cycle. Communication interfaces include a full-duplex UART with hardware framing and a Universal Serial Interface (USI) that can implement SPI or I2C with minimal software overhead. The device features two 8-bit timers and one 16-bit timer with 4 PWM channels, one analog comparator, and debugWIRE for on-chip debugging. Operating from 2.7V to 5.5V with 0.1 \u00b5A power-down current, it suits battery-powered applications.","working_principle":"The ATTINY2313 uses Microchip's AVR RISC architecture with a 2-stage pipeline (fetch and execute) and a orthogonal instruction set. Most instructions execute in a single clock cycle because the 16-bit instruction word encodes both the operation and the operands, allowing the ALU to read from and write to all 32 general-purpose registers in one cycle. The Flash program memory is organized as 16-bit words, and the linear address space maps registers, I\/O, SRAM, and EEPROM into a unified addressing scheme. The USI (Universal Serial Interface) is a minimal hardware shift register with a 4-bit counter that can implement SPI or I2C by generating clock edges and shift pulses under software control, requiring less silicon area than dedicated peripherals. The UART transmitter shifts data out with automatically generated start and stop bits, while the receiver samples incoming data at mid-bit for noise tolerance. The debugWIRE interface uses a single-wire bidirectional connection on the RESET pin for on-chip debugging, allowing breakpoint setting and register inspection without a JTAG interface.","pin_description":"<table border=\"1\" cellpadding=\"4\">\n<tr><th>Pin<\/th><th>Name<\/th><th>Type<\/th><th>Description<\/th><\/tr>\n<tr><td>1<\/td><td>PA2\/RESET\/dW<\/td><td>I\/O\/System<\/td><td>Port A2, reset input, debugWIRE<\/td><\/tr>\n<tr><td>2<\/td><td>PD0\/RXD<\/td><td>I\/O<\/td><td>Port D0, UART receive<\/td><\/tr>\n<tr><td>3<\/td><td>PD1\/TXD<\/td><td>I\/O<\/td><td>Port D1, UART transmit<\/td><\/tr>\n<tr><td>4<\/td><td>PA1\/XTAL2<\/td><td>I\/O<\/td><td>Port A1, crystal oscillator output<\/td><\/tr>\n<tr><td>5<\/td><td>PA0\/XTAL1<\/td><td>I\/O<\/td><td>Port A0, crystal oscillator input<\/td><\/tr>\n<tr><td>6<\/td><td>PD2\/INT0<\/td><td>I\/O<\/td><td>Port D2, external interrupt 0<\/td><\/tr>\n<tr><td>7<\/td><td>PD3\/INT1<\/td><td>I\/O<\/td><td>Port D3, external interrupt 1<\/td><\/tr>\n<tr><td>8<\/td><td>PD4\/T0<\/td><td>I\/O<\/td><td>Port D4, Timer 0 external clock<\/td><\/tr>\n<tr><td>9<\/td><td>PD5\/T1<\/td><td>I\/O<\/td><td>Port D5, Timer 1 external clock<\/td><\/tr>\n<tr><td>10<\/td><td>GND<\/td><td>Power<\/td><td>Ground<\/td><\/tr>\n<tr><td>11<\/td><td>PD6\/ICP<\/td><td>I\/O<\/td><td>Port D6, Timer 1 input capture<\/td><\/tr>\n<tr><td>12<\/td><td>PB0\/AIN0<\/td><td>I\/O<\/td><td>Port B0, comparator positive input<\/td><\/tr>\n<tr><td>13<\/td><td>PB1\/AIN1<\/td><td>I\/O<\/td><td>Port B1, comparator negative input<\/td><\/tr>\n<tr><td>14<\/td><td>PB2\/OC0A<\/td><td>I\/O<\/td><td>Port B2, Timer 0 output compare A<\/td><\/tr>\n<tr><td>15<\/td><td>PB3\/OC1A<\/td><td>I\/O<\/td><td>Port B3, Timer 1 output compare A<\/td><\/tr>\n<tr><td>16<\/td><td>PB4\/OC1B<\/td><td>I\/O<\/td><td>Port B4, Timer 1 output compare B<\/td><\/tr>\n<tr><td>17<\/td><td>PB5\/MOSI\/DI\/SDA<\/td><td>I\/O<\/td><td>Port B5, SPI MOSI\/USI data\/I2C SDA<\/td><\/tr>\n<tr><td>18<\/td><td>PB6\/MISO\/DO<\/td><td>I\/O<\/td><td>Port B6, SPI MISO\/USI data out<\/td><\/tr>\n<tr><td>19<\/td><td>PB7\/SCK\/SCL<\/td><td>I\/O<\/td><td>Port B7, SPI clock\/I2C SCL<\/td><\/tr>\n<tr><td>20<\/td><td>VCC<\/td><td>Power<\/td><td>Supply voltage (2.7-5.5V)<\/td><\/tr>\n<\/table>","application_scenarios":"<ul>\n<li><strong>Maker\/Hobby Projects:<\/strong> PDIP-20 package fits breadboards; UART and debugWIRE simplify prototyping with Arduino IDE and AVRDUDE<\/li>\n<li><strong>Protocol Bridges:<\/strong> USI and UART enable serial protocol conversion (SPI-to-UART, I2C-to-UART) in sensor interface modules<\/li>\n<li><strong>LED Controllers:<\/strong> 4 PWM channels drive RGBW LEDs with smooth dimming; 20 MHz supports high PWM frequencies<\/li>\n<li><strong>Battery-Powered Sensors:<\/strong> 0.1 \u00b5A power-down and 2.7V minimum operation suit coin-cell and single-cell Li-Ion applications<\/li>\n<li><strong>Simple Controllers:<\/strong> 2KB Flash and 18 I\/O pins provide enough resources for state machines, relay controllers, and simple automation<\/li>\n<\/ul>","alternative_models":"<table border=\"1\" cellpadding=\"4\">\n<tr><th>Model<\/th><th>Manufacturer<\/th><th>Key Difference<\/th><\/tr>\n<tr><td>ATTINY2313A-PU<\/td><td>Microchip<\/td><td>Newer revision, 1.8V min, picoPower<\/td><\/tr>\n<tr><td>ATTINY4313-PU<\/td><td>Microchip<\/td><td>4KB Flash, 256B EEPROM, 256B RAM<\/td><\/tr>\n<tr><td>ATTINY85-20PU<\/td><td>Microchip<\/td><td>8KB Flash, PDIP-8, fewer pins<\/td><\/tr>\n<tr><td>ATMEGA328P-PU<\/td><td>Microchip<\/td><td>32KB Flash, 2KB RAM, PDIP-28<\/td><\/tr>\n<tr><td>PIC16F690-I\/P<\/td><td>Microchip<\/td><td>7KB Flash, 14-bit core, PDIP-20<\/td><\/tr>\n<\/table>"},"_links":{"self":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/posts\/7818","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=7818"}],"version-history":[{"count":0,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/posts\/7818\/revisions"}],"wp:attachment":[{"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/media?parent=7818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/categories?post=7818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/tags?post=7818"},{"taxonomy":"chip_brand","embeddable":true,"href":"https:\/\/materialparts.com\/es\/wp-json\/wp\/v2\/chip_brand?post=7818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}