Skip to main content

ATtiny4313 8-bit Microcontroller

ATtiny4313 is a RISC-based high-performance low-power 8-bit microcontroller with 4 KB flash memory, 256 Bytes EEPROM, and 256 Bytes SRAM. It has 20 pins and 18 general-purpose I/O lines. It is configured with 32 general purpose working registers and all these registers are connected with ALU (Arithmetic Logic Unit). ATtiny4313 is a powerful microcontroller that gives a highly flexible and cost-effective solution to many embedded control applications. It is supported a full suite of program and system development tools including; C-compiler, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits.

ATtiny4313 Microcontroller Pinout

 

ATtiny4313 Microcontroller Pinout Configuration 

Pin No

Pin Name

Pin Description

20

VCC

Digital Supply Voltage

10

GND

Ground

1

PA2

Port A:

Port A is a 3-bit bi-directional I/O port with internal pull-up resistors.

4

PA1

5

PA0

2

PD0

Port D:

Port D is a 7-bit bi-directional I/O port with internal pull-up resistors.

3

PD1

6

PD2

7

PD3

8

PD4

9

PD5

11

PD6

12

PB0

Port B:

Port B is an 8-bit bi-directional I/O port with internal pull-up resistors.

13

PB1

14

PB2

15

PB3

16

PB4

17

PB5

18

PB6

19

PB7

 

Features & Specifications

  • 8-bit RISC based microcontroller
  • Flash program memory: 4 KB
  • SRAM data memory: 256 Bytes
  • EEPROM data memory: 256 Bytes
  • I/O pins: 18
  • Timers/counters: one 8-bit and one 16-bit
  • Four PWM channels
  • Full Duplex USART
  • Operating Temperature: -55°C to +125°C
  • Storage Temperature: -65°C to +150°C
  • Operating voltage: 1.8-5.5 V
  • Maximum Operating Voltage: 6 V
  • DC Current per I/O pins: 40 mA
  • DC Current for VCC and ground pins: 200 mA
  • Voltage on any Pin except RESET with respect to Ground: -0.5 V to VCC+0.5 V
  • Voltage on RESET with respect to Ground: -0.5 V to +13 V

 

ATTiny4313 Equivalents

ATtiny2313

 

Other ATtiny Series Microcontrollers

ATTINY25, ATTINY85, ATTINY45

 

Note: Complete technical details about this microcontroller can be found in the ATTiny4313 datasheet given at the end of the page.

 

How to use ATTINY4313 Microcontroller

ATTINY4313 works like any other microcontroller. If stated in one sentence, all that microcontrollers do is execute the application program saved in its memory. So, in the case of controllers, all there is to do is write an application program. Without programming controller simply stays idle. ATTiny4313 can be connected and programmed using Arduino. For that, you need to download the board information for ATtiny4313.

http://www.mediafire.com/file/ju012s124w4gbl2/tiny.zip/file

Copy the tiny folder from the above link and paste it to the Arduino folder. Now, restart the software and follow the below steps to upload the program.

 

Step-1 After downloading board information, connect Arduino pins with ATtiny4313 pins as given in the below table.

Arduino

ATtiny4313

13

19

12

18

11

17

10

1

5V

20 VCC

GND

10 GND

 

Step-2 Connect Arduino with the computer and upload Arduino ISP to Arduino.

Step-3 Select ATtiny4313 board.

Step-4 Tools > Programmer > select “Arduino as ISP”.

Step-5 Now, upload the program. Before uploading confirm that, the program has no errors and double-check the connection of ATtiny4313 and Arduino.

 

Applications

  • Used in development boards.
  • Hobby projects
  • Drivers
  • Industrial control systems.​
  • SMPS and Power Regulation systems.
  • Analog signal measuring and manipulations.
  • Embedded systems like coffee machines, vending machines.
  • Display units.
  • Peripheral Interface system.

 

2D Model and Dimensions

If you are designing a PCB or Perf board with this component then the following picture from the Datasheet will be useful to know its package type and dimensions.

  ATTiny4313 Dimensions

Common Dimensions (in mm)

SYMBOL

MIN

MAX

A

5.334

A1

0.381

D

25.493

25.984

E

7.62

8.255

E1

6.096

7.112

B

0.356

0.559

B1

1.27

1.551

L

2.921

3.81

C

0.203

0.356

eB

10.922

eC

0

1.524

e

2.540 TYP

Component Datasheet

Related Post



Join 20K+subscribers

We will never spam you.

* indicates required

Be a part of our ever growing community.