Proteus and Labview simulate serial port function

Publisher:cyzceeLatest update time:2015-07-13 Source: 51heiKeywords:proteus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
    Use proteus and labview to simulate serial port functions. The required software are proteus; keil; labview; Virtual Serial Ports Driver.
     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.





















Keywords:proteus Reference address:Proteus and Labview simulate serial port function

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

Labview local variables and global variables
When I was working on the host computer, I wanted to use a stop button to control two parallel loops, as follows At that time, I failed to use the stop button in Boolean as a local variable, and the following error occurred (I was in a hurry and didn't solve it at that time)   Now I have found the solutio
[Test Measurement]
Oscilloscope control design based on labview
We know that the current digital oscilloscope can accurately capture various periodic signals and non-periodic signals. The digital oscilloscope has become one of the most important equipment for collecting, recording and analyzing various signals in scientific research experiments and engineering projects . In many c
[Test Measurement]
Oscilloscope control design based on labview
002_89C52_Proteus_DAC0832_output 50HZ, sine wave, triangle wave, rectangular wave, sawtooth wave
Circuit Diagram (III) Output square wave (IV) Output sawtooth wave (V) Output triangle wave (VI) Output sine wave 7. Procedure 1 #include absacc.h 2 #include reg52.h 3 4 #define DA0832 P2 5 #define DATA 57 //Timer
[Microcontroller]
002_89C52_Proteus_DAC0832_output 50HZ, sine wave, triangle wave, rectangular wave, sawtooth wave
How to use shared variables between EXE programs in LABVIEW
1. Shared variables run at the bottom layer. To avoid unnecessary trouble, use English directories as much as possible. 2. Shared variable settings: nothing special, all default option values: network publishing, but no alias (because it is only verified on the local machine, an alias is needed for actual use to
[Test Measurement]
How to use shared variables between EXE programs in LABVIEW
Testing ASICs with LabVIEW and NI PXI
"Our virtual instrument is built on top of dedicated software written in LabVIEW, so the user can set the appropriate test configuration, ASIC parameters, and read the data, then display the results in a graphical user interface. We were able to save a year of testing time by building a system based on NI products." –
[Test Measurement]
Application plan to implement multi-channel data testing system based on LabVIEW development platform
In previous test systems, the lead-type test method is generally used to achieve synchronous acquisition, display and analysis of signals. However, in the harsh environment of high temperature, high impact, and high pressure where the weapon system parameter test device works, the wiring of the lead-type test method i
[Test Measurement]
Application plan to implement multi-channel data testing system based on LabVIEW development platform
Digital adjustable voltage regulated power supply (1.3-25v) based on PIC microcontroller PROTEUS simulation + source program
, 5 endm bank1 macro bsf STATUS,5 endm ORG 0x00 nop nop         goto         start         ORG         0x004         start bank0 clrf         GPIO         bcf         INTCON,GIE         bank1         movlw         0xc0         movwf OPTION_REG movlw 0x06         movwf         ADCON1         movlw 0xc9 TRIS         G
[Microcontroller]
Digital adjustable voltage regulated power supply (1.3-25v) based on PIC microcontroller PROTEUS simulation + source program
Signal Types in LabVIEW 8.2
  Signals can be divided into continuous signals and discrete signals according to the continuity of the independent variable (usually time). If the independent variable of the signal is a continuous time variable, then the signal is a continuous signal; if the independent variable is a discrete time variable, then the
[Test Measurement]
Signal Types in LabVIEW 8.2
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号