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
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- [GD32E503 Review] mig29_Step3 Preliminary exploration of LCD display issues
- Can I work in technology for the rest of my life?
- 【Home treasure】 esp32s2 freertos communication between tasks xQueue
- Selection of winning works of the 5th National Undergraduate Electronic Design Competition
- TI's Stereo Evaluation Module Reference Design for IV Sensing Audio Amplifier
- Share WB-MQTT Debug Assistant (Android mobile terminal)
- [TI star product limited time purchase] Bluetooth board arrives
- Vacuum cleaner design
- iTOP-4418 development board - Qt and minimal Linux system - extended root partition
- What should I do if the power cord is too long?