Level conversion for MCU download

Publisher:幸福自由Latest update time:2015-08-26 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
At present, the ones we hear most are max232, pl2303, and ch340. ​

Before talking about MCU download, we need to talk about a few concepts:

TTL level:

The main type of TTL integrated circuit is transistor-transistor logic gate. Most TTL uses 5V power supply. 1. Output high level Uoh and output low level Uol, Uoh ≥ 2.4V, Uol ≤ 0.4V. 2. Input high level and input low level Uih ≥ 2.0V, Uil ≤ 0.8V.

USB signal:

​The USB signal line has two D+ and D-, which are differential signals.

RS232 Level:

On TxD and RxD: logic 1 (MARK) = -3V ~ -15V, logic 0 (SPACE) = +3 ~ +15V.  

On control lines such as RTS, CTS, DSR, DTR and DCD: valid signal (connected, ON state, positive voltage) = +3V ~ +15V, invalid signal (disconnected, OFF state, negative voltage) = -3V ~ -15V.

start:

max232 converts RS232 signals to TTL signals or vice versa, pl2303 and ch340 convert USB signals to TTL signals or vice versa, so there are two ways to download microcontrollers:

1. USB--->pl2303 or ch340---->TTL--->max232<--->max232---->MCU, there is a line in front (the blue transparent line, which has integrated pl2303 and max232), and the back is on the development board. The level conversion relationship is USB->TTL->RS232<->RS232->TTL.

2. USB--->pl2303 or ch340<---> MCU. The download failed because the MCU was not completely powered off. Solution: connect a diode in series with the TXD pin of CH340 (Schottky diode is recommended) and a resistor of about 300 ohms in series with the RXD pin of CH340. You can refer to the connection method in the STC document. USB->TTL.

Reference address:Level conversion for MCU download

Previous article:What are the most important parts a microcontroller should have in order to complete calculations automatically?
Next article:LCD1602 main parameters, pin functions and initialization methods

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号