The use of microcontroller virtual serial port in Proteus

Publisher:北极星小鹏Latest 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

The use of virtual serial ports in Proteus should be more accurately called "the use of serial ports in Proteus", but we use software to realize simulation, and virtual serial ports are used more frequently here.

First, set up the environment in Proteus. It is very simple. You only need two components to connect VIRTUAL TERMINAL and COMPIM. As shown in the figure, TXD of VIRTUAL TERMINAL is connected to TXD of COMPIM, and RXD is connected to RXD. The following figure analyzes why they are connected like this:

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

VIRTUAL TERMINAL is a serial port monitoring instrument, which can be used to capture and display the waveform that complies with the RS232 protocol on the data line, and can also send the waveform of the RS232 protocol to the data line; COMPIM is a serial port component, which can be set to occupy which serial port on the computer, which can be an "actual serial port" or a "virtual serial port". For Proteus, it is impossible to distinguish between a virtual serial port and an actual serial port. The next step is to set the communication rate and communication format. Just set the same in the property box. In this way, data communication can be achieved. The picture shows my settings of VIRTUAL TERMINAL and COMPIM:

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

The next step is to realize the communication between Proteus and the serial debugging assistant. In VIRTUAL TERMINAL, you can directly input the data you want to send on the keyboard, but there is no display in the interface. You can see the corresponding input data through the serial debugging assistant.

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

In this way, data is transmitted from Proteus to the serial port debugging assistant, and the corresponding data flow relationship is as follows:

Virtual serial port and its use in Proteus

Now you know why in Proteus the TXD of VIRTUAL TERMINAL is connected to the TXD of COMPIM, and the RXD is connected to the RXD.

Keywords:MCU Reference address:The use of microcontroller virtual serial port in Proteus

Previous article:Microcontroller Basics: Differences among data, idata, xdata, pdata, and code in Keil
Next article:MCU virtual serial port and interface settings

Recommended ReadingLatest update time:2024-11-16 23:55

Digital Temperature Servo Control System Based on Microcontroller
1 Introduction Indoor climate is an artificial climate that is most closely related to human health. With the improvement of people's material living standards, various electrical appliances that adjust indoor climate have increasingly entered ordinary people's homes. Indoor climate has become more and more
[Microcontroller]
51 MCU-button part (1)
Program function: The first three digits of the digital tube display a stopwatch, which runs from 000 to 999 at a speed of 1% second. When an independent keyboard is pressed, the stopwatch stops and continues to run after the hand is released. (Design the watch using a timer).  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[Microcontroller]
Creating unlimited possibilities: the new NXP MCX N series high-performance MCU
The continuous expansion of the Internet of Things has driven a new wave of large-scale intelligent upgrades. Intelligence is shifting from the cloud to edge devices with machine learning (ML) capabilities. These devices are able to process sensor data streams locally, with lower latency, higher security
[Microcontroller]
Creating unlimited possibilities: the new NXP MCX N series high-performance MCU
Application of digital potentiometer in frequency converter controlled by single chip microcomputer
内容中广告结束 Introduction Frequency control as the main means of AC motor speed control has been widely used in the industrial field. It has the technical performance of wide speed control range, high speed stability accuracy, fast dynamic response, wide application range, reliable operation, e
[Microcontroller]
Application of digital potentiometer in frequency converter controlled by single chip microcomputer
Single chip automatic time controller
  The computer clock can simulate the electronic clock to display hours, minutes and seconds. In addition, it can ring the bell on time according to the school's schedule, play music and radio gymnastics programs. This system is equipped with two buttons, one for adjusting the hour and the other for adjusting the minut
[Microcontroller]
Single chip automatic time controller
Simple assembly program for the microcontroller's marquee
Use negation (CPL) to make the marquee flash, and then assign a value to port P0 to make it move. Note: The frequency used is 12MHZ. ORG 0000H LJMP LOOP1 ORG 0030H LOOP1: MOV A,#11111111B clr p1.4 ; turn on enable MOV R1,#5 ; flash 5 times LOOP: CPL A ; Negate MOV P0 , A ; output
[Microcontroller]
Backlog of orders remains high, MCU giant Microchip's Q2 revenue hits record high
Microchip, a supplier of MCU and analog ICs, announced its financial report for the first quarter of fiscal year 2022 (ending June 2021) after the U.S. stock market closed on Tuesday (3rd). Revenue, gross profit margin, and operating profit margin all hit new highs. The company believes that the current backlog of ord
[Mobile phone portable]
Introduction to C51 MCU Timer
Introduction The timer and counter in C51 are supported by the same hardware circuit. By configuring the registers differently, it can be used as a timer or a counter. To be precise, the difference between a timer and a counter is the signal that causes the count memory behind them to increase by 1. When configured
[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号