Ch340 Datasheet (I) 1 usb to Serial Port Chip ch340


Connect to MCU and supply power separately, avoiding bi-directional current



Yüklə 160,06 Kb.
Pdf görüntüsü
səhifə12/15
tarix22.03.2024
ölçüsü160,06 Kb.
#180783
1   ...   7   8   9   10   11   12   13   14   15
CH340DS1 (1)

7.7. Connect to MCU and supply power separately, avoiding bi-directional current 
poured backwards 
(figure below) 
 
The figure above is a reference design to achieve USB connection on an MCU by connecting it to a CH340 
via TTL UART. CH340 is powered by USB bus VBUS. MCU is powered by another power source VDD, 
VDD supports 5V, 3.3V and even 2.5V, 1.8V.
The RXD pin of MCU in the figure should enable the internal pull-up resistor. If not, it is recommended to 
add 2K
Ω
~ 22K
Ω
pull-up resistor to the RXD pin and connect it to the power supply VDD of MCU. 
Prevent current backward when CH340 is powered on but MCU is not powered on. The D6 and D7 diodes 
and the Q5 NMOS tube in the figure are used to prevent CH340 from flowing back current to the power-off 
MCU through the RXD or TXD internal diode of MCU under dual power supply mode. The connection 
between D7 and RTS/BOOT0# is optional. The D6 diode reverses current to MCU through RXD internal 
diode of MCU for TXD high level of CH340; The D7 diode reverses current to MCU through the boot 
internal diode of MCU for RTS high level of CH340; The Q5 NMOS tube reverses the current to the MCU 
through the TXD internal diode of the MCU for the RXD internal pull-up current of the CH340. 
Prevent internal current backward when CH340 is not powered but MCU is powered on. The IO of CH340K, 
CH340X and CH340C, CH340N with the last three digits of batch number greater than B40 will 
automatically prevent internal backflow, that is, when CH340 is not powered on, but MCU is powered on, 
there will be no backflow current. In addition, D6, D7 and Q5 can prevent CH340 from injecting current to 
the power-off MCU, so the above figure can realize complete bidirectional anti backflow. 
For CH340 with other batch numbers or models, additional anti filling circuit shall be added. Usually an 
NMOS tube is connected in series with a Shottky diode to prevent bidirectional backflow. For example, a 
Schottky diode is connected in series at the drain D end of Q5, and its anode terminal is connected to the 
RXD of CH340. An NMOS tube is connected in series between D6 and CH340, and its drain is connected to 
D6 and its gate is connected to the power supply VCC of CH340. 
If it is determined that a certain situation will not occur, the corresponding NMOS tube or diode can be 
removed. For example, the IO of some MCUs supports anti backflow or 5VT, or the MCU has a permanent 
self-contained power supply. There is no need to worry about CH340 injecting current to the MCU, then D6, 
D7 and Q5 can be removed and shorted. 



Yüklə 160,06 Kb.

Dostları ilə paylaş:
1   ...   7   8   9   10   11   12   13   14   15




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə