The Mitsubishi M16C/6N Series single-chip CAN / USB protocol converter
- Author
- WuGuoHua
- Advisor
- ZhangJiLong
- School
- University of North
- Major
- Signal and Information Processing
- Classification
- TP368.12 Microprocessor
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 153
- Citations
- 0
Abstract
This article describes the CAN / USB protocol converter based Mitsubishi M16C/6N series microcontroller , combined with the CAN bus and USB bus technology development , it is to solve the lack of coordination of the communication rate and communication format for PC and field equipment long-distance communications provides a practical example . Characteristics of USB and CAN protocol analysis , this paper systematically about some of the core technology used in the development , including hardware and software design of the converter : According to the protocol converter hardware circuit design the Mitsubishi the microcontroller M306NBFCTFP and USB controller USB9604 features of use assembler programming language and a variety of interface circuits ; designed converter to communicate with the host computer 's USB firmware module , CAN communication module ; using C and Visual Basic programming language to write a dynamic link library (DLL) and applications ( user interface ) to realize the communication between PC and field devices . The technology integration , to solve the problem of a long-distance communications , the communication rate and communication format uncoordinated , tested at the same time to get the correct results . The test shows that the stable operation of the converter protocol converter hardware and software combined with each other .
Table of contents
The first chapter 8-21
1.1 Background of 8
1.2 CAN bus technology 8-13
1.2.1 CAN bus describes 8-9
1.2.2 CAN bus protocol 9-13
1.3 USB bus communication the 13-21 1.3.1 USB bus
About 13-14
1.3.2 communication structure 14-15
1.3.3 transmission unit - package 15-16
1.3.4 package Type 16
1.3.5 Transaction Processing the 16-17
1.3.6 frame 17-18
1.3.7 Transmission types 18-20
1.3.8 USB transmission robustness 20-21
Chapter II protocol converter hardware design 21-32
2.1 protocol converter the overall design the 21-22 the 2.1.1 protocol converter
Communication Theory 21
the 2.1.2 protocol converter overall design 21-22
2.2 CAN / USB protocol converter hardware design 22-32
2.2.1 Overview the 2.2.2 protocol converter hardware constitute 22-23
23-25 ??
2.2.3 interface 25-32
Chapter software design 32-61
3.1 firmware design 32-56 < br /> 3.1.1 USB bus enumeration the 3.1.2 USB endpoint functions set 32-39
39-40
3.1.3 CAN data reception and transmission 40-53
3.1.4 firmware control processes 53-56
3.2 PC side software design 56-61
3.2.1 USB device driver program 56-58
3.2.2 PC side CAN API (Application Program Interface) 58-61
Chapter test protocol converter with the experimental results 61-77
4.1 Summary 61-63
4.1.1 debugging environment constitute preparatory work before the 61-63
4.2 debug 63
4.3 USB communication interface debug to 4.3.1 CAN
63-65 set information received and feedback 63-65
4.3.2 CAN receiver data send (Device → PC) 65
4.4 CAN communication debugging 65-67
4.4.1 CAN data frame signaling functions 66
4.4 .2 CAN data frame received the frame 66-67
4.4.3 remote frame reception and data sent 67
4.4.4 remote frame transmission and data frame Receive 67
4.5 Accessibility Testing the 67-68
4.6 Comprehensive Test 68-69
4.7 test results 69-77
Full Summary Looking 77-78
Acknowledgements 78-79
Master during the academic 79-80
References 80-82
Related dissertations
- Research of Energy Microlgae Cultivating Monitoring System Based on CAN
- The Study and Realization of Protocol Converter between CAN Bus and SPI Bus
- Design and Application of Protocol Converter Based on Fieldbus
- Design and Research of CAN-USB Host-Slave Communication Adapter
- 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 Embedded Data Acquisition and Processing System of MEMS-INS
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Usb Without Invasive Data Collection Technology Research
- Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
- Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
- Grating Data Acquisition and Error Correction Technology
- CCD Data Acquisition System Implementation Based on FPGA
- Research of Data Acquistion System Based on FPGA
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Design of DeviceNet-CANopen Integrated Slave Node
- The Research of Embeded Intelligent Household Based on ARM
- Design of Industrial Controller Based on EPA
- The Design of the Rectification Recovery System Based on the CAN Bus