Microchip Technology

ATTINY4313-PU - 20MHz AVR 8-Bit MCU | Microchip Technology

N.º de pieza: ATTINY4313-PU ✓ Activo
1.8 V to 5.5 V Vdss 20-pin PDIP Package 20 MHz Speed 4 KB (2K x 16) Memory
MOQ: 1 |

ATTINY4313-PU Descripción general

The Microchip Technology ATTINY4313-PU is a 20 MHz, 8-bit AVR RISC-based microcontroller with 4 KB of flash memory, 128 bytes of EEPROM, 128 bytes of SRAM, and 18 general-purpose I/O lines, housed in a 20-pin PDIP package. It operates across a 1.8 V to 5.5 V supply range and combines a compact pin count with two timer/counter blocks and a single-wire on-chip debug interface.

A microcontroller is a programmable semiconductor that integrates a processor core, memory, and peripheral interfaces onto one device. The ATtiny4313 belongs to the tinyAVR family, a subgroup of 8-bit AVR microcontrollers within the broader embedded-control and semiconductor hierarchy. Its RISC-based architecture executes compact instructions efficiently, making it suitable for cost-sensitive control tasks that do not require the processing power of a 32-bit system.

Key features include 4 KB of program flash, 128 bytes of EEPROM for nonvolatile data, 128 bytes of SRAM for working memory, and up to 18 general-purpose I/O lines. The device supports a maximum clock frequency of 20 MHz and a 1.8 V to 5.5 V operating range. Two flexible timer/counter blocks support timing, event counting, and basic waveform-generation functions, while single-wire debug simplifies in-circuit programming and diagnosis.

The ATTINY4313 uses the AVR enhanced RISC architecture with 32 general-purpose working registers. This architecture provides direct register-oriented operation, a compact instruction set, and efficient execution of embedded-control code. The device is also compatible at the code and pin level with the ATtiny2313 and ATtiny2313A families according to Microchip application note AVR538, making it a practical upgrade path when a design requires additional flash memory while retaining an established 20-pin layout.

Typical applications include compact industrial controllers, small motor-control and timer modules, appliance interfaces, programmable logic controllers, instrumentation front ends, and low-power embedded-control nodes. Its 18 I/O lines provide enough connectivity for switches, sensors, indicators, actuators, and serial-interface peripherals while retaining an economical through-hole package for prototypes and manually assembled boards.

Designers should verify oscillator, reset, programming-interface, and decoupling connections against the manufacturer pin-description table before layout. Because the PDIP package provides generous spacing and inspection access, it is especially suitable for educational prototypes, proof-of-concept assemblies, and moderate-volume production. A surface-mount package may be preferable where PCB area, height, or automated assembly dominates the mechanical design.

This page combines the ATtiny4313 electrical characteristics with package guidance, drop-in migration options, and practical application context. It also identifies the ATtiny2313 and ATtiny2313A as code- and pin-compatible migration devices, helping engineers preserve PCB continuity while increasing available program memory from the legacy family to 4 KB.

Alternativas directas para ATTINY4313-PU — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.

Variantes de esta serie

Modelos de la misma serie compatibles directamente con ATTINY4313-PU (mismo factor de forma y huella) — difiere en Package, RoHS Status, Maximum Clock Frequency, Mounting Type, Analog Comparator.

Microchip Technology
Package: 20-pin SOIC (wide-body, 300 mil)
RoHS Status: Compliant
Mounting Type: Surface Mount
Comparar con ATTINY4313-PU →
Microchip Technology
Package: 20-PDIP
RoHS Status: Compliant (GREEN)
Maximum Clock Frequency: 10 MHz
Comparar con ATTINY4313-PU →

ATTINY2313V-10PU

✅ Sustitución directa
Microchip Technology
📦 20-pin PDIP
8-bit AVR RISC · 2 KB (1K x 16) In-System Programmable · 128 B · 128 B · 10 MHz · 1.8 V to 5.5 V · 18 · 1 x 8-bit, 1 x 16-bit with PWM

