Serial Data Communication Based on Single Chip
- Author
- WangJing
- Advisor
- WuLingYun , LiYunQiang
- School
- Yangtze University
- Major
- Computer technology
- Classification
- TN919 Data communication
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 3
- Citations
- 0
Abstract
With the development of computer technology, especially the development of single-chip microcomputer technology, people have more and more use to monitor and control of some industrial control systems such as temperature、flow and pressure parameters。PC has a powerful monitoring and management ability, and the single chip microcomputer is fast and the spirit and the control characteristics, communicate through PC RS-232serial interface and an external device, is a kind of communication commonly。Used solution for the measurement and control system SCM has a small size、high integration、strong function、strong anti-interference ability, high reliability and unique advantages。so it has been widely used in various fields。but after all, the disadvantage of microcontroller simple function to management so in most of the cases are the combination of MCU and IBM-PC communication system。The former is responsible for the control object; the latter is responsible for the centralized monitoring and management and data processing of single chip microcomputer。In this case, of course, has produced a new proposition, that is how to solve the communication between two or more than two machineIn more complex control and data acquisition systems。Usually use PC machine as the position machine, as the lower computer, through RS-232serial interface with MCU, PC machine connected to each other for data communication。So, dual serial communication become the basis of industrial control system, MCU and PC, a wide range of applications, has certain use value。The main content of this design is:the communication between the PC and MCS-51Series MCU, microcontroller89C52and IBM-PC8250。 the use of as sembly language soft ware programming。 First, using51single-chip computer (AT89C52), data storage (6264) and5*8matrixkeyboard, FM12232B display, and then through the level conversion chip (MAX232) level conversion RS232and TTL interface can be identified, passed to the host computer through the serial port, using VB\VC programming to display the sending and receiving data in a PC machine, and realize statistics of sending and receiving time, according to senior file format。We will dual serial port is connected, but because the level of serial signal PC and single chip microcomputer is inconsistent, so, must the level conversion, here we are connected through the standard RS-232C and MCU interface, realize the level conversion chip MAX232is used, The microcontroller serial port to realize data communication in concrete。 communication protocol to establish reasonable, key serial port software programming in the communication format and baud rate setting。In the design, a detailed description of the structure and function of each unit circuit, the chip module principle、the internal structure and method of use。In order to improve the reliability of the communication system, programming with VB PC, lower PC is programmed with assemble language。Prior to the start of data transmission in the upper machine and lower machine, using the method of handshake communication。 In the process of communication, often because they can not guarantee the success of each communication, for some reason, the handshake signal can improve the success rate of fault tolerant ability and communication system。the system will not lose data, Shake hands after the success of success flag。set the handshake, Between the upper and lower machine can start data transfer。The handshake communication method can effectively overcome the interference caused by the error data transfer, the exchange of information with high reliability。Software is the key part of SCM serial communication, so in the software design in the third chapter I introduces the programming of MCU programming mechanism。Edit the man-machine interface by VB language, generating executable files, realize PC to PC to send data, software is used to realize manual set parity, data bits、stop bits、can choose automatic transmission and manual transmission, empty the receiving area data, save the received data, and display the advanced function of receiving and sending data time etc。
Table of contents
Summary 4-6
Abstract 6-11
Chapter 1 Introduction 11-13
1.1 Purpose 11 <br / > 1.2 system features 11
1.3 system Diagram 11-12
1.4 hardware circuit 12-13
Chapter 2 system Hardware 13-28
2.1 AT89C52 chip introduced 13-18
2.1.1 AT89C52 pin 13-16
2.1.2 AT89C52 internal structure and register 16-18
2.2 serial communication module MAX232 18-21
2.2.1 chip select 18
2.2.2 RS-232C pin functions 18-19
Features 2.2.3 RS-232 interface 19
2.2.4 MAX232 chip and serial connection 19-21
2.3 matrix keyboard interface technology 21-25
2.3.1 keyboard matrix structure and working principle 21-22
2.3.2 matrix keyboard key identification 22-25
2.4 LCD liquid crystal display 25-28
2.4.1 shows the principle 25-26
2.4.2 FM12232 bus interface driver circuit 26
2.4.3 LCD display initialization process 26-28
Chapter 3 data transmission 28-32
3.1 communication and communication types 28-29
3.1.1 parallel transmission type communication ( parallel communication ) 28-29
3.1.2 serial transmission type communication ( serial communication ) 29
3.2 data transfer 29-30
3.3 synchronous serial communication 30-32
3.3.1 asynchronous communication 30-31 <br / > 3.3.2 synchronous communication 31-32
Chapter 4 system Software 32-41
4.1 PC part 32-35
4.1.1 The overall idea 32-34
4.1.2 achieve functional 34-35
4.2 lower machine part 35-41
4.2.1 nbsp main program flow chart shown in Figure 4-3; 36-37
4.2.2 microcontroller sends a flow chart nbsp 37-38
4.2.3 achieve data transmission program ; achieve 38-39
4.2.4 receiving Program 39-41
conclusion 41-43
Appendix 1 (12232A bus interface driver instance ) 43-51
Appendix 2 VB6.0 for data transmission and reception procedures 51-53
Thanks 53-54
References 54-56
Profile 56-57
Related dissertations
- A Saving Energy and Intelligent Controller Based on STC89C51RC Used in Classrooms of General University
- Modbus Protocol Realize PC and Dspic30F6014Processor Communications
- Research of Motor Protection System Based on RS-485
- The Development of Ship Shaft Power Measurement Based on Photoelectric Sensor
- The Design of Small Marine Buoy’s Data Acquisition System
- Study on On-line Monitoring System for Pipeline Pressure Based on Dada Fusion
- The Design and Study of Muti-Function Temperature Detection System Based on MCS
- A Design of the Piezoelectric Accelerometer’s Low-Frequency Signal Gathering System Based on MCU
- Design of Real-Time Temperature Measuring Device of Gun Charge Based on Single Chip Computer
- Design and Implementation of Hydrological Information Telemetry System Based on GSM
- The Foam Insulation Greenhouse Monitoring System Design
- Research on PLC remote monitoring technology based on Internet
- Design of an Automatic Test System for Radar
- Study of Vision-based Tracking and Positioning System for Moving Target in a Large-scale Space
- Research of a System Integrated Rotational Speed and Temperature Measurement Based on MCU
- The Wireless Temperature and Humidity Monitoring System Design
- The Design for Wireless Multiple Measuring System of Small Area Crop Growth Environment
- Development and design of intelligent residential area centralized control system
- Development of Simple Controller Device
- Development of Automatic Towel Hemming Machine Control System