{"id":6636,"date":"2026-06-18T15:53:39","date_gmt":"2026-06-18T15:53:39","guid":{"rendered":"https:\/\/materialparts.com\/attiny85-20pu\/"},"modified":"2026-06-18T15:53:39","modified_gmt":"2026-06-18T15:53:39","slug":"attiny85-20pu","status":"publish","type":"post","link":"https:\/\/materialparts.com\/ar\/attiny85-20pu\/","title":{"rendered":"ATtiny85-20PU"},"content":{"rendered":"<h2>\u0646\u0638\u0631\u0629 \u0639\u0627\u0645\u0629 \u0639\u0644\u0649 \u0627\u0644\u0645\u0646\u062a\u062c<\/h2>\n<p>The ATtiny85-20PU from Microchip Technology is an 8-bit AVR microcontroller with 8KB Flash, 512B SRAM, and 512B EEPROM in an 8-pin DIP package. Running at up to 20MHz with 6 I\/O pins, it is the smallest functional AVR for space-constrained and minimalist embedded projects. Ranked #7 on the 2024 PartsBox hobby components list.<\/p>\n<h2>\u0627\u0644\u0645\u0648\u0627\u0635\u0641\u0627\u062a \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629<\/h2>\n<table>\n<tr>\n<td>\u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0627\u062a<\/td>\n<td>8-bit AVR<\/td>\n<\/tr>\n<tr>\n<td>Max Frequency<\/td>\n<td>20MHz<\/td>\n<\/tr>\n<tr>\n<td>\u0641\u0644\u0627\u0634<\/td>\n<td>8KB<\/td>\n<\/tr>\n<tr>\n<td>SRAM<\/td>\n<td>512B<\/td>\n<\/tr>\n<tr>\n<td>EEPROM<\/td>\n<td>512B<\/td>\n<\/tr>\n<tr>\n<td>I\/O Pins<\/td>\n<td>6 (out of 8 pins)<\/td>\n<\/tr>\n<tr>\n<td>ADC<\/td>\n<td>4 channels, 10-bit<\/td>\n<\/tr>\n<tr>\n<td>PWM<\/td>\n<td>2 \u0642\u0646\u0648\u0627\u062a<\/td>\n<\/tr>\n<tr>\n<td>Timer<\/td>\n<td>2 (8-bit and 16-bit)<\/td>\n<\/tr>\n<tr>\n<td>\u062c\u0647\u062f \u0627\u0644\u0625\u0645\u062f\u0627\u062f<\/td>\n<td>2.7V to 5.5V (at 20MHz: 4.5-5.5V)<\/td>\n<\/tr>\n<tr>\n<td>\u0627\u0644\u062d\u0632\u0645\u0629<\/td>\n<td>8-PDIP<\/td>\n<\/tr>\n<tr>\n<td>\u062f\u0631\u062c\u0629 \u062d\u0631\u0627\u0631\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644<\/td>\n<td>-40 to +85 C<\/td>\n<\/tr>\n<\/table>\n<h2>\u0627\u0644\u0645\u064a\u0632\u0627\u062a<\/h2>\n<ul>\n<li>8KB Flash for compact firmware<\/li>\n<li>6 usable I\/O in tiny 8-pin DIP<\/li>\n<li>10-bit ADC on 4 channels<\/li>\n<li>USI (Universal Serial Interface) for SPI\/I2C<\/li>\n<li>Internal calibrated oscillator (no external crystal needed)<\/li>\n<li>Arduino IDE support via ATtinyCore<\/li>\n<\/ul>\n<h2>\u0627\u0644\u062a\u0637\u0628\u064a\u0642\u0627\u062a<\/h2>\n<ul>\n<li>Minimalist embedded controllers<\/li>\n<li>LED animation and lighting controllers<\/li>\n<li>Simple sensor reading and logging<\/li>\n<li>Hobby projects in ATtiny85 digispark boards<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Product Overview The ATtiny85-20PU from Microchip Technology is an 8-bit AVR microcontroller with 8KB Flash, 512B SRAM, and 512B EEPROM in an 8-pin DIP package. Running at up to 20MHz with 6 I\/O pins, it is the smallest functional AVR for space-constrained and minimalist embedded projects. Ranked #7 on the 2024 PartsBox hobby components list. [&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":[],"class_list":["post-6636","post","type-post","status-publish","format-standard","hentry","category-integrated-circuits-ics","category-microcontrollers-mcu"],"acf":{"brief_explanation":"8-bit AVR MCU, 8KB Flash, 512B SRAM, 6 I\/O, 8-PDIP, Arduino compatible","date_code":"","package_case":"8-PDIP","in_stock":8125,"datasheet":"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/Atmel-2586-AVR-8-bit-Microcontroller-ATtiny25-ATtiny45-ATtiny85_Datasheet.pdf","price":"$0.90 @ 1ku","product_introduction":"The ATtiny85-20PU from Microchip Technology is the most capable member of the ATtiny25\/45\/85 family, offering 8KB Flash, 512B SRAM, and 512B EEPROM in a compact 8-pin DIP package. Despite having only 8 pins, 6 are configurable as I\/O, with 4 of those supporting 10-bit ADC and 2 supporting PWM output. The USI (Universal Serial Interface) provides hardware support for SPI and I2C protocols, enabling communication with sensors, displays, and other peripherals. The internal calibrated RC oscillator runs at 8MHz (or 16MHz with PLL), eliminating the need for an external crystal. The ATtiny85 is massively popular in the maker community, ranking #7 on the 2024 PartsBox top hobby components list. It is the core of the Digispark USB development board and is fully supported by the Arduino IDE through the ATtinyCore board package.","working_principle":"The ATtiny85 uses the 8-bit AVR RISC architecture with most instructions executing in a single clock cycle. The 8KB Flash stores the program, 512B SRAM provides working memory, and 512B EEPROM offers non-volatile data storage. The I\/O pins serve multiple functions through peripheral multiplexing: PB0-PB5 can be GPIO, ADC inputs, PWM outputs, USI data\/clock, or external interrupt sources. The USI block implements a shift register with clock generation, enabling half-duplex SPI or I2C with minimal firmware overhead. The 10-bit ADC uses a successive approximation method with 65us conversion time at 125kHz ADC clock. The internal oscillator is calibrated to +\/-10% at factory, with OSCCAL register allowing runtime fine-tuning. Self-programming allows bootloader operation and firmware updates via USI.","pin_description":"<table><tr><th>Pin<\/th><th>Name<\/th><th>Function<\/th><\/tr><tr><td>1<\/td><td>PB5 (RESET\/ADC0\/dW)<\/td><td>Reset (active low), ADC input ch0, debugWIRE<\/td><\/tr><tr><td>2<\/td><td>PB3 (ADC3\/XTAL1\/CLKI)<\/td><td>ADC input ch3, external clock input<\/td><\/tr><tr><td>3<\/td><td>PB4 (ADC2\/XTAL2)<\/td><td>ADC input ch2, external crystal<\/td><\/tr><tr><td>4<\/td><td>GND<\/td><td>Ground<\/td><\/tr><tr><td>5<\/td><td>PB0 (MOSI\/DI\/SDA\/AIN0\/OC0A\/OC1A)<\/td><td>SPI MOSI, I2C SDA, analog compare+, PWM OC0A\/OC1A<\/td><\/tr><tr><td>6<\/td><td>PB1 (MISO\/DO\/AIN1\/OC0B\/OC1A)<\/td><td>SPI MISO, analog compare-, PWM OC0B<\/td><\/tr><tr><td>7<\/td><td>PB2 (SCK\/USCK\/SCL\/ADC1\/T0\/INT0\/OC1A)<\/td><td>SPI SCK, I2C SCL, ADC ch1, ext int, PWM OC1A<\/td><\/tr><tr><td>8<\/td><td>VCC<\/td><td>Supply voltage (2.7-5.5V)<\/td><\/tr><\/table>","application_scenarios":"<ul><li>Minimalist LED animation controller with 2 PWM channels in 8-pin DIP package<\/li><li>Digispark USB development board for rapid ATtiny85 prototyping<\/li><li>Simple I2C sensor reader with USI hardware and 10-bit ADC<\/li><li>Space-constrained embedded controller with 8KB Flash for compact firmware<\/li><\/ul>","alternative_models":"<table><tr><th>Model<\/th><th>Manufacturer<\/th><th>Key Difference<\/th><\/tr><tr><td>ATtiny45-20PU<\/td><td>Microchip<\/td><td>4KB Flash, 256B SRAM, half the memory<\/td><\/tr><tr><td>ATtiny84A-PU<\/td><td>Microchip<\/td><td>14-pin, 8KB Flash, 12 I\/O, more pins<\/td><\/tr><tr><td>ATmega328P-PU<\/td><td>Microchip<\/td><td>28-pin DIP, 32KB Flash, full Arduino Uno<\/td><\/tr><tr><td>PIC12F675-I\/P<\/td><td>Microchip<\/td><td>8-pin PIC, 1.75KB Flash, smaller<\/td><\/tr><\/table>"},"_links":{"self":[{"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/posts\/6636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/comments?post=6636"}],"version-history":[{"count":0,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/posts\/6636\/revisions"}],"wp:attachment":[{"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/media?parent=6636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/categories?post=6636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/tags?post=6636"},{"taxonomy":"chip_brand","embeddable":true,"href":"https:\/\/materialparts.com\/ar\/wp-json\/wp\/v2\/chip_brand?post=6636"}],"curies":[{"name":"\u062f\u0628\u0644\u064a\u0648 \u0628\u064a","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}