Consulte el precio

Ver hoja de datos →

ATTINY2313A-SU

✅ Sustitución directa
Microchip Technology
📦 20-pin PDIP
AVR 8-bit RISC · 20 MHz · 2 KB (1K x 16) · 128 B · 128 B · 18 · 32 · 1.8 V to 5.5 V

Consulte el precio

Ver hoja de datos →

ATTINY4313-PU Valores máximos y características eléctricas

Product Type 8-bit AVR RISC-based microcontroller
Frecuencia de reloj máxima 20 MHz
Program Flash Memory 4 KB (2K x 16)
EEPROM Memory 128 bytes
SRAM 128 bytes
General-Purpose I/O Lines 18 lines
General-Purpose Working Registers 32 registers
Operating Voltage Range 1.8 V to 5.5 V
Timer/Counter Blocks 2 blocks
Debug Interface Single-wire on-chip debugging
Architecture AVR enhanced RISC
Ancho del bus de datos 8 bits
Encapsulado 20-pin PDIP
Tipo de montaje Through-hole
Terminal Count 20 terminals
Temperature Grade Industrial
Operating Voltage 1.8 V to 5.5 V
Estado RoHS Not stated in the manufacturer product information

Configuración de pines de ATTINY4313-PU

DIP-20 Package Pinout Diagram DIP-20 20-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 DIP-20
Pin 1 PA0 — General-purpose I/O line PA0
Pin 2 PA1 — General-purpose I/O line PA1
Pin 3 PA2 — General-purpose I/O line PA2
Pin 4 PA3 — General-purpose I/O line PA3
Pin 5 GND — Ground connection
Pin 6 PA4 — General-purpose I/O line PA4
Pin 7 PA5 — General-purpose I/O line PA5
Pin 8 PA6 — General-purpose I/O line PA6
Pin 9 PA7 — General-purpose I/O line PA7
Pin 10 PB0 — General-purpose I/O line PB0
Pin 11 PB1 — General-purpose I/O line PB1
Pin 12 PB2 — General-purpose I/O line PB2
Pin 13 PB3 — General-purpose I/O line PB3
Pin 14 PB4 — General-purpose I/O line PB4
Pin 15 GND — Ground connection
Pin 16 XTAL1 — Oscillator input
Pin 17 XTAL2 — Oscillator output
Pin 18 PC0 — General-purpose I/O line PC0
Pin 19 PC1 — General-purpose I/O line PC1
Pin 20 PC2 — General-purpose I/O line PC2

Aplicaciones típicas

ATTINY4313-PU es adecuado para 6 aplicacións: Compact Industrial Controller, Timer and Motor-Control Module, Appliance Interface Controller, Programmable Logic Controller, Instrumentation Front End, Low-Power Embedded Sensor Node.

🏭

Compact Industrial Controller

The ATTINY4313-PU fits compact industrial control modules that need deterministic digital input/output handling without a larger processor or package. Its 20 MHz maximum clock rate supports responsive firmware, while 18 general-purpose I/O lines can connect switches, status indicators, interlocks, and discrete sensors. Two timer/counter blocks are useful for event counting, periodic service routines, and timing-based control. The 4 KB flash capacity provides room for application logic, while 128 bytes of EEPROM can retain configuration data. In a 20-pin PDIP enclosure, the through-hole format also simplifies prototype assembly and inspection. Industrial suitability should be assessed against the exact environmental requirements of the installed equipment.

⚡

Timer and Motor-Control Module

The ATTINY4313-PU is appropriate for small timer, pulse-counting, or low-power motor-control modules where two timer/counter blocks and an 8-bit RISC core provide sufficient control capability. Its 20 MHz clock allows firmware to execute timing calculations and state-machine logic efficiently, while the 18 I/O lines can accept position or limit inputs and drive control outputs. The 4 KB flash supports compact control routines, and the 128-byte EEPROM can preserve settings across power cycles. For motor designs, pin assignment must match the ATtiny4313 datasheet and external transistor or driver circuitry must handle the required current and voltage. Firmware should include safe startup and default-off behavior.

