60215 views|22 replies

1379

Posts

0

Resources
The OP
 

Using VC++6.0 to implement serial port data exchange between PC and single-chip microcomputer [Copy link]

Serial communication issues are often involved in the field of industrial control (such as DCS systems). In order to realize data exchange between microcomputers and single-chip microcomputers, people use various methods to realize serial communication, such as assembly language or C language under DOS , but there are some difficulties and shortcomings under Windows environment. Under the situation that Windows operating system has occupied a dominant position (not to mention that some systems do not support DOS at all, such as Windows2000 ), it is increasingly important to develop serial communication technology under Windows environment. VC++6.0 is a development environment launched by Microsoft in 1998. It is favored by software developers for its powerful functions, friendly interface, 32-bit object-oriented programming and flexibility of Active X, and is widely used in various fields. There are currently several methods for developing serial communication using VC++ : one is to use Windows API communication functions; the second is to use VC 's standard communication functions inp , inpw , inpd , outp , outpw , outpd , etc. to directly operate the serial port; the third is to use Microsoft Visual C++ 's communication control ( MSComm ); the fourth is to use the communication class written by a third party. Among the above methods, the first one is widely used, but it is more difficult to use because it is more complicated and highly specialized; the second method requires understanding of the hardware circuit structure principle; the third method seems simpler and only requires simple configuration of the serial port, but it is not very easy because it uses the confusing VARIANT class; the fourth method is to use a CSerial class for serial communication (this class is provided by a third party), which can be used . The author used the CSerial class to easily realize the communication between the partition starter (single-chip microcomputer system) of the fixed EBM aerosol fire extinguishing system and the host computer. The following will combine examples to give several methods to achieve serial communication









432.rar

11.66 KB, downloads: 389

This post is from MCU

Latest reply

In practice, if there are any problems, I may need your help.  Details Published on 2010-1-21 09:31
 

1583

Posts

0

Resources
2
 
OK, I'll take it. Thank you, OP.
This post is from MCU
 
Personal signature
 

2

Posts

0

Resources
3
 
grateful
This post is from MCU
 
 
 

17

Posts

0

Resources
4
 
Thanks a lot...
This post is from MCU
 
Personal signatureFrankcai
 
 

17

Posts

0

Resources
5
 
Quite good
This post is from MCU
 
Personal signatureFrankcai
 
 

46

Posts

0

Resources
6
 
Thanks in advance,
This post is from MCU
 
 
 

42

Posts

0

Resources
7
 
OK, I got it. Thank you, OP.
This post is from MCU
 
 
 

23

Posts

0

Resources
8
 
Good, good, support
This post is from MCU
 
 
 

18

Posts

0

Resources
9
 
Oh thank you
This post is from MCU
 
 
 

3

Posts

0

Resources
10
 
Hehe, you're welcome. I'll take it.
This post is from MCU
 
 
 

5

Posts

0

Resources
11
 
THANKS A LOT!
This post is from MCU
 
 
 

116

Posts

0

Resources
12
 
Learn, learn!
This post is from MCU
 
 
 

2

Posts

0

Resources
13
 
I'm in trouble, I'd like to see it, thank you
This post is from MCU
 
 
 

7

Posts

0

Resources
14
 
Thanks to the original poster. I have been looking for this kind of stuff. I have done it for a while in school before, but my foundation is too poor. When I saw this topic, I couldn't help but come in. . .
This post is from MCU
 
 
 

17

Posts

0

Resources
15
 
Thanks in advance
This post is from MCU
 
 
 

27

Posts

0

Resources
16
 
Using VC++6.0 to realize serial port data exchange between PC and single chip microcomputer
This post is from MCU
 
Personal signaturegood luck
 
 

62

Posts

0

Resources
17
 
Thank you, hehe...
This post is from MCU
 
 
 

8

Posts

0

Resources
18
 
Thanks for sharing, I will learn from it
This post is from MCU
 
 
 

39

Posts

0

Resources
19
 
I have been looking for this kind of information for a long time. Thank you very much! ! ! ! !
This post is from MCU
 
 
 

1

Posts

0

Resources
20
 
thanks
This post is from MCU
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list