ATtiny45 Microcontroller Pinout, Specifications, Datasheet, Features & More
In this article we are going to discuss about ATtiny45 microcontroller pinout, specifications, datasheet, features & other details about this microcontroller.
ATtiny45 Features / Technical Specifications
- High efficiency design
- Low current consumption 300uA in use & 0.1uA in sleep mode on 1.8V.
- Total six analog inputs
- built in 4 kbytes of flash memory
- built in 256b of SRAM
- Built in 256b of EEPROM
- Circuitry contains 32 Registers
- Minimum cycles per instruction design or Advance RISC
- Programming lock feature for code security
- Built in two 8-bit timers one is high speed and other is compare mode.
- Total six I/O pins
- Universal Serial Interface feature
- Two pulse width modulation channels
- Watchdog programmable Timer & Oscillator
- Operating voltage as low as 1.8V DC to 5.5V DC max.
|Pin#||Pin Description||Pin Function||Pin Description|
|PB5 is reset pin of the IC, one wire debugging, analog pin, Analog to digital input channel 0, bootloader reprogram and remove, PCINT5|
|2||PB3 also GPIO3||XTAL1|
|Clock input from external source, Analog to digital input channel 3, Crystal input, PWM|
|3||PB4 also GPIO4||XTAL2|
|Crystal output, clock input from external source, Analog to digital input channel 2.|
|4||GND||Ground||Ground / Negative Supply of microcontroller|
|5||PB0 also GPIO0||MOSI|
|PWM ouput, SPI communication, timer, USI|
|6||PB1 also GPIO1||MISO|
|SPI data communication, PWM output, timer, USI|
|7||PB2 also GPIO2||SCK|
|Analog to digital input channel 1, timer, USI, clock input|
|8||VCC||Positive Voltage||Positive supply of the microcontroller.|
ATtiny45 is a small size microcontroller available in 8 pin dip and other packages. It is a latest design microcontroller & it contains variety of built in features which are not available in that size and kind of microcontroller previously. The internal design is built to obtain very less power which makes it ideal for battery operated, solar powered and portable devices. It can also be used to shrink small arduino projects. However the user must note that it cannot perform as the ATmega328p because due to its size and design it contains less flash memory, EEPROM and SRAM but if the program code is comes under these limits then you are ready to go. Moreover the 4 kilobytes of flash memory 256 bytes of SRAM & 256 bytes of EEPROM is quite enough to run a variety of programs which you run on ATmega328p. For example you can attach sensors, send data and almost any simple task that your perform with arduino.
There are wide varieties of applications and projects that can be built using the ATtiny45 microcontroller, some of the applications are listed below.
Machinery controlling systems in different industries
Solar based projects
Home, Office, factories IOT based applications
Weather systems & applications
Wireless data transfer & communication applications
Security based projects
Medical & health related devices
and many more…
Replacement or Equivalent
ATtiny25 and ATtiny85 are the two most suitable alternatives of ATtiny45. But the internal Flash, SRAM and EEPROM values are different of all the three microcontrollers.
How to Use ATtiny45
Like any other microcontroller ATtiny45 require programing code that can be inserted or saved through its ISP software. For doing so all you have require is an ISP and the code of the program you want to run in this microcontroller so first of all you have to make an ISP.
There are different many different ISP options available to program the chip but the most affordable and easy procedure is to make the available arduino UNO board as an ISP which we are going to discuss here but you can also use other methods like any dedicated ISP device that can be connected between your computer and the ATtiny45.
For making arduino UNO as an ISP for ATtiny45 first you need to program the arduino UNO board but don’t worry it’s not that difficult the tutorial mentioned in the below link will provide you all the essential information about it. It can be used to program not only ATtiny85 but also ATtiny45 microcontroller.
Getting long term performance with ATtiny45
The microcontroller chips are sensitive components therefore care must be taking while soldering and operating the device. Below are some of the guidelines to get best and long term performance from Attiny45.
The maximum voltage of the chip is 5.5V therefore do not provide more than that, always make sure to check the voltage with the multimeter before providing to the chip. The max current limit on single I/O pin is 40mA do not increased more than it. Moreover the max current requirement of the chip is 200mA.
Always check the chip pins placement in the circuit diagram before connecting in the circuit. Wrongly connecting the pins may result in internally damaging the chip. If you are soldering the chip directly to the circuit board do not provide more heat than the recommendation in the datasheet or use an IC socket to get rid of accidentally applying more than recommended heat to the chip.
Do not store the chip in temperature below -65 Celsius and above +150 Celsius and operate above -55 Celsius and below +125 Celsius.
To Download the datasheet copy and paste the below link in your browser: