Aliexpress attiny13a testing

Bought some attiny 13a from this listing (5piece)100% New ATTINY13A-PU ATTINY13A PU DIP-8 Chipset that they claim is new.

Pins needed to be turned in to fit in a breadboard, and over all they give the appearance of new.

Hooked up 1 to a Bus Pirate 6 and let Claude Code via shell run the test and create a report.

=====================================================================

ATtiny13A (AliExpress) BRING-UP REPORT
Programmer: Bus Pirate 6, SPI mode, ISP wiring
Date: 2026-10-10

  1. SUMMARY

  • The chip identified itself as an ATtiny13A: signature 1E 90 07.
  • Fuses are factory defaults, lock bits are unprogrammed.
  • Whole flash (512 words) was blank before programming.
  • A blink test (PB4, 500 ms toggle) was written and read back
    byte-for-byte: VERIFY PASS.
  • Not proven genuine: a signature match does not rule out a compatible
    clone (see section 8, tests not run).
  1. HARDWARE AND WIRING

Bus Pirate 6 main header (J301, 10 pin, 2.54 mm):
pin 1 = VOUT/VREF, pins 2-9 = IO0-IO7, pin 10 = GND
(docs.buspirate.com, BP6 rev2 hardware page)

Bus Pirate SPI pin assignment, from firmware source src/pirate.h
(BusPirate5-firmware, main branch; BIOn taken as header IOn):
CLK = IO6, MOSI(CDO) = IO7, MISO(CDI) = IO4, CS = IO5

ATtiny13A ISP pins (datasheet DS40002307A, pp. 8 and 112):
pin 1 PB5/RESET, pin 4 GND, pin 5 PB0 = MOSI, pin 6 PB1 = MISO,
pin 7 PB2 = SCK, pin 8 VCC

Connection table:
Bus Pirate signal | IO | Header pin | ATtiny13A pin
------------------±----±-----------±-----------------
MOSI | IO7 | 9 | 5 (PB0)
MISO | IO4 | 6 | 6 (PB1)
CLK | IO6 | 8 | 7 (PB2)
CS → RESET | IO5 | 7 | 1 (PB5/RESET)
VOUT | - | 1 | 8 (VCC)
GND | - | 10 | 4 (GND)

Cable: Adafruit 6020 is sold as the Bus Pirate 5 probe cable set
(keyed 10-pin cable, 2.54 mm Dupont ends). Compatibility with the BP6
header was not confirmed beyond both being documented as 10-pin 2.54 mm.
Pin identification was by the cable’s labelled shrink tubes.

Note: the wiring itself was done by the user. The pin table above was
supplied beforehand; no continuity test of the physical wiring was run.
The successful ISP handshake and signature read are the evidence that
the wiring is correct.

  1. BUS PIRATE SETUP

  • Terminal port: /dev/ttyACM0
    (/dev/serial/by-id/usb-Bus_Pirate_Bus_Pirate_6_6buspirate-if00).
    The port responds only with DTR asserted, and ignores input for
    roughly the first 2 seconds after being opened.
  • LCD screensaver: set to “Disable” in the config menu (c → 4 → 1) and
    saved, because the screen had blanked. Firmware only clears a blanked
    screen on a keypress if a timeout is set, so the wake sequence was:
    set 5 minutes, send keypress, set Disable again. This change persists
    on the Bus Pirate (config file saved).
  • Mode: SPI, 100 kHz, 8 data bits, clock idle LOW, leading-edge phase,
    chip select active LOW.
  • Power supply: “W 3.3 50” → 3.30 V, 50 mA current limit,
    undervoltage limit 2.96 V (10%). Reported current at enable: 5.1 mA.
    The supply is still enabled at the time of writing.

ATtiny13A supply range (datasheet p. 2): 1.8 - 5.5 V.
3.3 V is within range.

  1. IDENTIFICATION RESULTS (read-only commands)

Instruction formats from datasheet Table 17-9 (pp. 114-115):
Programming Enable AC 53 xx xx
Read Signature Byte 30 00 0b 00
Read Calibration Byte 38 00 0b 00
Read Fuse low 50 00 xx oo
Read Fuse high 58 08 xx oo
Read Lock Bits 58 00 xx oo

Check | Read | Expected | Result
--------------------------±----------±------------------------±------
ISP handshake (3rd byte) | 0x53 | echo of 0x53 (see note) | Pass
Signature byte 0 | 0x1E | 0x1E (p. 111) | Pass
Signature byte 1 | 0x90 | 0x90 (p. 111) | Pass
Signature byte 2 | 0x07 | 0x07 (p. 111) | Pass
Fuse low | 0x6A | 0x6A (from p. 110) | Pass
Fuse high | 0xFF | 0xFF (from p. 110) | Pass
Lock bits | 0xFF | unprogrammed = 1 | Pass
Calibration byte 0 | 0x57 | chip-specific | Recorded
Calibration byte 1 | 0x5B | chip-specific | Recorded
Flash, all 512 words | all 0xFF | blank | Blank

