In the process of using the microcontroller, we must have a profound understanding of the "0" and "1" of the digital signal. Generally speaking, the high level "1" is 5V (for the microcontroller with 5V VCC), and the low level "0" is 0V.
In fact, we may use a chip with a power supply voltage of 3.3V, and the voltage of the high level "1" is 3.3V. When it exchanges data with the microcontroller, can the 5V microcontroller normally recognize the "1" of the 3.3V chip?
Whether a 3.3V chip can exchange data normally with a 5V chip depends on the input and output voltage of the IC (also often called the I/O identification voltage), not VCC. Instead, it depends on the input and output voltage. We can check the relevant parameters in the IC specification sheet. The following are some electrical parameters of CH340.
From the table, we can know that there are four parameters related to input and output voltage, which are
Note: To check the input and output voltages, you need to check the input and output voltages of the two chips, and the input and output of the two chips need to be checked crosswise.
The figure below shows the electrical characteristics of the 51 microcontroller
Since the VOL (<0.5V), VOH (>4.5V) of CH340, and the VIL (<0.8V), VIH (>2.0V) of C51 MCU, that is, the input and output levels of CH340 are both within the input and output level range of C51, the C51 MCU can normally identify the high and low levels of the output of CH340.
Assume that due to the VOL (<1V) of CH340, that is, the low level output of CH340 may be 1V, and the VIL (<0.8V) of the C51 microcontroller must be less than 0.8V to recognize the low level, so C51 may not recognize the low level.
Note: Generally speaking, two ICs with the same supply voltage can be recognized normally, and problems are usually caused by ICs with different supply voltages. However, there may be exceptions, so it is critical to determine the input and output voltages, which is the basis for whether the two ICs can communicate normally.
Previous article:C51 Programming Summary - Strange Knowledge of MCU 2 (Keil Compiler Error)
Next article:C51 Programming 25-Application (MCU and computer realize WiFi communication)
- Popular Resources
- Popular amplifiers
- 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
- Please help me. When the circuit board motor is working, the LED light controlled by the IO port of the main control IC will flash.
- Motor rotor position detection
- How do we distinguish the difference between bypass capacitors and decoupling capacitors?
- [Distributed temperature and humidity acquisition system] + WIFI module expansion board V2
- Basic knowledge of power amplifiers - the original feedforward - is still in use today
- How to use WatchDog in RTOS?
- Last day! Double 11 discount of 1,000 yuan for Tektronix oscilloscopes!
- [FM33LG0 series development board evaluation] 02. Basic engineering (LED, KEY, LPUART, LPTIM, SHELL)
- TMS320F28027F for power stage control
- [TI recommended course] #DC/DC switching regulator packaging innovation#