🔧

Appliance Interface Controller

The ATTINY4313-PU can serve as the local controller in an appliance or instrument front panel, coordinating button inputs, indicator outputs, and simple sensor readings. Eighteen I/O lines provide flexible connectivity in a limited board area, while the 1.8 V to 5.5 V operating range allows integration with multiple low-voltage logic rails. Its 128 bytes of SRAM support compact working data, and the two timer/counter blocks can handle debouncing intervals, elapsed-time measurement, or periodic display updates. The PDIP package is convenient where technicians need access to replaceable or hand-assembled controllers. Firmware organization should include input validation and fail-safe output states because the device may directly coordinate user-facing equipment.

🏭

Programmable Logic Controller

The ATTINY4313-PU is well suited to small PLC-like logic modules that combine digital inputs, relay-control outputs, timing functions, and nonvolatile configuration. The 20 MHz AVR core and two timer/counter blocks support event sequencing and deterministic I/O updates, while 4 KB of flash provides space for a structured control program. The 18 I/O lines can be divided between sensing and actuator functions, although the final allocation must follow the manufacturer pin-description table. EEPROM storage can retain configuration values independently of firmware. For safety-related equipment, use appropriate external isolation and protection because the microcontroller itself is not a certified safety component. Firmware should include startup, watchdog, and output-default strategies where required by the application.

🖥️

Instrumentation Front End

The ATTINY4313-PU can manage low-bandwidth instrumentation front ends that require status signaling, local adjustment, and supervisory control around a higher-level processor. Its 18 I/O lines can support limit inputs, mode controls, alarm outputs, and communication links, while its two timer/counter blocks support sampling intervals or measurement timing. The 20 MHz clock allows responsive interrupt-driven operation, and 128 bytes of EEPROM can retain calibration or setup parameters. Because the device provides 128 bytes of SRAM, application code should avoid unnecessary buffering and use compact state structures. The 20-pin PDIP package is useful in laboratory prototypes and serviceable industrial instruments. Signal conditioning, reference accuracy, and analog-to-digital conversion requirements must be implemented separately.

🧩

Low-Power Embedded Sensor Node

The ATTINY4313-PU can support a compact sensor node that wakes periodically, reads digital inputs, updates a simple indicator, and returns to a low-power state. Its two timer/counter blocks are useful for periodic wake-up timing, while 18 I/O lines can accommodate digital sensors and control signals. The 1.8 V minimum operating voltage broadens compatibility with low-voltage systems, and the 128-byte EEPROM can retain node configuration without consuming RAM. Actual standby and active-current performance should be measured under the selected clock and peripheral configuration. Because the available family information emphasizes processor, memory, timers, and I/O rather than a detailed power specification, confirm sleep-mode behavior in the manufacturer data sheet before setting battery-life targets.

Resumen de productos recomendados

