The Design of Protocol Conversion System
- Author
- ChenZhiFeng
- Advisor
- ShiGuoLiang
- School
- Suzhou University
- Major
- Electronics and Communication Engineering
- Classification
- TN915.04 Communication protocols, communication protocols
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 249
- Citations
- 0
Abstract
In real-life test applications, we are facing with a difficulty to direct long interval, non-interruptible test and monitor requirements for our products and hope that the tests can be done automatically under the control of a PC. Unfortunately, various products are using different communication interface and protocols and these interface are not all compatible with PC. In order to connect one or more products to a PC simultaneously, a protocol conversion is needed. a conversion system capable of performing conversions between USB and I~2C, SPI, RS232 and CAN is proposed and discussed in detail in this thesis.A brief introduction of ARM processor, which is used to perform central control functions in the proposed system, is given first; and the descriptions of various interfaces comes next; then a real-time operation system uC/OS II is briefly described.Emphasized in this thesis are the system’s structure, hardware, and software design. All circuit blocks are presented and discussed. The conversion system is prototyped and tested. Its software is simulated, debugged, and optimized. Both hardware and software can work together to perform the proposed communication protocol conversions.
Table of contents
The first chapter 8-11
1.1 The design tasks and requirements overall 8
1.2 communication protocol conversion system analysis and design 8-10
1.3 analysis and design of the protocol converter 10-11
Chapter II communication protocol conversion core circuit analysis and implementation of ARM DUI 11-19
2.1 ARM series chip 11-12
2.2 LPC2119 performance characteristics 12-14
2.3 Analysis and Implementation of the power supply circuit 14-16
2.4 reset circuit analysis achieve 16-17
2.5 clock circuit analysis and implementation of 17-18
2.6 JTAG interface circuit analysis 18-19
chapters transplantation of embedded real-time operating system uC/OS- Ⅱ the 19-23 3.1 real-time operating system kernel
19
3.2 processor code 19 -21
3.3 application code 21
3.4 user application system 21-23
Chapter analysis of the USB bus interface and implementation of 23-26
4.1 USB bus interface Introduction 23
4.2 USB bus interface hardware Analysis and Implementation 23-24
4.3 USB bus interface firmware analysis and 24-26
Chapter I ~ 2C bus interface analysis and 26-36
5.1 I to 2C bus interface Introduction 26-27
5.2 I ~~ 2C bus interface hardware and Implementation 27-29
5.3 the I 2C bus firmware analysis and implementation of 29-36
5.3.1 initial of I ~~ 2C bus 5.3.2 send
29-30 I ~ 2C bus data receiving 30-31
5.3.3 I ~ 2C bus data 31 -33
5.3.4 I ~ 2C interrupt service routine 33-36
Chapter SPI bus interface analysis and achieve 36-43
6.1 the SPI bus The Interface Introduction the 36-37
6.2 the SPI bus interface hardware Analysis and Implementation the 37-38
6.3 SPI bus firmware Analysis and Implementation 38-43
6.3.1 Initialization SPI bus 38-39
6.3.2 to get SPI bus status
39 6.3.3 SPI bus access 39 -40
6.3.4 read and write SPI bus 40-41
6.3.5 access SPI end 41
6.3.6 SPI interrupt service routine 41-43
Chapter VII of the RS232 serial analysis and implementation of 43-49
7.1 RS232 serial communication hardware implementation 43
7.2 UARTO firmware and Implementation the 43-49 7.2.1 initialization
UARTO 43-45
7.2.2 UARTO, sending more bytes 45-46
7.2 the .3 UARTO receive byte 46
the 7.2.4 UARTO interrupt service routine are found; 46-49
Chapter VIII of the analysis of the CAN bus interface and implementation of 49-56
8.1 CAN bus interface Introduction 49-51
8.2 CAN bus interface hardware and Implementation 51
8.3 CAN bus interface firmware analysis and implementation of 51-56
8.3.1 Initialize the CAN the module function InitCAN () 52-53
8.3.2 the CAN bus send data functions CANSendData. () 53-54
8.3.3 CAN driver the receiving the CAN data function ReadCANRcvCyBuf to () 54-55
8.3.4 the driver interrupt process CANIntPrg () 55-56
Chapter debugging and improvement 56-60
9.1 installation and commissioning process 56-58
9.1.1 installation and commissioning of the power supply circuit 56
9.1.2 other core circuit debugging system installed the 56-57, 9.1.3 on uC/OS- II
transplant debugging 57
9.1.4 installation debugging interface circuit 57
9.1.5 each interface individually debugging 57
9.1.6 integrated debugging 57-58
9.2 debug fault with improved 58-59
9.3 debug results 59-60
Chapter conclusions to References 60-61
61-62
Acknowledgements 62
Related dissertations
- Research on the Digital Controller and PID Parameter Tuning of the Proportional Valve
- Design of I~2C/SPI Bus for Digital Output Sensor
- Design and development of laser gyro and USB interface frequency test system
- Design of Smart Terminal for New Energy Micro Grid of Island
- A Design of Automatic Test System of Hydraulic Pressure Station and Its Hardware and Software Realization
- The Study and Realization of Protocol Converter between CAN Bus and SPI Bus
- Analysis and Design of FlexRay-CAN Gateway Protocol in Automotive
- Design and Research of CAN-USB Host-Slave Communication Adapter
- C8051F320 Based Holter Design
- Short-distance Wireless Data Transmission and Interface Technology
- Design and Realization of Computer Embroidery Machine Monitoring System Based on ARM
- The Design of 12000Nm~3 Flue Gas Discharge Desulfuration/denitration Monitoring System
- The Vehicle Malfunction Diagnosis Analytical System Based on LabVIEW
- Design of Contactless Reader with USB Interface
- Design of Distributed Monitoring Vibration Network System On-line and Its Communication Interface
- Application of Communication Technology to Digital Protection Devices
- The research and implementation of an integrated network of multi - protocol conversion
- The Study on Simulation System of Serial Bus Port
- Research and Design of 2M Bit Error Testor
- The Research on Network Embedded System Based on PIC MCU