Phone

    00852-6915 1330

ATtiny13 Microcontroller: Pinout, Datasheet, Programming [Video]

  • Contents

ATtiny13 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture.

 

This is an introduction article about ATtiny13 the 8-bit microcontroller, after reading this, you will learn about ATtiny13's pinout, features, its alternatives, its difference between ATtiny13a, and how to program it, etc. Stay tuned fellas!

This tutorial video shows in detailed how to program ATtiny13 with Arduino.


Catalog

ATtiny13 Description

ATtiny13 Pinout

ATtiny13 Features

ATtiny13 Parameter

ATtiny13 Block Diagram

ATtiny13 Alternative

ATtiny13 vs ATtiny13a

ATtiny13 Programming

ATtiny13 Package

ATtiny13 Manufacturer

Component Datasheet

FAQ


ATtiny13 Description

The ATtiny13  is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. It has 8 pins, 6 of which can be used as  I/O  pins. By executing powerful instructions in a single clock cycle, the ATtiny13  achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.

 

ATtiny13 also includes debugWIRE  On-Chip debugging, an In-System Programmable SPI Port, and Low-Power Idle, Power-down, and Standby Modes. A programmable brownout detection circuit is also used.

 

It operates at a wide range of voltages, from 1.8V to 5.5V. As a result, it can be used in logic-level operations at 1.8V, 3.3V, or 5.0V. The 1.8V input voltage for the ATtiny13  V, on the other hand, supports 0-4 Mhz operation. For frequencies up to 10 Mhz, the minimum voltage for ATtiny13  is 2.7V, and for frequencies up to 20 Mhz, the minimum voltage is 4.5V-5.5V.


ATtiny13 Pinout

ATtiny13 AVR Microcontroller ATtiny13 AVR Microcontroller Pinout
ATtiny13 AVR Microcontroller ATtiny13 AVR Microcontroller Pinout

 

Pin Number Pin Name Description
1 (PCINT5/RESET/ADC0/dW)PB5 Pin of Port B Bit 5 or ADC Input Channel 0 or debugWIRE I/O or Pin change Interrupt 0, source 3 or Reset pin mainly used for programming
2 (PCINT3/CLKI/ADC3) PB3 Bidirectional I/O Pin of Port B Bit 3 or ADC Input Channel 3 or External Clock Input or Pin change Interrupt 0, source 3
3 (PCINT4/ADC2) PB4 Bidirectional I/O Pin of Port B Bit 4 or ADC Input Channel 2 or Pin change Interrupt 0, source 4
4 GND Ground Pin of MCU
5 PB0 (MOȘI/AIN0/OC0A/PCINT0) Bidirectional I/O Pin of Port B Bit 0 or SPI MOSI used for programming or Analog comparator + or Pin change interrupt0, source 0 or Timer/Counter0 compare Match A Out
6 PB1(MISO/AIN1/OC0B/INT0/PCINT1) Bidirectional I/O Pin of Port B Bit 1 or Analog comparator input - or External input 0 input or Timer/Counter1 Compare Match B Out or Pin change Interrupt 0, source 1 or SPI MISO used for programming
7 PB2 (SCK/ADC1/T0/PCINT2) Bidirectional I/O Pin of Port B Bit 2 or ADC Input Channel 1 or Timer/Counter0 Clock Source or Serial Clock input or Pin change Interrupt 0, source 2 or external clock input, used for programming
8 VCC Positive Pin of MCU (+5V)

ATtiny13 Features

  • High Performance, Low Power AVR  ® 8-Bit Microcontroller
  • Advanced  RISC Architecture

          – 120 Powerful Instructions – Most Single Clock Cycle Execution

          – 32 x 8 General Purpose Working Registers

          – Fully Static Operation

         – Up to 20 MIPS Througput at 20 MHz

  • High Endurance Non-volatile Memory segments

        – 1K Bytes of In-System Self-programmable Flash program memory

        – 64 Bytes  EEPROM 

        – 64 Bytes Internal SRAM

        – Write/Erase cyles: 10,000 Flash/100,000 EEPROM

        – Data retention: 20 years at 85°C/100 years at 25°C (see page 6)

        – Programming Lock for Self-Programming Flash &  EEPROM Data Security

  • Peripheral Features

       – One 8-bit Timer/Counter with Prescaler and Two PWM Channels

       – 4-channel, 10-bit ADC  with Internal Voltage Reference

       – Programmable Watchdog Timer with Separate On-chip Oscillator

       – On-chip Analog Comparator

  • Special Microcontroller Features

       –  debugWIRE On-chip Debug System

       – In-System Programmable via SPI Port

       – External and Internal Interrupt Sources

       – Low Power Idle, ADC  Noise Reduction, and Power-down Modes

       – Enhanced Power-on Reset Circuit

       – Programmable Brown-out Detection Circuit

       – Internal Calibrated Oscillator

  • I/O and Packages

       – 8-pin PDIP/SOIC: Six Programmable I/O Lines

       – 20-pad MLF: Six Programmable I/O Lines

  • Operating Voltage:

       – 1.8 - 5.5V for ATtiny13  V

       – 2.7 - 5.5V for ATtiny13 

  • Speed Grade

       – ATtiny13V  : 0 - 4 MHz @ 1.8 - 5.5V, 0 - 10 MHz @ 2.7 - 5.5V

       –  ATtiny13 : 0 - 10 MHz @ 2.7 - 5.5V, 0 - 20 MHz @ 4.5 - 5.5V

  • Industrial Temperature Range
  • Low Power Consumption

       – Active Mode:

  • 1 MHz, 1.8V: 240 µA

       – Power-down Mode:

       < 0.1 µA at 1.8V


