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.
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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- [Raspberry Pi 4B Review] Raspberry Pi 4 drives 3G network card to send and receive text messages and wireless Internet access
- ESP32 VL53L5CX Multi Zone Range Sensor
- Simple questions about DC motors
- MSP430F5438A MCU Low Power Settings
- Dual-receive and dual-transmit radio RF board based on XC7Z100+ADRV9009
- 【Repost】The definition and difference between passive and active signals of sensors
- TI C64x+ DSP CACHE consistency analysis and maintenance
- Some basic knowledge about SPI-Flash
- Is your phone ready for 5G?
- [MSP430] Practical ADC use, internal temperature measurement use