Notes:

  • The 0x53 echo is standard AVR ISP behaviour; it was not located in
    the datasheet pages that were read.
  • Expected fuse values were derived from the default-value tables on
    datasheet p. 110. Low byte: SPIEN=0, EESAVE=1, WDTON=1, CKDIV8=0,
    SUT1=1, SUT0=0, CKSEL1=1, CKSEL0=0 → 0b01101010 = 0x6A.
    High byte: all fuses unprogrammed → 0xFF.
  • Meaning of the low fuse 0x6A: 9.6 MHz internal RC oscillator divided
    by 8 = 1.2 MHz system clock; serial programming enabled; RESET pin
    still functions as reset; debugWire not enabled.
  1. PROGRAM WRITTEN

Source: blink_test/blink.c
F_CPU 1200000, PB4 as output, toggle PORTB bit 4 every 500 ms.
PB4 is pin 3; it is not an SPI pin and not RESET.
Toolchain: avr-gcc 16.2.0, -mmcu=attiny13a -Os
Size: 68 bytes of flash (text 68, data 0, bss 0).
Image: blink_test/blink.bin

Programming method: custom script over the Bus Pirate terminal
(not avrdude). The script:

  1. read all 512 flash words, erase only if not blank (it was blank,
    so no erase was issued);
  2. write 3 pages (16 words per page, datasheet p. 111) using Load
    Program Memory Page (40/48) and Write Program Memory Page (4C);
  3. read back and compare with blink.bin;
  4. re-read signature, fuses and lock bits.
    Chip select (wired to RESET) was held low for the whole of each
    session; the chip started running the program when it was released.

Result: VERIFY PASS (readback identical to blink.bin).
Post-programming: signature 1E 90 07, low fuse 0x6A, high fuse 0xFF,
lock bits 0xFF. No fuse or lock changes were made.

  1. FINDINGS

  1. The chip responds to ISP and reports the ATtiny13A signature
    (1E 90 07).

  2. Fuses and lock bits are the datasheet defaults and the flash was
    blank, consistent with an unused part.

  3. Flash writes and reads work; the 68-byte test image verified.

  4. Wiring and Bus Pirate settings are working as listed in sections 2
    and 3.

  5. OPEN POINTS / CAVEATS


  • The signature alone cannot prove the part is genuine; a compatible
    clone could report the same bytes.
  • The blink output on PB4 has not been observed. It needs an LED with a
    series resistor (value not calculated) from pin 3 to GND, or a
    measurement of the pin.
  • The Bus Pirate IO numbers come from firmware source on GitHub main,
    assuming BIOn = header IOn. The BP6 schematic was not checked.
  • The Adafruit 6020 cable is listed for the Bus Pirate 5.
  • The Bus Pirate 6 power supply is still on (3.3 V, 50 mA limit).
    Turn it off with “w” at the Bus Pirate prompt when finished.
  • The documented Bus Pirate 5 avrdude programmer mode was not tested
    with the BP6; programming here used the raw SPI commands above.
  1. TESTS NOT RUN

  • Full EEPROM read or write test.
  • Flash and EEPROM write/erase endurance.
  • Internal oscillator accuracy (clock frequency measurement).
  • Comparison of calibration bytes against typical values for the part.
  • Electrical checks (supply current against datasheet figures, brown-out
    threshold, pin drive levels).
  • Whole-image comparison beyond the 68 programmed bytes (the rest of
    flash was blank before the write and was not re-read afterwards).
  1. SOURCES

  1. FILES

  • blink_test/blink.c, blink.elf, blink.bin
  • bus_pirate_bringup_report.txt (this file)
2 Likes

Wow! Nicely done. This is all via shell, no python script intermediate step?

1 Like

My questions:

  1. Which model did you use?
  2. What prompt did you provide?
  3. What (if any) support files were provided to the model (e.g., to know how to control the buspirate)?
  4. How many tokens did it cost?

Very cool results, and highlights how the models have improved over the last couple years!

1 Like

Yes sir, all via Claude in shell and I most likely used Sonnet 5.5, I don’t remember now. Claude most likely created Python scripts in the process.

It’s not that I’m too lazy to do it myself, but it took me 15 minutes to just hook the probes up to the micro,I currently have 10 base ball bats for fingers, thumbs. Arthritis is not much fun.

Support files were a hyperlink to the Bus Pirate site, and actually that is not needed if it has preapproval to access the web.

The prompt was plain English just like if I had ask you to do it. I stated my concerns and ask it to start a complete test of the micro.

No idea on tokens but I pay 20 bucks a month and I do all I want to do, with the exception of something like creating a compiler, etc etc

Gary- W4GNS

1 Like