USB-C AVR ISP programmer · ATmega8A + USBasp firmware · 1.8-5.5 V level shifting · Sheet N here = Sheet N on every page
5 V / VBUS3.3 Vtarget supply (VTGT)GNDUSBISP, 5 V side (_M)ISP, target side (_T)BUSY_N / OE#MCU control
| Pin | Net | Goes to |
|---|---|---|
| PB0 (12) | USB_DN | D- via R4, D2; R5 pull-up |
| PB1 (13), PD2/INT0 (32) | USB_DP | D+ via R3, D1 |
| PB2 (14) | RST_M | U4 A3 -> RST_T |
| PB3 (15) | MOSI_M | U4 A1 -> MOSI_T; J4 pin 4 |
| PB4 (16) | MISO_M | U5 A <- MISO_T; J4 pin 1 |
| PB5 (17) | SCK_M | U4 A2 -> SCK_T; J4 pin 3 |
| PC0 (23) | LED_G_K | LED2 green (low = on) |
| PC1 (24) | BUSY_N | LED1 red + U4 OE# (low while programming) |
| PC2 (25) | SLOW_SCK | JP2 to GND |
| PC6 RESET (29) | MCU_RST | R6 10 k, J4 pin 5 |
| PB6 / PB7 (7 / 8) | XTAL1 / XTAL2 | Y1 12 MHz, C3 / C4 22 pF |
These are exactly the pins the USBasp 2011-05-28 firmware uses (usbasp.h: red LED PC1, green PC0; isp.h: RST PB2, MOSI PB3, MISO PB4, SCK PB5; usbconfig.h: D- PB0, D+ PB1; main.c: slow SCK on PC2 with pull-up). No firmware change is needed.
| Connection | How |
|---|---|
| USB-C (J1) | Any USB-C cable to a PC: USB-C to USB-C works too, because CC1 and CC2 each have their own 5.1 k pull-down. The board draws about 20 mA plus the target. |
| 10-pin ISP (J2) | Standard AVR 10-pin ribbon: 1 MOSI, 2 VCC, 3 NC, 4/6/8/10 GND, 5 RST, 7 SCK, 9 MISO. The box header key stops a reversed plug. |
| 6-pin ISP (J3) | Standard AVR 6-pin (Arduino ICSP): 1 MISO, 2 VCC, 3 SCK, 4 MOSI, 5 RST, 6 GND. Use J2 OR J3, not both at once. |
| Target supply (JP1) | Jumper 1-2 = we send 5 V, 2-3 = we send 3.3 V, none = the target has its own supply. The level shifter always follows the voltage on ISP pin 2, so the target pin 2 MUST have power (ours or its own) or the outputs stay off. |
| Never | Never fit JP1 when the target has its own supply (two supplies fighting). Never feed more than 5.5 V on ISP pin 2. |
| Slow SCK (JP2) | Fit for a target running below 1.5 MHz (for example a new ATmega with CKDIV8 on 1 MHz internal clock), or use avrdude -B 32. |
| Self-programming (J4) | Only to flash the ATmega8A of this board with another programmer. Unplug USB-C first; the other programmer supplies 5 V on pin 2. |
Pin-to-net per section: each box is a part; the flag on a pin is the net name, put the same net label in EasyEDA and the pins join. Hover a wire to highlight its net, click to mark it wired (saved in this browser).
16-pin USB 2.0 Type-C receptacle, one 5.1 k pull-down on EACH of CC1 and CC2 (so C-to-C cables and chargers give 5 V), USBLC6 ESD part on D+ / D-, 500 mA PTC fuse from VBUS to the +5V rail.
The classic USBasp low-speed USB interface: 68 R series resistors, 3.6 V zener clamps (the ATmega8A runs at 5 V) and the 2.2 k pull-up on D- that tells the PC this is a low-speed device.
AP2112K 3.3 V LDO. Jumper JP1 picks what the board sends to the target: 5 V (1-2), 3.3 V (2-3) or nothing (no jumper, target has its own supply). A 200 mA PTC fuse limits a shorted target; yellow LED = we are powering the target.
ATmega8A-AU at 5 V with a 12 MHz crystal, running the unchanged USBasp firmware. Red LED (PC1) = programming, green LED (PC0) = USB ready. J4 = 6-pin header to flash this ATmega8A itself; JP2 = slow SCK jumper on PC2.
74LVC8T245 drives MOSI, SCK and RST to the target at the TARGET's voltage (VTGT); 74LVC1T45 brings MISO back to 5 V. The red-LED line (PC1, low only while programming) enables the outputs, so the target pins are released (Hi-Z) the rest of the time.
Standard AVR 10-pin box header and 6-pin header, both on the shifted target nets. Pin 2 (VCC) is the target supply sense, and the supply output when JP1 is fitted.