Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Attiny84 Datasheet – Pin Layout & Programming Guide

Attiny84 is a single chip with high performance but uses low power. The device is based on an advanced RISC architecture. Also, this microcontroller is standard because of its small external size and beautiful features. This article discusses the attiny84 datasheet pin configuration, programming tutorial, and steps.

Attiny84 Pin Configuration

Attiny84 Datasheet – Pin Layout & Programming Guide

(Schematic diagram for Attiny 84 pinout.)

Left Set Pins(1-7)

This pin leads Port B with bit 1/ oscillator pin/pin change interrupt, source 9.

Pin 4 connects to port B with bit 3/reset pin. Mainly used for debugging and programming. Also, it is a source 11 pin change interrupt.

Pin 5 is an input and output pin of the B port. Additionally, it has a 2 bit or system clock out and an external interrupt 0/timer.

It is a bidirectional input and output pin of the A with a 7 bit. Also, it is the input channel 7 of the ADC. A timer compares match Bout/Timer 1 capture/ pin interrupt change 0 from source 7.

During the ICSP programming, an ADC input channel6 (pin interrupt) changes 0 from source 6/SPI MOSI. Pin 7 is an input/output pin with a 6 bit. A USI data input/counter 1 compare match A out.

Attiny84 Datasheet – Pin Layout & Programming Guide

(a photo showing a microcontroller with eight pins.)

Right Set Pins(8-14)

It is a bidirectional input and output pin of A with a 5 bit. A USI data output/counter 1 compare with B-out matching. Similarly, during ICSP programming, an ADC input channel 5 (pin interrupt) changes 0 from source 5/SPI MISO.

Pin 9 is a bidirectional input and output A pin with a 4 bit. It operates using an ADC input channel 4. A three-wire USI clock is necessary for ICSP programming. The counter1 clock source/I2C SCL/ pin interrupt changes 0 from source 3.

It is a bidirectional input and output pin of A with a 3 bit. AN ADC input channel 3/counter0 clock source/ pin interrupt changes 0, from source 3.

Pin 12 is the input and output pin of the A port with a 2 bit. An analog comparator – input/ADC input channel 2/ pin interrupt changes 0, from source 2.

It is the input and output pin of the A port with a 1 bit. An analog comparator + input/ADC input channel 1/ pin interrupt changes 0, from source 1.

Finally, pin 14 is the input and output pin of the A port with a 0 bit. An ADC input channel 0/external analog reference voltage/ pin interrupt changes 0, from source 0.

Attiny84 Datasheet – Pin Layout & Programming Guide

(a microchip with visible gears.)

What is Attiny84?

Attiny84 is a compact size 8-Bit Microcontrollers – MCU with an AVR RISC architecture. This architecture is based on the property that the microcontroller has 14 pins. Notably, 12 pins are input/output pins. Moreover, the architecture contains a packaged microchip picoPower technology that plays a significant role in the device’s high performance.

Attiny84 has a robust instruction architecture. It gives a processing speed of 1MIPS/MHz. Therefore the device simultaneously balances the power consumption while processing a high-speed performance.

Attiny84 Datasheet – Pin Layout & Programming Guide

(a computer microcontroller.)

Attiny84 Features and Specifications

Attiny84 Alternatives

The perfect alternative to attiny84 is the attiny2313A. However, the other alternative products include; attiny48, attiny417, attiny28L, attiny88PA. Notably, atmega8A, atmega8535, atmega6490, atmega8515, and atmega645A are similar to the attiny84 features.

Attiny84 Programming Tutorial and Steps

Materials needed

The required hardware equipment includes; 

Steps and procedures

You need to follow a few steps to set up and program your attiny84. 

You can easily purchase them or reuse others from your old projects. 

Notably, when you get to step 2, an option referred to as the processor, you should click on attiny84. Also, sometimes you may not have the correct socket to plug the attiny84. So, you will need to make a socket out of jumpers. This process only depends on the programmer or Arduino board you are using as an ISP.

Next, you will connect the VCC, GND, MISO, MOSI, RST, and SCK pins to the necessary connectors. Once you have successfully connected via the USB, you should open up Blink Sketch on the Arduino IDE. 

Now, change LED_BUILTIN to 0, then press CTRL+U to upload. This change is necessary because the attiny84 lacks LED wiring. This procedure should make your program upload successful. If not, select Tools and click USBtiny ISP as the programmer.

These three steps should not give you a hard time at all.

Code;

Attiny84 Datasheet – Pin Layout & Programming Guide

(The code that you need to run.)

Notably, just like any other program, you must check its working. To perform this check, you will connect an LED further down to the ground and pin 0. Also, ensure you involve an accurate resistor and notice the LED glowing. Otherwise, check your connection and program code to ensure everything is fine.

Attiny84 Datasheet – Pin Layout & Programming Guide

(DIY electronic project with microcontroller and other electrical components.)

Summary.

Happy building! We hope this article helps you answer attiny84 questions. For more information regarding this or any of our articles, please do not hesitate to contact us.


Industrial Technology

  1. Input & Output Coupling Techniques for Amplifiers: Capacitive, Direct, and Transformer Methods
  2. VL53L0X Laser Distance Sensor: Pinout, Circuit, Specs & Practical Applications
  3. Mastering PWM in Arduino: Comprehensive Guide & Key Functions
  4. Graphene: The Ultra‑Strong, Ultra‑Conductive Carbon Layer Changing Technology
  5. Complete Guide to the Arduino Nano Pinout: Specs, Pin Functions & Programming Tips
  6. BeagleBone Black Pinout Guide: Pin Configurations, Specs & Practical Applications
  7. SG3524 Modulator IC: Pinout, Specs, and Practical Applications
  8. MOC3021 Optocoupler Datasheet – Detailed Configuration & Practical Applications
  9. Mastering HX711: Your Complete Guide to Precision Load Cell Integration
  10. Pogo Pins: Manufacturing Process & Emerging Trends in Electronics