Serial communication program has broad application in many fields because of its simple communication circuitry , flexible uses. The purpose of this design is realize the communication between the computer which runs windows and MSC-51 single-chip microcomputer.We can use VB to write PC program.Wnen PC running the program,it can control RS-232 serial-port,The program of microcomputer can be writed by the assembler language to control RS-232 serial-port,In order to ensure the accuracy of correspondence,we should work out a protocol. Based on the principle of serial communication program and MScomm control , the article introduces using VB6. 0 to program the Mul 2 timode Serial Communication program such as manual or automatic transmitting symbol. ,then gives a concrete program.When the design is successful,pressing button with sending to seng data,if receiving the data,the text window will display the data.
Keywords: Serial Communication,Visual Basic6.0(VB6.0),.MSComm,RS-232,Single-
Chip computer
目录