ATTINY5-TSHR - 8-Bit 12MHz AVR MCU | Microchip Technology
MPN: ATTINY5-TSHR ✗ کۆتایی ژیانATTINY5-TSHR گشتی
An 8-bit AVR microcontroller is a compact embedded-processing device that combines a reduced instruction set computer core, nonvolatile program flash, SRAM, timers, and serial programming into one integrated circuit. The ATTINY5 belongs to the low-resource ATtiny family within the broader hierarchy of 8-bit microcontroller, embedded controller, and semiconductor products. Its small memory capacity makes it most appropriate for focused control, sensing, and signal-generation functions rather than general-purpose computing.
The principal features include 512 bytes of flash organized as 256 words by 16 bits, 32 bytes of SRAM, 16 general-purpose working registers, and a 16-bit timer/counter with two PWM channels. The MCU also provides four external interrupts and one comparator. Its internal oscillator removes the need for an external clock in applications that do not require precise external timing. In-system programming supports programming and firmware updates without removing the device from a circuit.
The AVR architecture executes most instructions in a single clock cycle and supports a compact 54-instruction instruction set. Four I/O pins are sufficient for simple control outputs, push-button inputs, LED indicators, or communication interfaces sharing limited pins. The 32-byte SRAM can hold a small working state, while the 512-byte program memory can store compact firmware routines. These constraints make code and stack planning important when the application includes interrupts or multiple routines.
Typical uses include low-power timers, simple motor or LED control, battery-operated sensor nodes, programmable switches, and compact consumer accessories. The 1.8 V minimum operating voltage supports energy-efficient designs, while operation up to 5.5 V provides compatibility with conventional 5 V control circuits. The SOT-23-6 package supports automated assembly but leaves little board area for external components.
Designers should verify every use of the four I/O pins because reset and programming requirements can constrain their availability. Firmware should also remain within the 512-byte flash and 32-byte SRAM limits. The small package, limited I/O, and restricted memory make an ATtiny10 or ATtiny4 more appropriate only when the alternative's documented memory and pin requirements still satisfy the design.
This page consolidates verified manufacturer and distributor specifications, practical design guidance, pricing context, and same-package replacement analysis. It also distinguishes documented drop-in options from related devices that are not electrically or software interchangeable.
جێگرەوەکانی جێگۆڕکێ بۆ ATTINY5-TSHR — هەمان پاکەت، پین بە پین گونجاو. ئەو بەشانەی پاکەتی جیاوازیان هەیە و پێویستیان بە چاککردنەوەی PCB هەیە لابراون.
جۆرەکان لەم زنجیرەیەدا
مۆدێلەکانی هەمان زنجیرە کە بە شێوەی ڕاستەوخۆ گونجاون لەگەڵ ATTINY5-TSHR (هەمان شێوە و پێکهاتەی شوێن) — جیاوازە لە Timer/Counter, Package, Product Type, Program Memory, Program Memory Size.
ATTINY4-TSHR
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →ATTINY9-TSHR
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →ATTINY10-TSHR
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →ATTINY10-TSHRA0
✅ جێگرەوەی ڕاستەوخۆ📋 جێگرەوەی سەرچاوە (لە کاتالۆگدا نییە)
ATTINY5-TSHR زۆرترین ڕێژە و تایبەتمەندییە کارەباییەکان
| Microcontroller Type | 8-bit AVR RISC microcontroller |
| Program Memory Size | 512 bytes (256 x 16) |
| Program Memory Type | ISP flash |
| SRAM Size | 32 bytes (32 x 8 bits) |
| Maximum Clock Speed | 12 MHz |
| Operating Voltage Range | 1.8 V to 5.5 V DC |
| Number of General-Purpose I/O Lines | 4 lines |
| General-Purpose Working Registers | 16 registers |
| Timer/Counter | 16-bit timer/counter with 2 PWM channels |
| External Interrupts | 4 |
| Comparator Count | 1 |
| Instruction Set | 54 AVR instructions |
| Oscillator Type | Internal |
| Programming Interface | In-system programming (ISP) |
| پاکێج | 6-pin SOT-23 |
| جۆری دامەزراندن | Surface mount |
| Shipping Package | Tape and reel |
| دۆخی RoHS | unknown |
| REACH Status | unknown |
ڕێکخستنی پینی ATTINY5-TSHR
| پین 1 | PB3 — General-purpose I/O line |
| پین 2 | PB2 — General-purpose I/O line |
| پین 3 | PB1 — General-purpose I/O line |
| پین 4 | GND — Ground |
| پین 5 | PB0 — General-purpose I/O line |
| پین 6 | PB4/RESET — General-purpose I/O and reset function |
بەکارهێنانە باوەکان
ATTINY5-TSHR گونجاوە بۆ 6 بەکارھێنانs: Compact Timer and Delay Controller, LED Dimming and Indicator Control, Battery-Powered Sensor Node, Programmable Switch and Relay Logic, Consumer Accessory Controller, Low-Power Control Module.
Compact Timer and Delay Controller
The ATTINY5-TSHR fits compact timer and delay controllers because its AVR core operates at up to 12 MHz while the 16-bit timer/counter provides two PWM-capable timing channels. Four I/O lines are sufficient for start input, reset or mode selection, and one or two timer outputs. At a 1.8 V minimum supply, it also supports energy-saving systems that cannot tolerate a 3.3 V-only controller. The principal design constraint is firmware capacity: 512 bytes of flash and 32 bytes of SRAM require compact state handling, while an ATTINY10 migration provides twice the flash for more elaborate sequencing.
پێشنیارکراو
LED Dimming and Indicator Control
The ATTINY5-TSHR can implement LED dimming, blinking, and status indication where a compact controller and limited I/O are sufficient. Its timer provides two PWM channels, allowing brightness-controlled outputs without adding a dedicated LED driver, while four GPIO lines can operate indicators and read a mode button. The 1.8 V to 5.5 V operating range accommodates both low-voltage logic and common 5 V systems. Firmware must fit the 512-byte flash limit, and each PWM output consumes one of only four I/O pins, making pin budgeting the main engineering trade-off.
پێشنیارکراو
Battery-Powered Sensor Node
ATTINY5-TSHR is appropriate for a minimal battery-powered sensor node when measurements and decisions can be processed without substantial buffering. Its internal oscillator avoids an external clock circuit, its low-resource AVR core supports efficient firmware, and operation begins at 1.8 V. Four I/O lines are enough for a simple sensor enable, interrupt, and status path but not for several simultaneous sensors or a multi-bus interface. The 32-byte SRAM and 512-byte flash require periodic processing and carefully bounded data flow; ATTINY10-TSHR is the more practical option when the firmware image exceeds 512 bytes.
پێشنیارکراو
Programmable Switch and Relay Logic
The ATTINY5-TSHR can act as programmable switch or relay logic when the required control sequence is small. The 12 MHz AVR core executes most instructions in one clock cycle, the internal oscillator supports standalone operation, and four I/O lines can drive a limited number of outputs while accepting a local command input. Because these lines also serve programming and control functions, the designer should verify the exact pin allocation in the manufacturer package drawing. A 512-byte flash budget favors simple debounce and state-machine routines, whereas ATTINY10-TSHR offers 1 kB for more elaborate logic.
پێشنیارکراو
Consumer Accessory Controller
ATTINY5-TSHR is suitable for simple consumer accessories in which a small controller performs local sequencing, input decoding, and indicator control. Its 6-pin SOT-23 package minimizes PCB area, and the 1.8 V to 5.5 V range supports both low-energy and 5 V accessory electronics. The four available I/O lines suit a limited keypad or status interface rather than a high-pin-count product. Memory discipline is essential because 512 bytes of flash and 32 bytes of SRAM restrict feature richness. If diagnostics, communication buffers, or firmware growth are expected, ATTINY10-TSHR provides a more practical same-package upgrade.
پێشنیارکراو
Low-Power Control Module
ATTINY5-TSHR can serve as the central logic in a low-power control module that performs periodic sensing, state updates, and actuator commands. Its low-power-oriented AVR design and internal clock eliminate unnecessary external support components, while the 12 MHz maximum clock provides useful execution headroom for short event-driven routines. The four-I/O limit constrains how many actuators and sensors can be connected, and the 32-byte SRAM discourages buffered logging. If predictable timing and minimal component count matter more than software capacity, ATTINY5 remains suitable; otherwise ATTINY10-TSHR doubles flash without changing the documented package format.
پێشنیارکراو
کورتەی بەرهەمە پێشنیارکراوەکان
داتای سەرچاوەی ئەندازیاری بۆ ATTINY5-TSHR — بەراوردکردن، ڕێنمایی دیزاین و زانیاری پابەندبوون.
ڕێنمایی هەڵبژاردن
بەراوردکردن لەگەڵ جێگرەوەکان
| پارامەتر | ئەم بەرهەمە | ATTINY4-TSHR | ATTINY9-TSHR | ATTINY10-TSHR | ATTINY10-TSHRA0 |
|---|---|---|---|---|---|
| Package | SOT-23-6 | SOT-23-6 | SOT-23-6 | SOT-23-6 | SOT-23-6 |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Architecture | 8-bit AVR RISC | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR |
جیاکەرەوە سەرەکییەکان
- Lower program-memory requirement for minimal control firmware (بەراورد بەATTINY10-TSHR)
- Same SOT-23-6 footprint family (بەراورد بەATTINY4-TSHR)
- 12 MHz operation with two PWM channels (بەراورد بەATTINY9-TSHR)
- Compact four-I/O implementation (بەراورد بەATTINY10-TSHRA0)
تێبینییەکانی دیزاین
Treat the 512-byte flash and 32-byte SRAM as hard design boundaries. Reserve flash space for the reset vector, interrupt-vector table, initialization code, and stack growth rather than filling the memory map with application logic. Confirm the final image size with the AVR toolchain and avoid routines that require substantial call depth. ATTINY10-TSHR is preferable when the measured image approaches the ATTINY5 limit because it provides 1 kB of flash, but it is not an automatic firmware-compatible substitution.
Use the manufacturer SOT-23-6 land pattern and pin numbering rather than a generic six-pin drawing. The four general-purpose I/O lines, reset/programming functions, power, and ground occupy a constrained package, so rotate or reassign peripheral functions only after reviewing the device pin table. Keep the ISP programming interface accessible where field updates are required, and place the decoupling capacitor close to the supply and ground terminals to minimize loop area on this very compact six-pin device.
Operate within the documented 1.8 V to 5.5 V DC range and check that every connected peripheral tolerates the selected rail. The internal oscillator simplifies the circuit, but it does not remove the need to characterize timing margins for debounce, PWM, and communication functions. If an application expects a stable time base across temperature, use the device's documented clock behavior or add an external precision reference only after confirming pin and power-budget constraints.
Because the package exposes only four I/O lines, create a pin-allocation table before schematic capture and reserve any lines required by programming or reset. Route high-speed or externally coupled signals away from the clock and ISP paths even though the maximum CPU frequency is 12 MHz. Validate the assembled board for programming continuity, supply noise, and unintended pin states after assembly, particularly because a compact six-pin package provides little room to correct layout errors without rework.
زانیاری پابەندبوون
The verified sources do not provide explicit RoHS, REACH, lead-free, halogen-free, or conflict-minerals declarations for this exact MPN. AEC-Q100 is not applicable because ATTINY5-TSHR is a general-purpose microcontroller rather than an automotive-qualified product.