The serial port of the microcontroller is TTL level and cannot communicate directly with the computer. Level conversion is required. There are many types of level conversion chips on the market. Today I recommend three types to you, namely MAX232, CH340G, and CH340C. The following are introduced respectively.
1. MAX232 chip
This chip is a chip that appears frequently. Whether it is in university textbooks or on MCU development boards, as long as it involves USB/serial ports, this chip will definitely be mentioned. This chip has a dual-channel conversion interface, and the circuit design is not complicated. The following figure is a typical design schematic:
Typical schematic diagram of MAX232 chip
This chip requires four capacitors to build peripheral circuits. The manual recommends using 1uF polarized capacitors, but it has been verified that 0.1uF capacitors can also be used, which greatly reduces the size of the board.
2. CH340G chip
CH340G is produced by Nanjing Qinheng. It can be said that the level conversion chips and gateway chips produced by this company are all magical tools, with simple peripheral circuits and powerful functions. CH340G chip is currently selling well due to its simple peripheral circuits and is often out of stock. Its typical schematic diagram is shown below:
CH340G typical schematic diagram
This chip needs an external 12M crystal oscillator, and when designing, please note that the processing method of the 4th pin V3 is different when the external power supply is 5V and 3.3V. In the above figure, when the external power supply is 5V, V3 needs to pass through a 0.1uF capacitor to GND; when the external power supply is 3.3V, V3 needs to be connected to the power supply. At present, many USB to serial port modules are designed using this chip.
USB/TTL Module
The currently popular ISP automatic download circuit uses this chip.
3.CH340C chip
CH340C and CH340G are in the same series, but CH340C can save the external 12M crystal oscillator and oscillator capacitor when used, saving PCB space and cost, and is relatively more convenient to design. The typical circuit schematic of CH340C is shown below:
CH340C typical schematic diagram
The prices of these chips are not very high, CH340G is about 1.8 yuan, CH340C is about 1.94 yuan, and MAX232 is about 3 yuan. Of course, there are many other chips such as PL2303, which are not recommended here.
Previous article:Modular Programming
Next article:MC9S12XS128 PWM Output Configuration
Recommended ReadingLatest update time:2024-11-15 07:15
- Popular Resources
- Popular amplifiers
- Automatic identification of garbage trucks
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- [ESP32-S2-Kaluga-1 Review] Use of the console component
- Pirated copies are really hard on the eyes - do you feel the same?
- New Year's treasure hunt, Tektronix gives you benefits! Come and start your treasure hunt! The event has begun~
- How to achieve multi-point control of field effect tube electronic switches
- Extremely smooth OLED scrolling display
- Studying the Road to Electric Motor Drive-9: Calculation of “Torque”
- 【Warehouse temperature and humidity automatic control simulation system】- Work submission
- (Multiple images) Top ten tips for expanding the use of oscilloscopes
- Power supply overcurrent and overvoltage protection
- First make an adapter for the parallel interface of the first-generation development board