Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is not supported at present. Please extend your EasyEDA usage duration and try again.
Editor Version×
Standard
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
Profession
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 5,000 devices or 10,000 pads
3.More rigorous design constraints, more standardized processes
# SerialUPDI HV Programmer based on CH340E and MT3608
The simple and cheap High-Voltage Serial UPDI Programmer is a device designed specifically for tinyAVR microcontrollers. This programmer includes a target voltage selection switch that allows users to choose between 5V and 3.3V for their project needs. With this device, you can use the additional configuration settings for the UPDI pin without worrying about getting locked out from the MCU.
The programmer operates similarly to a standard SerialUPDI programmer and is compatible with popular development environments like the Arduino IDE, where it appears as "SerialUPDI". The device utilizes the CH340E USB-to-serial chip and the MT3608 Boost Converter IC to function. The CH340E chip allows the device to interface with a computer or other device through a USB connection, while the MT3608 Boost Converter IC generates the 12V pulse required for high-voltage activation of the UPDI pin.
![SerialUPDI_HV_Prog_pic1.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_HV_Programmer/documentation/SerialUPDI_HV_Prog_pic1.jpg)
# Working Principle
The microcontrollers of the ATtiny 0-series, 1-series and 2-series typically have a limited number of GPIO (General-Purpose Input/Output) pins available for use. However, it is possible to obtain an additional GPIO pin by reprogramming the UPDI (Unified Program and Debug Interface) pin as such. The problem is, however, that the ATtiny can then no longer be reprogrammed via the UPDI interface.
To revert the GPIO pin back to an UPDI pin, a high-voltage activation is required immediately prior to reprogramming. Specifically, a short 12V pulse must be applied to the UPDI pin by the programmer. The SerialUPDI HV Programmer offers a solution to this problem by extending a standard SerialUPDI programmer with additional circuitry that automatically applies the required 12V pulse, allowing for the programming of an ATtiny even if the UPDI pin has been previously reprogrammed for a different purpose.
The required 12V for high-voltage activation is generated by using the low-cost MT3608 boost converter IC, along with some simple support circuitry. The 12V pulse is controlled via the RTS (Ready To Send) signal of the CH340E USB-to-serial chip. At the start of data transfer and thus programming, this signal is set to LOW. The signal drives the gate of a P-channel MOSFET, which in turn releases the 12V onto the UPDI line. A coupling capacitor between the RTS line and the MOSFET gate, in combination with a 10kΩ pullup resistor, ensures that the duration of the pulse is limited to about 150µs.
The SerialUPDI HV Programmer can be used as a replacement for a standard SerialUPDI programmer without requiring any further software modifications. A voltage selector switch allows users to select the target voltage between 3.3V and 5V. However, it is important to ensure that the target circuit that contains the ATtiny can handle a 12V pulse on the UPDI line. By the way, if the back of the board is not populated with components, the device works as a normal SerialUPDI programmer.
![SerialUPDI_HV_Prog_pic2.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_HV_Programmer/documentation/SerialUPDI_HV_Prog_pic2.jpg)
![SerialUPDI_HV_Prog_pic3.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_HV_Programmer/documentation/SerialUPDI_HV_Prog_pic3.jpg)
![SerialUPDI_HV_Prog_scope2.jpg](https://raw.githubusercontent.com/wagiminator/AVR-Programmer/master/SerialUPDI_HV_Programmer/documentation/SerialUPDI_HV_Prog_scope2.jpg)
# License
![license.png](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)
This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License.
(http://creativecommons.org/licenses/by-sa/3.0/)
Forked project will be set private in personal workspace. Do you continue?
Clone
Project
The Pro editor is about to be opened to save as. Do you want to continue?
private message
Send message to wagiminator
Delete
Comment
Are you sure to delete the comment?
Report
CH340E SerialUPDI HV Programmer
High-Voltage Serial UPDI Programmer
Announcer: Stefan Wagner
Creation time: 2023-02-04 16:07:40
Published time:
2023-02-22 17:49:48
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
Submitted successfully! The review result can be viewed in the personal
center, review notification.
Kind tips
Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is
not supported at present. Please extend your EasyEDA usage duration and try again.
Share
Project
Copy
Copy
Scan the QR code and open it on the mobile terminal