Hi, friends I hope you all are having fun in your life. In today’s post, we will have a detailed look at Introduction to Attiny85. It is the category of the microcontroller which is like the Arduino board but with some difference that it has less input and output pinouts small memory and less form factor than the Arduino. This module is available in the form of an integrated circuit instead of the board. If suitable power is given to it can be used as a bare chip on the breadboard.
This module is provided with universal serial bus interfacing such as a complete USB port like Digistump or micro USB. As it has small size packaging it can be interfaced in numerous ways. In today’s post, we will have a detailed look at its working, pinout, operation, and applications. So let’s get started with Introduction to Attiny85.
Introduction to Attiny85
- The Attiny85 is a less powerful microchip eight-bit AVR-based microcontroller and is used in different robotics and Arduino simulations.
- It consists of eight-byte ISP flash memory, five hundred twelve-byte EEPROM, five hundred-twelve-byte static RAM.
- This module has six GP inputs and outputs connections that have thirty 32 registers, and a counter of eight bits having compared mode.
- In this controller, there is a high-speed operating counter of eight-bit exits, USI (User System Interface), inner and outer interrupts four channels for ten-bit analog-to-digital converter.
- It has a programmable watchdog timer with the inner oscillator and it gets a throughput of twenty MPIS at a frequency of twenty megahertz.
- The operating voltage of this module is 2.7 volts to 5.5 volts.
- Through this module communication through the I2C and SPI can be used.
Features of Attiny85
- These are some features of Attiny 85 which are discussed here.
- This module has programmable flash memory.
- The size of programmable memory is eight kilobytes.
- The operating speed of these modules is twenty MIPS.
- It has a static RAM of five hundred twelve bytes.
- It has EEPROM which has a data storage space of 512 bytes.
- Digital communication can be done through this module with the use of I2C and SPi.
- There are 2 timers of eight bits exits in this module.
- There is one comparator exit in the structure of this module.
- Its operating temperature range is -40 to 85.
- Its operating voltage is 1.8 to 5.5 volts.
- There are eight pinout exits in this module.
- It has six inputs and output programmable pinouts.
Pinout of Attiny85
- There are main eight pinouts of Attiny85 which are described here with the detail.
PB5 (PCINT5/ADC0/dW)
- It is the fifth pinout of PORTB and is used to change of pin interrupt used as reset pinout analog to digital converter at channel zero and debugging at inputs and outputs pinout.
B3 (PCINT3/XTAL1/CLKI/ADC3)
- It is the third pinout of port B and is used as an interrupt change crustal oscillator connection, to connect the exterior clock as input and at channel three analog to digital converter connection.
PB4 (PCINT4/XTAL2/CLKO/OC1B/ADC2)
- It is the fourth pinout of port B used as an interrupt pinout at source four, the connection of the crystal oscillator provides an output of the system clock, timer connection, and analog to digital converter at channel two.
GND
- It is ground pinout.
B0(MOSI/DI/SDA/AIN0/OC0A/AREF/ PCINT0)
- It is zero pinouts of port B used as connection of SPI USI data input 2 and 3 wire modes, analog comparator, timer, AREF and as interrupt pinout.
PB1(MISO/D0/AIN1/OC0B/OC1A/ PCINT1)
- It is the first pinout of port B and is used as an MISO, as output, analog comparator, timer, as to interrupt pinout.
PB2(SCK/USCK/SCL/ADC1/T0/INT0/ PCINT2)
- It is the second pinout of port of B and used as the serial clock input, USI clock timer, and exterior interrupt.
Vcc
- A positive voltage is given at this pinout.
How many bits is ATtiny85?
- It is an 8-bit controller that shows that it can process 8 bits. That limited range of functions that it processed and also best and uses low power as compare to 16-bit or 32-bit microcontrollers.
- The 8-bit configuration shows that it can used to perform arithmetic and logic functions effectively. However, it is not good to use complicated functions such as high-speed data processing.
Is ATtiny85 a microcontroller?
- It is a microcontroller that comes with a small size and type of IC that comes with a processor core, memory, etc.
- It is made for use as an embedded system and gets programmed for different operations.
- The design of Atiny85 comes with the best to use where real-time tie processing is needed like sensor data acquisition and audio processing. It is also used where low-power uses come with a small form factor.
ATtiny85 Block Diagram
- In the below figure you can see the block diagram of Attiny85.
IO Port/pins:
- It comes with a single bidirectional input out port, and PORT B has 6 pons that are PB0 to PB5.
ADC:
- It comes with 10 bit analog-to-digital converter through the use of multiplexer. 4 analog input channels help to connect different analog sensors.
PWM:
- It comes with two 8-bit timers and is used for the creation of PWM signal and has 8-bit PWM with 4 output channels.
Timers:
- It has two 8-bit timers and is used for counter. The timer is used for producing of time delay with the use of a crystal clock. The COunter is used for counting external functions on the external pinout
SPI:
- It comes with 4 4-wire SPI having MOSI, MISO, SCK, and RESET pins. It is used to communicate through uC, sensor, uP, , or any peripheral device.
IIC/I2C:
- It is called two-wire interfacing since it needs two wires for serial data and a serial clock
ATtiny Memory
ROM:
- ATtiny85 microcontroller comes with 8KB flash memory to store data. It is nonvolatile which shows that it stores data for a longer time. Flash memory is 8K bytes and each byte is individually addressable.
RAM Random access memory:
- 512 bytes of Static random access memory is used for data storing at the time of program execution. Contrary to flash memory SRAM is volatile and losses data when power is off
EEPROM:
- ATtiny85 comes with 512 bytes of EEPROM is also non-volatile memory and is used for storing data between power cycles. EEPROM is accessed with the use of instructions and is slower working than SRAM t.
Applications of Attiny85
- These are some applications of Attiny85 which are discussed here.
- It is employed in different types of od circuit boards.
- It is used in engineering and robotic projects.
- In industries for controlling of different machines.
- It is used in different power regulation systems.
- It is used in different types of display units.
ATtiny85 and Arduino Duemilanove
ATtiny85 |
Arduino Duemilanove
|
Pin 1 (RESET) | Pin 10 |
Pin 4 (GND) | GND |
Pin 5 | Pin 11 |
Pin 6 | Pin 12 |
Pin 7 | Pin 13 |
Pin 8 | 5V |
ATtiny85 packages
- 8-pin DIP (Dual Inline Package):
- 8-pin SOIC (Small Outline Integrated Circuit)
- 8-pin MLP (Micro Leadframe Package):
- 20-pin QFN (Quad Flat No-Lead):.
What is ATtiny85 used for?
- ATtiny85 microcontroller is used for performing different operations for a single integrated circuit. Some controller has features to perform different functions such as timers, SPI communication, BOD (Brown Out Reset), I2C communication, Interrupt &ADC.
What is the form factor of ATtiny85?
- The ATtiny85 comes in 8P3, 8S2, 20M1 features that show that 25/45 are supported form factor of the ATtiny85 chip.
What is the difference between ATtiny85 and Atmega328P?
- The Attiny85 comes with 8 pins and Atmega328P has 28 pins. It defines that Attiny 85 comes with a limited number of input/output pins. that can
- Attiny85 programmers should used for different features to connect components to the microcontroller.
What pins are usable on ATtiny85?
- The Attiny 85 has 8 in and just five are useable input output pins and 14 pin ATtiny84 comes with 11 fully usable I/O pins.
What is the speed of ATtiny85?
- its rated highest clock speed is20MHz at 4.5 – 5.5V.
Does ATtiny85 support SPI?
- Attiny85 not compatible with some hardware such as SPI and I2C protocols like ATmega series.
What is the use of ATtiny85 microcontroller?
- ATTiny85 is used for reading data from sensors, like light or temperature sensors. The controller also make communications with other modules through I2C protocol.
What is the difference between Attiny84 and ATtiny85?
- Attiny 85 comes with 8 pin IC having 5 pins for Digital I/O,3 analog inputs and 2 PWM pins.
- Attiny84 has 14 14-pin IC and comes with 8 pins for PA registers used for digital output, digital input, analog input and 3 are for PWM output and PB7 supported PWM.
That is a detailed post about Attiny85 if you have any questions ask in the comments. Thanks for reading. have a good day,