Software function introduction: Virtual Serial Ports Driver can virtualize a pair of logically connected serial ports, assuming they are com3 and com4, then com3 and com4 are logically connected together; proteus, as the simulation software of the microcontroller, communicates with the host computer through the simulated serial port com3; keil is used to write the code of the microcontroller. In the proteus simulation, load the HEX file generated by keil for simulation; labview, as the simulation software of the host computer, communicates with the lower computer through the serial port com4.
Step 1: Install Virtual Serial Ports Driver. After the installation and cracking are completed, click Add pair to virtualize a pair of simulated serial ports com1 and com2. Click Add pair again to virtualize another pair of serial ports com3 and com4, as shown in the figure: Click Additional pair information, you can see that com3 and com4 are logically connected to each other, as shown in the figure: Step 2: Install proteus. After the installation and cracking are completed, design the microcontroller circuit, pay attention to the serial port settings, double-click COMPIM, and set the serial port com3 baud rate, etc., as shown in the figure: [page] Step 3: Install keil. After the installation and cracking are completed, write the program code, compile and generate a HEX file, in the proteus file, double-click the microcontroller, in the corresponding Program File column, point to the path of HEX file, that is, complete the loading of HEX file, as shown in the figure: Step 4: Install labview, pay attention to install VISA driver, after installation and cracking, write program code, pay attention to the setting of serial port, as shown in the figure: The design mainly solves the sending and receiving problems of serial port, realizes the acquisition of voltage and temperature through single chip microcomputer, displays on LCD1602 liquid crystal, and sends to computer display through serial port. In the sending and receiving part of serial port, the recognition of voltage and temperature data and the processing of data with decimal point are solved. Data recognition mainly uses the handshake signal sent regularly by the host computer labview, and data processing mainly uses the data processing of strings, arrays and array elements. If you need related software and source code, please contact me, QQ531187647, welcome the dissemination for non-commercial purposes.
Previous article:STC MCU PCA capture interrupt function
Next article:Transfer the original work one - DIY PL2303 to serial port
Recommended ReadingLatest update time:2024-11-16 14:40
- Popular Resources
- Popular amplifiers
- 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)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
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
- catkin_make does not compile all packages
- [Zero-knowledge ESP8266 tutorial] Quick start 22 Re-exploration of OLED module
- How to amplify the sound as much as possible when the sound source size is unknown
- Line regulation and load regulation
- Some cases of DSP program crash (flying away) - hardware reasons
- [Social Recruitment] [Campus Recruitment] China Electronics Technology Group Corporation Recruitment for Embedded Software Development
- EEWORLD University Hall----Live Replay: ON Semiconductor and Avnet IoT Innovation Design Competition Award Ceremony
- 【NXP Rapid IoT Review】+ Bluetooth (2 Use the computer's Bluetooth connection)
- Based on STM32F0+L6474 stepper driver open source sharing: source code + schematic + BOM table, etc. are all open source
- The product uses two dry batteries with a voltage of 3.2V. In order to prevent the batteries from being connected in reverse, MOS is used. From the simulation results, only...