MCU virtual serial port and interface settings

Publisher:shengjuLatest update time:2013-02-26 Source: 21IC Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Virtual Serial Port

A virtual serial port is a serial port simulated by a computer through software. When other design software uses the serial port, you can call the virtual serial port to simulate and check the correctness of the design. First, you need to install the software for setting the virtual serial port. There are many software for setting virtual serial ports on the Internet. I use VSPD, which can be tried for 1 month. After the trial period, the software will not be usable, but don't worry, the virtual serial port you set will not disappear and you can continue to use it.

Settings interface:

Virtual serial port and its use in Proteus - Jianghai - Jianghai

I set COM3 and COM4. The software can only be set in pairs, mainly because one party can monitor the other party during communication. If only one virtual serial port is set, if you use COM3 to send and receive data, you can't verify the correctness and source of what you send and receive. This is the cleverness of the software. When setting up the software, connect the two virtual serial ports, so that the sending and receiving can be monitored. You can see from the device manager

Virtual serial port and its use in Proteus - Jianghai - Jianghai

Two virtual serial port connection methods:

Virtual serial port and its use in Proteus - Jianghai - Jianghai

In this way, you can use the serial port debugging assistant to debug serial port communication. From the figure below, you can see that the data sent by COM3 reaches the receiving area of ​​COM4, ​​and the data sent by COM4 reaches the receiving area of ​​COM3, thus realizing the interconnection between COM3 and COM4.

Virtual serial port and its use in Proteus - Jianghai - Jianghai

At this point, the virtual serial port has been set up. For other design software, there is no difference between the virtual serial port and the ordinary serial port. For example, the serial port debugging assistant uses the virtual serial port in the same way as the ordinary serial port.

Keywords:MCU Reference address:MCU virtual serial port and interface settings

Previous article:The use of microcontroller virtual serial port in Proteus
Next article:How to learn MCU? Steps to learn MCU

Recommended ReadingLatest update time:2024-11-17 02:50

51 MCU ~ DS1302 clock, SPI bus principle
1. Description: (II) SPI bus principle: (III) Calendar clock register: Slow charging: BCD code: temp.h #ifndef __TEMP_H_ #define __TEMP_H_ #include reg52.h //---Redefine keywords---// #ifndef uchar #define uchar unsigned char #endif #ifndef uint  #define uint unsigned int #endif //--
[Microcontroller]
51 MCU ~ DS1302 clock, SPI bus principle
BWT901CL MCU and Arduino Program (Bluetooth 9-axis)
//51 MCU reads the serial port MPU6050 module example program //testing platform: //51 MCU development board YL-39, chip STC89C52 //Notice: // The 1.51 microcontroller has only one download serial port, and it needs to be connected to MPU6050 at the same time. Therefore, you need to unplug the TX line of MPU6050 when
[Microcontroller]
Application of PIC16LF874 microcontroller in capacitance measurement module
Capacitive sensors have been widely used in industry, medicine, military and other fields. However, most of the current capacitance measurement methods have low integration level and low precision, so accurate measurement of capacitance, especially small capacitance, has always been a very important content. The oscil
[Microcontroller]
Application of PIC16LF874 microcontroller in capacitance measurement module
Music toilet based on single chip microcomputer design
The last course project before graduation, each student in the class has a topic. Mine is: Musical Toilet. This program is not difficult, and only two I/O ports of the 51 single-chip microcomputer are used, but the idea of ​​the program is independent of the teacher. If there are any problems when you look back later,
[Microcontroller]
Application of state machine ideas in single chip microcomputer programming
The concept of state machine State machine is an important concept in software programming. More important than this concept is its flexible application. In a clear and efficient program, there must be a state machine. For example, a key command parsing program can be considered a state machine: originall
[Microcontroller]
Application of state machine ideas in single chip microcomputer programming
51 MCU Tutorial from Scratch - Part 7 Parallel Port Structure
Use applet to understand what parallel port structure is Last two times we did two experiments, both of which used the pin P1.0 to turn on the light. We can imagine: since P1.0 can turn on the light, can other pins not? Take a look at Figure 1 , which is the description of the pins of the 8031
[Microcontroller]
51 MCU Tutorial from Scratch - Part 7 Parallel Port Structure
PIC16F84 single chip microcomputer generates two sets of PWM output examples
;********************************************************************** ;                                                                     * ;    檔案名稱:     PWM-C.asm                                         * ;********************************************************************** ;                                 
[Microcontroller]
The development and utilization of single chip microcomputer in human language interaction
 (1) Design intention. Language is a unique way of communication for humans, and it plays an incomparable role in the long process of human social development. Making machines "speak" has always been the direction of electronic technology's continuous efforts, and language synthesis is an important part of human-machi
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号