ATtiny2313A Code- and pin-compatible ATtiny family migration device Se usa en: Compact Industrial Controller, Timer and Motor-Control Module, Appliance Interface Controller, Programmable Logic Controller, Instrumentation Front End, Low-Power Embedded Sensor Node ATtiny2313 Code- and pin-compatible legacy family migration device Se usa en: Compact Industrial Controller, Timer and Motor-Control Module, Appliance Interface Controller, Programmable Logic Controller, Instrumentation Front End, Low-Power Embedded Sensor Node
What are the key specifications of ATTINY4313-PU that engineers should know?
The ATTINY4313-PU is a 20 MHz, 8-bit AVR microcontroller with 4 KB of flash, 128 bytes of EEPROM, 128 bytes of SRAM, 18 I/O lines, and a 1.8 V to 5.5 V operating range in a 20-pin PDIP package. According to the Microchip ATtiny2313A/4313 data sheet, it provides 32 working registers, two timer/counter blocks, and single-wire on-chip debugging. These characteristics make it appropriate for compact embedded controllers where deterministic timing, low pin count, and simple programming are more important than high processing throughput.
What is the operating voltage of ATTINY4313-PU?
The ATTINY4313-PU operates from 1.8 V to 5.5 V. The Microchip ATtiny2313A/4313 data sheet identifies this range as the device operating-voltage specification, while the manufacturer product page describes the part as a picoPower 8-bit AVR RISC-based microcontroller. When designing the power circuit, select capacitors and external components rated for the complete rail range and verify clock, reset, and debug behavior at the lowest intended supply voltage.
Where can I download the ATTINY4313-PU datasheet PDF?
The official ATTINY4313-PU data sheet is available at the Microchip DeviceDoc URL listed on this page. It is titled “ATtiny2313A/4313 Data Sheet” and covers the shared ATtiny2313A and ATtiny4313 family, including memory, clock, electrical characteristics, timers, I/O ports, and package information. Use the manufacturer PDF for pin assignments and design-limit decisions because copied distributor summaries may omit operating conditions or qualification details.
Where can I find the ATTINY4313-PU pinout?
The ATTINY4313-PU pinout is documented in the manufacturer’s ATtiny2313A/4313 data sheet and can be represented by the 20-pin PDIP pin list on this page. The package is pin compatible with the ATtiny2313 and ATtiny2313A, according to Microchip application note AVR538. When assigning PCB tracks, use the pin-description table in the official data sheet to confirm oscillator, reset, programming, power, ground, and I/O functions.
Can ATTINY4313 replace ATTINY2313 without changing the PCB?
The ATTINY4313 is a code- and pin-compatible upgrade for the ATtiny2313 and ATtiny2313A according to Microchip application note AVR538. The main memory difference is program capacity: the ATTINY4313 provides 4 KB of flash, supporting firmware expansion where the legacy ATtiny2313 family is constrained. Review device-specific clock, peripheral, and fuse configuration in the official data sheets before treating the migration as unconditional.
What is the difference between ATTINY4313 and ATTINY2313A?
The principal documented difference is memory size: the ATTINY4313 provides 4 KB of flash, while the ATtiny2313A belongs to the lower-memory part of the shared family. Microchip application note AVR538 identifies the devices as code and pin compatible. The ATTINY4313 is therefore attractive when an existing ATtiny2313A board needs more program space, although timing, peripheral use, and configuration should still be checked against the manufacturer data sheets.
When should I choose ATTINY4313 over ATtiny2313A?
Choose the ATTINY4313 when an existing ATtiny2313A design approaches its firmware limit or requires more program space while retaining the established 20-pin PCB. According to Microchip application note AVR538, the two devices are code and pin compatible, which reduces hardware redesign. Retain the ATtiny2313A when its smaller memory footprint is sufficient and the design is validated around that specific device.
Is ATTINY4313 suitable for a compact embedded-control application?
The ATTINY4313 is suitable for compact embedded-control applications requiring an 8-bit processor, 18 I/O lines, two timer/counter blocks, and a maximum clock frequency of 20 MHz. Its 4 KB flash and 128 bytes of SRAM are adequate for focused control firmware, while the 1.8 V to 5.5 V range supports low-voltage designs. The 20-pin PDIP package also makes the device practical for prototypes and manually assembled boards.
What are the best drop-in replacements for ATTINY4313-PU?
The verified code- and pin-compatible alternatives are the ATtiny2313 and ATtiny2313A in compatible 20-pin PDIP configurations. Microchip application note AVR538 confirms the compatibility relationship, and the manufacturer data sheet compares the ATtiny2313A and ATtiny4313 memory configurations. These choices preserve the established board layout, but they are primarily migration devices rather than equivalent replacements with identical 4 KB flash capacity.
What can replace ATTINY4313-PU on the same PCB?
The ATTINY2313 and ATtiny2313A can replace the ATTINY4313 when the required memory and device functions fit their respective configurations. Their compatibility is supported by Microchip application note AVR538, which states that the ATtiny4313 is code and pin compatible with the ATtiny2313 and ATtiny2313A. Because the ATTINY4313 has 4 KB of flash, a replacement that uses less memory should be checked against the compiled firmware size before production use.
Is ATTINY4313 the same as ATtiny2313A?
The ATTINY4313 and ATtiny2313A are pin and code compatible, but they are not identical devices. The principal difference described by Microchip is program-memory capacity, with the ATTINY4313 offering 4 KB of flash. This relationship makes the ATTINY4313 an upgrade path for ATtiny2313A designs, while the exact suffix, package, temperature grade, and ordering configuration must still match the intended assembly.
What is the best Microchip equivalent for ATTINY4313-PU?
The best verified Microchip migration choices are the ATtiny2313 and ATtiny2313A because Microchip application note AVR538 confirms code and pin compatibility with the ATTINY4313. The ATTINY4313 remains preferable when 4 KB of program flash is required, because the legacy devices provide less program memory. No verified cross-manufacturer equivalent with confirmed package and pin compatibility was established.
How is ATTINY4313-PU programmed and debugged?
The ATTINY4313-PU supports single-wire on-chip debugging, as stated in the Microchip ATtiny2313A/4313 family information. Its AVR architecture can be programmed using compatible AVR development tools, and the ATtiny2313A/4313 data sheet contains the device-specific programming and fuse information. For a new design, follow the official programming interface and reset requirements rather than adapting circuitry from an unrelated AVR model.
Where can I buy ATTINY4313-PU and request a quote?
Use the “Request a Quote” form on this page to request current commercial availability, lead time, and purchasing terms for the exact ATTINY4313-PU ordering code. The part is a standard 20-pin PDIP industrial-grade AVR microcontroller, and the manufacturer product page identifies the ATtiny4313 family. Specify the complete MPN when requesting a quotation so the package, temperature grade, and lead-free ordering configuration are not confused with related variants.
What is the lead time for ATTINY4313-PU?
Current lead time and stock should be confirmed through the “Request a Quote” form on this page using the complete ATTINY4313-PU part number. Lead time can vary with order quantity, manufacturing status, and supply conditions, so a quote request provides the most appropriate commercial response. For technical qualification, use the Microchip product page and family data sheet to confirm that the device remains suitable for the intended design.
Is ATTINY4313-PU in stock?
Current inventory for ATTINY4313-PU should be requested through the “Request a Quote” form on this page. Include the quantity, target date, and required package suffix so the response covers the exact 20-pin PDIP device rather than a related ATtiny4313 ordering code. For product identity, the manufacturer page and the 20-pin PDIP package designation are the appropriate references during procurement review.

