This article is about the application of the communication experiment between computers and single-chip microcomputers. It mainly includes the explanation of the experimental principle, hardware circuit diagram, source program, etc.
Contents:
1. Application of MCU serial communication
2. PC controls the MCU IO port output
3. Single chip microcomputer control training guidance and comprehensive application examples
4. The microcontroller sends data to the computer:
[Experimental tasks]
The application of microcontroller serial port communication, through the serial port, our personal computer and microcontroller system communicate.
The personal computer acts as the host computer and sends hexadecimal or ASCII codes to the microcontroller system.
After receiving the data, the system uses LED to display the received data and sends the original data back to the host computer.
[Hardware Circuit Diagram]
[Experimental principle]
RS-232 is a serial bus standard officially announced by the American Electronics Industries Association. It is also the most commonly used serial interface standard. It is used to realize data communication between computers and between computers and peripherals.
The RS-232 serial interface bus is suitable for: the communication distance between devices is no more than 15m, and the maximum transmission rate is 20kBps. The RS-232 protocol uses -5V-15V to represent logic 1; +5V-15V to represent logic 0. We use the MAX232 chip to convert the RS232 level to the TTL level. A complete RS-232 interface has 22 wires and uses a standard 25-pin plug socket. We use a simplified 9-pin plug socket here.
Note that the crystal oscillator we use here is 11.0592M, not 12M, because the baud rate setting requires 11.0592M.
Previous article:C language source code of frequency meter based on single chip microcomputer
Next article:Design of a water bath thermostat controller with switch quantity control
Recommended ReadingLatest update time:2024-11-17 00:32
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- TI mmWave Radar MIMO (2TX4RX) Setup
- [STM32MP157C-EV1] After the first unboxing and evaluation, I will run rtt on it and share other
- If you understand these eight basic circuits, analog circuit analysis will not be difficult!
- MSP430 Program Library---Button
- Make good use of the information memory in the MSP430 chip, no need for an external EEPROM chip
- EEWORLD University ---- Live Replay: How Littelfuse Improves the Safety and Reliability of Electronic Equipment in Smart Buildings in the Internet of Things Era
- [NXP Rapid IoT Review] + Kit Modification-External Lithium Battery
- Solution to the problem of AD20 freezing when starting
- Understand the factors that determine the different performance of ARM core MCUs
- 【Zero Knowledge ESP8266】HTTP WEB Server Example