当前位置:网站首页>One click download scheme of serial port of esp32 / esp8266 series single chip microcomputer without peripheral circuit
One click download scheme of serial port of esp32 / esp8266 series single chip microcomputer without peripheral circuit
2022-04-22 18:16:00 【WCH_ SoftGroup】
One 、 summary
CH340X、CH343、CH342 etc. USB The serial port chip supports no peripheral circuit ESP32/ESP8266 Single chip microcomputer serial port one click download function , For this kind of MCU that supports multi-mode startup , No logic control circuit such as peripheral triode is required , Connect the output signal pin provided by the chip directly MCU Of BOOT Control pin (GPIO0) And CHIP_PU Chip enable pin (EN) That is to say MCU BOOT and APP Mode control switching and firmware download .


Two 、 Program features
- The circuit is simple and reliable , Power on the serial port 、 Power down 、 open 、 Closing and other operations do not affect MCU Operation mode . The traditional one click download circuit needs 2 Three triodes are used together to keep BOOT Normal low level and prevent serial port software switching MCU False reset or false entry BOOT Download mode .
- ESP The original download software of Series MCU can be used directly , No need to change .
- Support automatic download . utilize USB Hot plug features and CH343PT library , It can be realized on the software side USB Automatically download after the device is inserted .
- Provide QFN16、ESSOP10、SOP16 Equal package , Can also be customized .
- CH340X Support 5V Withstand voltage and prevent inward current backflow .
- CH343 Support serial port IO Independent power supply , Can support 5V/3.3V/2.5V/1.8V Equal serial communication , Support anti inward current backflow . The minimum power consumption in standby mode is only 2uA.
3、 ... and 、 Download the principle and circuit description
ESP series MCU Boot mode :
| GPIO0 ( Default pull up ) |
GPIO2 ( Default dropdown ) |
explain |
| 0 |
0 |
Download startup mode |
| 1 |
X |
FLASH Boot mode |
MCU Reset for low level , Hardware needs to meet MCU Enter automatically after reset “ Serial download ” Pattern . Download timing diagram :

CH340X/CH343P and MCU Serial connection reference :
| CH340X/CH343P Pin |
ESP32/8266 series MCU Pin |
| DTR |
GPIO0 |
| RTS |
CHIP_PU |
| TXD |
RXD |
| RXD |
TXD |
be based on CH340X Realized ESP32/8266 series MCU One click download circuit

be based on CH343P Realized ESP32/8266 series MCU One click download circuit

When downloading with one click , Download software from the computer and open the serial port , First set up DTR#(IO0) Low level 、 Set up RTS#(EN) Low level 、 Higher level ,MCU Automatic reset enters BOOT Download program . When the download is complete , Need to restore DTR High level 、 Set up RTS#(RESET) Low level 、 Higher level ,MCU Run the application normally after automatic reset .
notes :
- CH340X chip ,5# Feet and 6# Series connection between pins 3~5.6KΩ Resistance time #6 The foot will automatically switch to push-pull output DTR# function , The pin defaults to strong high level , Set by the application DTR Pin out high and low level .
- CH340X The serial port voltage is determined by the chip VCC The supply voltage determines ,CH343 The serial port voltage is determined by the chip VIO The supply voltage determines , Pay attention to voltage matching when using .
- Need to cooperate CH341SER V3.7 And above driver .
( Download link :CH341SER.EXE - Nanjing qinheng Microelectronics Co., Ltd )
Four 、 Download software and demo effect
ESP32 Series single-chip microcomputer flash_download_tool Software download Demo

版权声明
本文为[WCH_ SoftGroup]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221809510261.html
边栏推荐
- 【接口测试基础】第九篇 | 详解PostMan全局变量和环境变量
- Second Cloud a aidé la solution SaaS Cloud Management Platform basée sur un cadre d'intégration d'applications simulé publié par le CETC 32
- 电脑硬件都有哪些?
- Expansion convolution paper notes
- Youqilin 22.04 lts version is officially released | ukui 3.1 opens a new experience!
- Interface test mock practice (II) | complete batch manual mock in combination with JQ
- "Programmer's life extension guide": follow the code farmer and live 20 more years!
- 数字化靶场的未来方向
- SegAttnGAN Text to Image Generation with Segmentation Attention
- Get the actual name of the parameter of the method through reflection
猜你喜欢
随机推荐
Codeforces Round #784 (Div. 4) AK题解
【思考与进步】:关于自己的遗憾
Pytoch Note58 CNN可视化
【Lane】Ultra-Fast-Lane-Detection(2)自定义模型测试
国产芯片DP9637-K总线收发器替代L9637D芯片和SI9241
持续有效的风险指标:动荡指数
Soft test high-level notes | tools and techniques for collecting needs
Deleted items can be recovered even after the outlook Deleted Items folder is empty
秒雲助力中電科32所發布“基於擬態應用集成框架的SaaS雲管理平臺解决方案”
知乎热议:浙大读博八年现靠送外卖赚钱
Youqilin 22.04 lts version is officially released | ukui 3.1 opens a new experience!
leetcode-470. 用 Rand7() 实现 Rand10()
【接口测试基础】第十一篇 | 详解Postman关联接口及批量执行用例集
Alipay open platform application - Township Health Center Application
支付宝开放平台应用— 乡镇卫生院申请
Inheritance relationship of Servlet
After calling Bapi many times, what is the problem with the last one-time commit work?
Leetcode 111: minimum depth of binary tree
最近学习感悟
18730 coloring problem (two ways of writing fast power)