Datos de referencia de ingeniería para ATTINY4313-PU — comparación, orientación de diseño e información de cumplimiento.

Guía de selección

Choose the ATTINY4313-PU when a design needs a compact 8-bit AVR controller with 4 KB of flash, 18 I/O lines, two timer/counter blocks, and a 1.8 V to 5.5 V operating range. Select the ATtiny2313A when its smaller program memory is sufficient and an established ATtiny2313A design is being maintained; it preserves the 20-pin footprint but provides only 2 KB of flash. Use the ATtiny2313 for legacy designs with still smaller memory requirements and confirmed code compatibility. None of these choices should be made solely from package dimensions: verify clock configuration, timer usage, fuse settings, interrupt behavior, programming method, and the compiled firmware size against the manufacturer data sheet. For new compact products, the ATTINY4313 offers the most program space of these verified migration devices without requiring a board-layout change.

Comparación con alternativas

Parámetro Este producto ATtiny2313 ATtiny2313A
Brand Microchip Technology Microchip Technology Microchip Technology
Package 20-pin PDIP 20-pin PDIP 20-pin PDIP
Processor Architecture 8-bit AVR enhanced RISC 8-bit AVR 8-bit AVR
Maximum Clock Frequency 20 MHz 20 MHz 20 MHz
Program Flash Memory 4 KB 1 KB 2 KB
General-Purpose I/O Lines 18 lines 18 lines 18 lines
Compatibility Target device Code- and pin-compatible upgrade path from ATtiny4313 Code- and pin-compatible upgrade path from ATtiny4313

Diferenciadores clave

  • Twice the program memory of the ATtiny2313A (frente a ATtiny2313A)
  • Four times the program memory of the ATtiny2313 (frente a ATtiny2313)
  • Pin and code continuity during memory upgrades (frente a ATtiny2313A)

Notas de diseño

Use the manufacturer pin-description table to assign the 20-pin PDIP footprint, especially the oscillator, reset, programming, supply, and ground connections. Keep the crystal or clock network close to pins 16 and 17, place the supply decoupling capacitor at the supply pins, and provide a clean ground return. The DIP outline is electrically compatible with the documented ATtiny2313 and ATtiny2313A migration path, but every auxiliary peripheral connection must still be checked after a family change.

Do not treat the ATtiny2313 and ATtiny2313A as exact functional replacements merely because their pinouts match. The ATTINY4313 has 4 KB of flash, while the alternatives provide less program memory, so compare the linked binary size with the replacement device capacity before production. Also review timer, peripheral, interrupt-vector, and fuse-related assumptions in the official family data sheet whenever existing firmware is migrated.

Plan the power rail for the full 1.8 V to 5.5 V operating range, including voltage tolerance, startup behavior, and current demand from attached peripherals. Place the local bypass capacitor close to the device’s supply and ground pins and keep power-return paths compact. External LEDs, sensors, and interface circuits should not load the MCU supply pins indirectly; use suitable drivers where their current exceeds what the I/O configuration can support.

Although the through-hole package is easy to prototype, preserve the electrical layout quality expected for a mixed-signal embedded system. Keep oscillator traces short, separate sensitive input routes from switching or high-current outputs, and provide a stable ground reference for every connected peripheral. Include the programming interface in the PCB design if firmware updates are expected, and confirm that the chosen programmer supplies the required clock and control signals.

Información de cumplimiento

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Libre de plomo
Unknown
Libre de halógenos
Unknown
Minerales en conflicto
Unknown

The industrial temperature grade and terminal count are stated in the product information. Specific RoHS, REACH, AEC-Q100, lead-free, halogen-free, and conflict-minerals declarations are not established by the available manufacturer text.

Búsquedas relacionadas

attiny4313 datasheet attiny4313 pinout attiny4313 arduino attiny4313 pdf attiny4313 programming ATTINY4313-PU datasheet ATTINY4313-PU pinout ATTINY4313-PU equivalent ATTINY4313-PU replacement ATTINY4313-PU vs ATtiny2313A ATTINY4313-PU 20-pin PDIP pinout ATTINY4313-PU 20MHz 4KB flash ATTINY4313-PU price ATTINY4313-PU stock Microchip Technology ATTINY4313-PU

Componentes & términos relacionados

Microchip Technology ATTINY4313-PU ATtiny4313 ATtiny2313 ATtiny2313A ATtiny4313-PU package AVR enhanced RISC architecture tinyAVR family 8-bit microcontroller RISC microcontroller embedded controller semiconductor 4 KB flash memory 128-byte EEPROM 128-byte SRAM 18 general-purpose I/O lines 20 MHz clock 1.8 V to 5.5 V operating range single-wire on-chip debugging timer/counter blocks 20-pin PDIP through-hole package embedded-control application code-compatible upgrade
RFQ de presupuesto rápido
Complete los detalles — nuestro equipo de ventas responderá en un plazo de 24 horas
Número de pieza Fabricante Encapsulado QTY Precio objetivo Total
✓
¡Presupuesto enviado!

Responderemos a su correo electrónico en un plazo de 24 horas

1
RFQ enviado
2
Presupuesto recibido
3
Pedido realizado
4
Pago
5
Enviado
6
Entregado
Ver detalles del RFQ