ATTINY13A-SH - 8-Bit 20MHz AVR Microcontroller | Microchip
N.º da peça: ATTINY13A-SH ✓ AtivoATTINY13A-SH Visão geral
An 8-bit microcontroller is a compact embedded-processing semiconductor that integrates a CPU core, program memory, data memory, I/O, and peripherals on one chip. The ATtiny13A belongs to the TinyAVR family and uses the AVR enhanced RISC architecture. Within the product hierarchy, it is an 8-bit RISC microcontroller, an embedded controller, and a semiconductor designed for cost-sensitive control tasks that require modest memory, limited I/O, and low power consumption.
The primary features include 1 KB of Flash program memory, 64 bytes of EEPROM, 64 bytes of SRAM, 20 MHz operation, six I/O ports, and an AVR instruction set with 90 powerful instructions. The manufacturer describes most instructions as completing in a single clock cycle. These characteristics make the ATTINY13A-SH suitable for compact embedded controllers, simple timers, basic logic sequencers, small motor-control functions, and low-pin-count sensing systems where a larger MCU would add unnecessary cost and board area.
Technically, the ATTINY13A combines a one-cycle-per-instruction AVR core with limited but deterministic resources. Its 1 KB Flash supports compact firmware, while the 64-byte SRAM and 64-byte EEPROM provide working and nonvolatile data storage. The device is offered in a surface-mount 8-SOIC package, allowing automated assembly and compact PCB placement. The verified distributor data identifies the device as active and lists it as an 8-bit AVR microcontroller with a 20 MHz clock.
Typical applications include small appliance controls, sensor interfaces, LED-sequencing modules, compact motor controllers, battery-operated products, and simple industrial automation nodes. For these applications, the decisive benefits are the six available I/O ports, 1 KB program-memory capacity, low-voltage operation, and compact SOIC-8 footprint. A design requiring substantially more code space, RAM, peripheral capability, or pins should use a larger ATtiny or ATmega-class controller instead.
A critical design consideration is to verify the complete operating-voltage envelope, clock configuration, reset behavior, and programming interface against the manufacturer datasheet before PCB release. Decoupling capacitors should be placed close to the supply pin, and unused inputs should be brought to a defined logic level. ISP programming should be exposed when firmware updates or production programming are required, rather than relying on an inaccessible programming interface.
This page combines the verified manufacturer specifications, distributor availability, package details, sourcing information, and practical selection guidance with a strict analysis of same-footprint drop-in alternatives. It also distinguishes genuine drop-in options from unavailable or unverifiable replacements so engineers can evaluate migration risk before modifying a PCB.
Alternativas drop-in para ATTINY13A-SH — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
ATTINY13A-SF
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
ATTINY13A-SU
✅ Drop-In ⚠️ Especificações não verificadas📋 Alternativa de referência (fora do catálogo)
ATTINY13A-SH Classificações máximas e características elétricas
| Architecture | AVR enhanced RISC |
| CPU Type | 8-bit microcontroller |
| Maximum Clock Speed | 20 MHz |
| Flash Memory | 1 KB |
| Flash Organization | 512 x 16 bits |
| EEPROM | 64 bytes |
| SRAM | 64 bytes |
| I/O Ports | 6 ports |
| Supported Supply Levels | 2.5 V, 3.3 V, and 5 V |
| Encapsulamento | 8-SOIC |
| Tipo de montagem | Surface mount |
| Instruction Count | 90 instructions |
| Execution Capability | Most instructions in one clock cycle |
| Throughput | Approaching 1 MIPS per MHz |
| Program Memory Type | In-system programmable Flash |
| Status do ciclo de vida | Active |
Configuração de pinos do ATTINY13A-SH
| Pino 1 | PB0/MOSI/DI/SDA/OC1A — Port B0 with multiplexed programming, serial, and timer functions |
| Pino 2 | PB1/MISO/DO/OC1A/OC1B — Port B1 with multiplexed programming, serial, and timer functions |
| Pino 3 | PB2/SCK/OC1B/PCINT — Port B2 with multiplexed programming, timer, and pin-change functions |
| Pino 4 | GND — Ground supply connection |
| Pino 5 | PB3/ADC3/PCINT3 — Port B3 with multiplexed analog and pin-change functions |
| Pino 6 | PB4/ADC2/PCINT2 — Port B4 with multiplexed analog and pin-change functions |
| Pino 7 | VCC — Supply voltage input |
| Pino 8 | PB5/ADC1/PCINT1/OC0B — Port B5 with multiplexed analog, pin-change, and timer functions |
Aplicações típicas
ATTINY13A-SH é adequado para 6 aplicaçãos: Compact Sensor Interface Controller, LED Sequencing and Indicator Control, Battery-Operated Utility Controller, Small Motor and Actuator Control, Small Appliance and Household Control, Programmable Logic and Test Fixture.
Compact Sensor Interface Controller
The ATTINY13A-SH fits compact sensor-interface designs that require several digital inputs, modest logic processing, and persistent configuration data without allocating a larger microcontroller package. Its six I/O ports provide direct connections for sensors, indicators, and control signals, while the 20 MHz AVR core can execute many instructions per clock cycle and approach 1 MIPS per MHz according to the Microchip manufacturer datasheet. The 64-byte EEPROM can retain calibration flags or device settings, and the 64-byte SRAM supports temporary measurement data and control variables. The designer should implement compact state-machine logic, verify the complete ADC-related pin configuration in the datasheet, and provide local supply decoupling. This part is most attractive when the required code fits within 1 KB of Flash and PCB area is more valuable than unused peripheral capacity.
Recomendado
LED Sequencing and Indicator Control
The ATTINY13A-SH is well suited to LED sequencing, status indication, and decorative lighting modules because six I/O ports are enough to drive or control multiple indicators while the 20 MHz core provides more timing headroom than many simple timer-only controllers. The AVR architecture executes most instructions in a single clock cycle, allowing the firmware to combine timing, input handling, and output updates in a compact program. Its 1 KB Flash limit encourages efficient table-based or state-machine implementations, while the 64-byte EEPROM can retain a selected mode or sequence offset. The device is particularly useful where each LED needs only a simple on-off level and the system does not require a high-current LED driver. External transistors or constant-current drivers remain necessary when indicator current exceeds the device's I/O capability.
Recomendado
Battery-Operated Utility Controller
The ATTINY13A-SH can serve as the central controller in a battery-operated utility product when its low-voltage operation and compact resource set match the design. Verified sources identify supported supply levels of 2.5 V, 3.3 V, and 5 V, allowing the MCU to operate directly from suitable low-energy rails or alongside a compact regulator. Its six I/O ports can monitor switches and drive low-load control elements, and the 64-byte EEPROM provides a small amount of nonvolatile state retention. The 20 MHz clock permits responsive control without requiring a larger processor, although active-mode energy use must be minimized through clock selection and sleep periods. Because the verified snippets do not provide detailed sleep-current figures, battery-life calculations should use the manufacturer datasheet rather than assumed consumption values. The compact 8-SOIC footprint also helps preserve board area in miniaturized products.
Recomendado
Small Motor and Actuator Control
The ATTINY13A-SH can implement basic timing and direction control for a small motor or actuator system when the external drive current remains outside the MCU's direct output rating. Six I/O ports support limit inputs, enable controls, and pulse or direction signals, while the 20 MHz AVR core is fast enough for deterministic sequencing and input debouncing. The manufacturer describes most instructions as completing in one clock cycle, helping the firmware maintain stable control timing without a complex external logic device. The 64-byte SRAM is adequate for basic counters and state variables, while the 1 KB Flash constraint favors focused control routines. Designers should use transistor or MOSFET drivers, flyback protection for inductive loads, and separate supply paths where motor transients could disturb the MCU rail.
Recomendado
Small Appliance and Household Control
The ATTINY13A-SH is appropriate for a simple household appliance controller where the product needs a few inputs, discrete outputs, a compact program, and nonvolatile operating settings. Its 1 KB Flash and 64-byte SRAM are suitable for straightforward state machines, timing functions, and button handling rather than complex user interfaces. Six I/O ports allow a designer to connect switches, indicators, or a small display segment without introducing a larger-pin-count MCU. The identified 3.3 V and 5 V supply options support both modern low-voltage control boards and legacy 5 V products. The main limitation is code capacity: menu structures, communications stacks, and extensive diagnostics may exceed the available Flash, making a larger TinyAVR such as ATTINY20-XUR or ATTINY87-SUR more appropriate. Firmware should also include startup and brownout behavior appropriate to mains-adjacent appliances.
Recomendado
Programmable Logic and Test Fixture
The ATTINY13A-SH can implement a compact programmable sequencer or test fixture controller for low-pin-count DUT routing and stimulus control. Its six I/O ports can operate digital stimulus lines or sense fixture status, while the 20 MHz AVR core provides useful timing resolution for deterministic test sequences. The 1 KB Flash capacity is adequate for a narrowly defined test recipe, and the 64-byte EEPROM can store fixture setup values or a short pattern table. This use case works best when the fixture does not need high-speed communication, large buffers, or extensive data logging. ISP programming should be accessible so test recipes can be changed efficiently, and unused inputs should be terminated to avoid false transitions. If a production system requires higher channel count or more complex protocol support, a larger TinyAVR-family controller should be evaluated instead.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para ATTINY13A-SH — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | ATTINY13A-SF | ATTINY13A-SU |
|---|---|---|---|
| Package | 8-SOIC | 8-SOIC | 8-SOIC |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 1 KB | 1 KB | 1 KB |
| I/O Ports | 6 ports | 6 ports | 6 ports |
| CPU Architecture | 8-bit AVR enhanced RISC | 8-bit AVR enhanced RISC | 8-bit AVR enhanced RISC |
Principais diferenciais
- Maintains the verified ATtiny13A performance and memory profile (vs ATTINY13A-SF)
- Uses the same compact 8-SOIC footprint (vs ATTINY13A-SF)
- Provides six I/O ports for compact embedded-control designs (vs ATTINY13A-SU)
Notas de projeto
Place the required supply bypass capacitor directly between the VCC pin and the ground return, with a short and low-inductance path. The verified sources identify 2.5 V, 3.3 V, and 5 V operating levels, but they do not provide the regulator's complete dropout, startup, or active-current curves. Use those values from the manufacturer datasheet to verify battery life and startup behavior. Do not size the regulator only from the average MCU current because the 20 MHz clock and switched I/O transitions can create transient demand.
Route the six-port control system and ISP programming interface so the device can be programmed after board assembly. The ATtiny13A datasheet notes that MPLAB Snap and ISP programming can use an 8-pin single-in-line connector arrangement with programming and reset signals. Preserve access to the programming interface, keep sensitive sensor or timing inputs away from fast switching nodes, and provide a defined state for every unused input. These steps prevent a functionally correct firmware image from becoming inaccessible or unreliable in the finished assembly.
Do not estimate firmware capacity from the ATtiny13A family's apparent simplicity. The verified limit is only 1 KB of Flash and 64 bytes of SRAM, so recursive calls, large buffers, libraries, and asynchronous serial handling can exhaust RAM. Compile with the intended AVR toolchain, review the map file, and remove diagnostic code before production. If the firmware approaches the memory limit or needs a protocol beyond the six available I/O ports, move to ATTINY20-XUR or ATTINY87-SUR rather than forcing a functionally similar cross-family part onto the board.
Keep the SOIC-8 footprint and pin assignments identical to the target PCB when evaluating ATTINY13A-SF or ATTINY13A-SU. Confirm land pattern dimensions against the package drawing, maintain the manufacturer's recommended copper and clearance geometry, and verify orientation with the pin-1 marker. Although the devices are listed as the same 8-SOIC package, ordering suffixes can encode qualification or commercial distinctions. A mechanically similar package is not sufficient evidence of a safe drop-in migration.
Informações de conformidade
The supplied verified sources do not contain explicit RoHS, REACH, AEC-Q100, lead-free, halogen-free, or conflict-minerals declarations. No compliance status has been inferred from the package, manufacturer, or general industry practice.