Skip to content

Commit 481ccec

Browse files
committed
Added new board
1 parent f7c4d71 commit 481ccec

35 files changed

+3365
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
Collection of AVR Programmer Boards and Accessories. AVR development boards can be found [here](https://github.com/wagiminator/AVR-Development-Boards).
33

44
## [SerialUPDI Programmer - CH340N](https://github.com/wagiminator/AVR-Programmer/tree/master/SerialUPDI_Programmer)
5-
Simple UPDI programmer for tinyAVR, megaAVR and AVR-Dx microcontrollers with voltage selection switch (5V and 3.3V). The programmer works with [pyupdi](https://github.com/mraardvark/pyupdi) as well as with the Arduino IDE as ["SerialUPDI with 4.7k resistor or diode"](https://github.com/SpenceKonde/megaTinyCore). It is based on the USB-to-serial chip [CH340N](https://datasheet.lcsc.com/lcsc/2101130932_WCH-Jiangsu-Qin-Heng-CH340N_C506813.pdf).
5+
Simple and cheap UPDI programmer for tinyAVR, megaAVR and AVR-Dx microcontrollers with voltage selection switch (5V and 3.3V). The programmer works with [pyupdi](https://github.com/mraardvark/pyupdi) as well as with the Arduino IDE as ["SerialUPDI with 4.7k resistor or diode"](https://github.com/SpenceKonde/megaTinyCore). It is based on the USB-to-serial chip [CH340N](https://datasheet.lcsc.com/lcsc/2101130932_WCH-Jiangsu-Qin-Heng-CH340N_C506813.pdf).
66

7-
![serialupdi.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_Programmer/SerialUPDI_Programmer_pic1.jpg)
7+
![SerialUPDI_Programmer_pic1.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_Programmer/SerialUPDI_Programmer_pic1.jpg)
8+
9+
## [picoISP Programmer - CH552E](https://github.com/wagiminator/AVR-Programmer/tree/master/picoISP_Programmer)
10+
The CH55x-based picoISP is a simple and cheap ISP programmer for AVR microcontrollers with voltage selection switch (5V and 3.3V) and compatible with the [USBtinyISP](https://learn.adafruit.com/usbtinyisp). It works fine with AVRdude and the Arduino IDE.
11+
12+
![picoISP_pic4.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_pic4.jpg)
13+
14+
## [USB to Serial Converter Stick - CH340E](https://github.com/wagiminator/AVR-Programmer/tree/master/USB_to_Serial_Stick)
15+
Simple and cheap USB-to-Serial converter based on [CH340E](https://datasheet.lcsc.com/lcsc/2008191806_WCH-Jiangsu-Qin-Heng-CH340E_C99652.pdf) with voltage selection switch (5V and 3.3V).
16+
17+
![USB2Serial_Stick_pic2.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/USB_to_Serial_Stick/USB2Serial_Stick_pic2.jpg)
818

919
## [PyUPDI Programmer - CH330N](https://github.com/wagiminator/AVR-Programmer/tree/master/PyUPDI_Programmer)
1020
Probably the simplest UPDI programmer for tinyAVR, megaAVR and AVR-Dx microcontrollers. The programmer works with [pyupdi](https://github.com/mraardvark/pyupdi) as well as with the Arduino IDE as ["SerialUPDI"](https://github.com/SpenceKonde/megaTinyCore). It is based on the USB-to-serial chip [CH330N](https://datasheet.lcsc.com/szlcsc/2008191734_WCH-Jiangsu-Qin-Heng-CH330N_C108996.pdf) or [CH340N](https://datasheet.lcsc.com/lcsc/2101130932_WCH-Jiangsu-Qin-Heng-CH340N_C506813.pdf).
1.82 KB
Binary file not shown.
33.2 KB
Binary file not shown.
114 KB
Loading
150 KB
Loading
141 KB
Loading
Binary file not shown.

USB_to_Serial_Stick/readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# USB to Serial Converter Stick
2+
Simple and cheap USB-to-Serial converter based on [CH340E](https://datasheet.lcsc.com/lcsc/2008191806_WCH-Jiangsu-Qin-Heng-CH340E_C99652.pdf) with voltage selection switch (5V and 3.3V).
3+
4+
![USB2Serial_Stick_pic1.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/USB_to_Serial_Stick/USB2Serial_Stick_pic1.jpg)
5+
![USB2Serial_Stick_pic2.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/USB_to_Serial_Stick/USB2Serial_Stick_pic2.jpg)
6+
![USB2Serial_Stick_pic3.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/USB_to_Serial_Stick/USB2Serial_Stick_pic3.jpg)

picoISP_Programmer/LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
2+
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send
3+
a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

picoISP_Programmer/README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# picoISP Programmer for AVR MCU based on CH552E
2+
The CH55x-based picoISP is a simple and cheap ISP programmer for AVR microcontrollers with voltage selection switch (5V and 3.3V) and compatible with the [USBtinyISP](https://learn.adafruit.com/usbtinyisp). It works fine with AVRdude (avrdude -c usbtiny) and the Arduino IDE (Tools -> Programmer -> USBtinyISP). The firmware is based on Dick Streefland's and Ladyada's original implementation and DeqingSun's CH55x conversion.
3+
4+
![picoISP_pic1.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_pic1.jpg)
5+
6+
# Hardware
7+
## Schematic
8+
![picoISP_wiring.png](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_wiring.png)
9+
10+
## CH552E 8-bit USB Device Microcontroller
11+
The CH552E is a low-cost, enhanced E8051 core microcontroller compatible with the MCS51 instruction set. It has an integrated USB 2.0 controller with full-speed data transfer (12 Mbit/s) and supports up to 64 byte data packets with integrated FIFO and direct memory access (DMA). The CH552E has a factory built-in bootloader so firmware can be uploaded directly via USB without the need for an additional programming device.
12+
13+
![picoISP_pic2.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_pic2.jpg)
14+
![picoISP_pic3.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_pic3.jpg)
15+
16+
# Compiling and Installing Firmware
17+
## Installing Toolchain for CH55x
18+
Install the [CH55x Software Development Kit for the SDCC compiler](https://github.com/Blinkinlabs/ch554_sdcc). Follow the instructions on the website. In order for the programming tool and the I²C-Bridge software to work, Python3 must be installed on your system. To do this, follow these [instructions](https://www.pythontutorial.net/getting-started/install-python/). In addition [PyUSB](https://github.com/pyusb/pyusb) must be installed. On Linux (Debian-based), all of this can be done with the following commands:
19+
20+
```
21+
sudo apt install sdcc python3 python3-pip
22+
sudo pip install pyusb
23+
```
24+
25+
## Installing Drivers for the CH55x Bootloader
26+
On Linux you do not need to install a driver. However, by default Linux will not expose enough permission to upload your code with the USB bootloader. In order to fix this, open a terminal and run the following commands:
27+
28+
```
29+
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="4348", ATTR{idProduct}=="55e0", MODE="666"' | sudo tee /etc/udev/rules.d/99-ch55x.rules
30+
sudo service udev restart
31+
```
32+
33+
On Windows you will need the [Zadig tool](https://zadig.akeo.ie/) to install the correct driver for both, the CH55x bootloader and the CDC device. Click "Options" and "List All Devices" to select the USB module, then install the libusb-win32 driver.
34+
35+
## Entering CH55x Bootloader Mode
36+
A brand new chip starts automatically in bootloader mode as soon as it is connected to the PC via USB. Once firmware has been uploaded, the bootloader must be started manually for new uploads. To do this, the board must first be disconnected from the USB port and all voltage sources. Now press the BOOT button and keep it pressed while reconnecting the board to the USB port of your PC. The chip now starts again in bootloader mode, the BOOT button can be released and new firmware can be uploaded within the next couple of seconds.
37+
38+
## Compiling and Uploading Firmware
39+
Open a terminal and navigate to the folder with the makefile. Run ```make flash``` to compile and upload the firmware. If you don't want to compile the firmware yourself, you can also upload the precompiled binary. To do this, just run ```python3 ./tools/chprog.py picoisp.bin```.
40+
41+
# Operating Instructions
42+
- Select the programming voltage (3.3V or 5V) with the voltage selection switch.
43+
- Plug the picoISP into a USB port on your PC, it should be identified as a USBtinyISP.
44+
- Connect the picoISP to the target board via the 6-pin ICSP connector.
45+
- Windows users may need to install a driver (https://learn.adafruit.com/usbtinyisp).
46+
- The picoISP should work with any IDE or programming software that supports the USBtinyISP programmer.
47+
48+
# References, Links and Notes
49+
1. [EasyEDA Design Files](https://oshwlab.com/wagiminator)
50+
2. [WCH: CH552 Datasheet](http://www.wch-ic.com/downloads/CH552DS1_PDF.html)
51+
3. [SDCC Compiler](https://sdcc.sourceforge.net/)
52+
4. [Blinkinlabs: CH55x SDK for SDCC](https://github.com/Blinkinlabs/ch554_sdcc)
53+
5. [Dick Streefland: USBtiny](https://dicks.home.xs4all.nl/avr/usbtiny/)
54+
6. [Ladyada: USBtinyISP](https://learn.adafruit.com/usbtinyisp)
55+
7. [Deqing Sun: CH55xduino](https://github.com/DeqingSun/ch55xduino)
56+
57+
![picoISP_pic4.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/picoISP_Programmer/documentation/picoISP_pic4.jpg)
58+
59+
# License
60+
![license.png](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)
61+
62+
This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License.
63+
(http://creativecommons.org/licenses/by-sa/3.0/)

0 commit comments

Comments
 (0)