ATtiny13 Parameter

Manufacturer: Microchip Technology
Series: AVR® ATtiny
Packaging: Tube
Part Status: Active
Core Processor: AVR
Core Size: 8-Bit
Speed: 10MHz
Connectivity: -
Peripherals: Brown-out Detect/Reset POR PWM WDT
Number of I/O: 6
Program Memory Size: 1KB (512 x 16)
Program Memory Type: FLASH
EEPROM Size: 64 x 8
RAM Size: 64 x 8
Voltage - Supply (Vcc/Vdd): 1.8V ~ 5.5V
Data Converters: A/D 4x10b
Oscillator Type: Internal
Operating Temperature: -40°C ~ 85°C (TA)
Mounting Type: Through Hole
Package / Case: 8-DIP (0.300" 7.62mm)
Supplier Device Package: 8-PDIP
Base Part Number: ATTINY13

ATtiny13 Block Diagram

ATtiny13 Block Diagram


ATtiny13 Alternative

  • ATtiny2313A (Exact Alternative with the new release)
  • ATtiny417
  • ATtiny28L
  • ATtiny48
  • ATmega88PA
  • ATmega8A
  • ATmega8515
  • ATmega8535
  • ATmega645A
  • ATmega6490

ATtiny13 vs ATtiny13a

ATtiny13a

ATtiny13a

A-grade AVRs are minor improvements over the previous iteration; these improvements vary from chip to chip, e.g. the difference between ATtiny2313 and ATtiny2313A is different from the difference between ATmega128 and ATmega128A.

 

To be more specific, the ATtiny13 is the original version and uses a different process technology than the ATtiny13A. The A-suffixed parts are fabricated with a low power process marketed as "picoPower", and the main difference is that they generally consume less power at the same voltage and frequency.

attiny13 circuit          attiny13a circuit

Regarding differences from the point of view of code compatibility, I see no reason why the ATtiny13A would not be code and binary compatible with programs written for the ATtiny13. However, the reverse is not strictly the case: While the instruction sets and most peripherals are identical, the ATtiny13A has the extra registers PRR (Power Reduction Register) and BODCR (Brown-Out Detector Control Register).


ATtiny13 Programming

AVR microcontrollers can be programmed using various software options available on the market. Some people continue to program AVR MCUs in Assembly language. The information provided below pertains to the most advanced and widely used software and compiler developed by Atmel (now Microchip).

 

To program the AVR microcontroller, we'll need an IDE (Integrated Development Environment), which is where the programming happens. A compiler is where our program is converted into MCU-readable HEX files.

 

IDE: Atmel Studio 7

Compiler: AVR and ARM Toolchains

 

Microchip has provided both of these pieces of software for free. They can be obtained directly from their official website. I've also included a link for your convenience. Install them on your computer once they've been downloaded.

 

We'll need a device called ATAtmel-ICE to dump or upload our code into AVR. The ATAAtmel - ICE programmer/debugger is a straightforward in-circuit debugger that is controlled by a PC running Atmel Studio on a Windows platform. The ATAAtmel-ICE programmer/debugger is an essential tool in the toolbox of a development engineer. The ATtiny13 Programming Circuit is depicted in the diagram below.

attiny13 programming circuit

Users can also use the USB ASP AVR Programming Device in addition to this official programmer for low-cost programming solutions. In addition, we will require other hardware such as a Perf board or breadboard, a Soldering station, AVR ICs, Crystal oscillators, capacitors, and so on.


ATtiny13 Package

ATtiny13 Package


ATtiny13 Manufacturer

Microchip Technology Inc. is a leading provider of microcontroller and analog semiconductors, providing low-risk product development, lower total system cost and faster time to market for thousands of diverse customer applications worldwide. Headquartered in Chandler, Arizona, Microchip offers outstanding technical support along with dependable delivery and quality.


Component Datasheet

ATtiny13 Microcontroller Datasheet


FAQ

What is the ATtiny13 based on?

AVR enhanced RISC architecture

 

How many pins does the ATtiny13 have?

8 pins

 

How many MIPS per MHz does the ATtiny13 achieve throughputs?

1 MIPS per MHz

 

What type of circuit is used in the ATtiny13?

A programmable brownout detection circuit

 

What language does some people continue to program AVR MCUs in?

Assembly language

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserved.