SafeASP - USB-C AVR programmer

USB-C AVR ISP programmer · ATmega8A + USBasp firmware · 1.8-5.5 V level shifting · open hardware by ElectroIoT

Design stage. Planned design, not a finished schematic or PCB and not built yet: nets come from tools/data.py, pin numbers of U1, U4, U5 were read from the datasheets, but every symbol and footprint must still be checked in EasyEDA.

What is new in V6

USB-C16-pin USB 2.0 receptacle with separate 5.1 k on CC1 and CC2: works with USB-C to USB-C cables, laptops and phone chargers.
Safe 1.8 - 5.5 V targets74LVC8T245 + 74LVC1T45 level shifter powered from the target's own VCC: no more 5 V signals into a 3.3 V chip.
Pins released when idleThe shifter outputs are only on while the red BUSY LED is lit, so the programmer does not fight the target's own use of MOSI / SCK / RST.
Protected target powerJumper for 5 V / 3.3 V / off, 200 mA PTC fuse and a yellow LED: a shorted target no longer resets the programmer or the PC port.
USB protection500 mA PTC on VBUS and a USBLC6 ESD diode array on D+ / D-.
10-pin AND 6-pin ISPKeyed box header for the standard 10-pin cable plus the 6-pin Arduino ICSP layout, as asked in the v5 comments.
Easy firmware updateA separate 6-pin header (J4) to flash the board's own ATmega8A; no more jumper juggling on the ISP header.
Stock firmwareRuns the original USBasp 2011-05-28 firmware unchanged and works with avrdude (-c usbasp) and the Arduino IDE.

Design pages

Floor plan preview

1020304050607080102030USB-CV-USBATMEGA8ALEVEL SHIFTTARGET POWERISP 10 / 6 PINJ1: USB-C 16-pin receptacle (USB 2.0) [C165948] x=3.8 y=16.0 mmJ1U2: USBLC6-2SC6 ESD on D+ / D- [C7519] x=11.5 y=16.0 mmU2R1: 5.1 k 1206, CC1 pull-down [C26033] x=11.5 y=20.4 mmR1R2: 5.1 k 1206, CC2 pull-down [C26033] x=11.5 y=11.6 mmR2F1: PTC 500 mA 1206, VBUS to +5V [C163512] x=11.5 y=23.4 mmF1C2: 100 nF 1206 on VBUS [C24497] x=11.5 y=8.8 mmC2R3: 68 R 1206, D+ series [C17976] x=18.5 y=19.5 mmR3D1: 3.6 V zener, D+ clamp [C725453] x=23.9 y=19.5 mmD1R4: 68 R 1206, D- series [C17976] x=18.5 y=12.5 mmR4D2: 3.6 V zener, D- clamp [C725453] x=23.9 y=12.5 mmD2R5: 2.2 k 1206, D- pull-up (low speed) [C17948] x=18.5 y=8.6 mmR5C1: 10 uF 1206, +5V bulk [C9807] x=18.5 y=24.4 mmC1U1: ATmega8A-AU, TQFP-32 [C16190] x=37.0 y=16.0 mmU1Y1: 12 MHz crystal 3225 [C9002] x=29.6 y=12.6 mmY1C3: 22 pF 0805, XTAL1 load [C1804] x=29.6 y=9.0 mmC3C4: 22 pF 0805, XTAL2 load [C1804] x=29.6 y=16.4 mmC4C5: 100 nF 1206, VCC pin 4 [C24497] x=37.6 y=23.0 mmC5C7: 100 nF 1206, AVCC pin 18 [C24497] x=42.6 y=23.0 mmC7R6: 10 k 1206, RESET pull-up [C17902] x=31.0 y=23.0 mmR6C6: 100 nF 1206, VCC pin 6 [C24497] x=37.0 y=9.0 mmC6LED1: Red LED: programming (PC1 low) [C965798] x=31.0 y=26.8 mmLED1R7: 1 k 1206, LED1 series [C4410] x=36.0 y=26.8 mmR7LED2: Green LED: USB ready (PC0 low) [C2986059] x=31.0 y=29.6 mmLED2R8: 1 k 1206, LED2 series [C4410] x=36.0 y=29.6 mmR8J4: 2x3 header: flash THIS ATmega8A (self-programming port) [C65114] x=37.5 y=3.6 mmJ4JP2: 1x2 header: slow SCK jumper (PC2 to GND) [C492401] x=29.8 y=4.0 mmJP2U4: 74LVC8T245PW 8-bit dual-supply transceiver, TSSOP-24 [C458788] x=50.2 y=10.2 mmU4C10: 100 nF 1206, U4 VCCA [C24497] x=50.2 y=16.6 mmC10U5: 74LVC1T45GW 1-bit dual-supply transceiver (MISO back), SC-88 [C478004] x=55.6 y=16.4 mmU5R10: 10 k 1206, OE# pull-up (outputs off while the ATmega8A is in reset) [C17902] x=55.6 y=11.6 mmR10R11: 100 k 1206, MOSI_M pull-down (no floating input) [C17900] x=55.6 y=5.0 mmR11C12: 100 nF 1206, U5 VCCA [C24497] x=59.4 y=16.0 mmC12R12: 100 k 1206, SCK_M pull-down [C17900] x=59.4 y=9.6 mmR12R13: 100 k 1206, RST_M pull-down [C17900] x=59.4 y=3.6 mmR13C13: 100 nF 1206, U5 VCCB [C24497] x=63.0 y=16.0 mmC13C11: 100 nF 1206, U4 VCCB [C24497] x=63.0 y=9.6 mmC11U3: AP2112K-3.3 LDO, SOT-25 [C51118] x=48.8 y=29.2 mmU3C8: 10 uF 1206, LDO input [C9807] x=53.4 y=29.2 mmC8C9: 10 uF 1206, LDO output [C9807] x=58.2 y=29.2 mmC9LED3: Yellow LED: powering the target [C965803] x=48.6 y=25.4 mmLED3R9: 1 k 1206, LED3 series [C4410] x=53.4 y=25.4 mmR9F2: PTC 200 mA 1206, target supply limit [C207035] x=58.2 y=25.4 mmF2JP1: 1x3 header: target supply 5 V (1-2) / 3.3 V (2-3) / off [C492402] x=51.0 y=21.7 mmJP1J2: 2x5 box header: standard AVR 10-pin ISP [C5665] x=79.0 y=16.0 mmJ2J3: 2x3 header: standard AVR 6-pin ISP [C65114] x=68.4 y=16.0 mmJ3