logo资料库

CAN总线开发.pdf

第1页 / 共134页
第2页 / 共134页
第3页 / 共134页
第4页 / 共134页
第5页 / 共134页
第6页 / 共134页
第7页 / 共134页
第8页 / 共134页
资料共134页,剩余部分请下载后查看
Revision history
List of Sections
Table of Contents
List of Figures
List of Tables
Section 1. Introduction
1.1 Contents
1.2 Application intended functionality
1.3 Benefits of our solution
Section 2. Quick Start
2.1 Contents
2.2 Introduction
2.3 PC_CAN Interface Setup
2.4 MCU Flash Programming
Section 3. Hardware Description
3.1 Contents
3.2 Introduction
3.3 Technical Data
3.4 PC_CAN Interface Reference Design Architecture
3.5 The Power Supply
3.6 Board Layout
3.7 Board Connectors
3.8 Memory Map
Section 4. Software Module Descriptions
4.1 Contents
4.2 Introduction
4.3 Project Introduction
4.4 Software Implementation
Appendix A. Bill of Materials and Schematics
A.1 Contents
A.2 PC_CAN Interface Bill of Materials
A.3 PC_CAN Interface Schematics
Appendix B. Source Code Files
B.1 Contents
B.2 CAN_master.c
B.3 CAN_master.h
B.4 rti.c
B.5 rti.h
B.6 spi.c
B.7 spi.h
B.8 s12_regs.c
B.9 s12_regs.h
B.10 MC9S12DP256_RAM.prm
B.11 MC9S12DP256_FLAT.prm
Appendix C. Glossary
. . . c n I , r o t c u d n o c m e S e a c s e e r F l i Freescale Semiconductor, Inc. PC CAN Interface Designer Reference Manual DRM034/D Rev. 0, 03/2003 HCS12 Microcontrollers MOTOROLA.COM/SEMICONDUCTORS For More Information On This Product, Go to: www.freescale.com
. . . c n I , r o t c u d n o c m e S e a c s e e r F l i Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com
. . . c n I , r o t c u d n o c m e S e a c s e e r F l i Freescale Semiconductor, Inc. PC_CAN Interface Reference Design Designer Reference Manual — Rev 0 by: Jaromir Chocholac Zdenek Kaspar TU682 Czech Systems Laboratories DRM034 — Rev 0 MOTOROLA For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 3
. . . i c n I , r o t c u d n o c m e S e a c s e e r F l Freescale Semiconductor, Inc. Revision history To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to: http://www.motorola.com/semiconductors The following revision history table summarizes changes contained in this document. For your convenience, the page number designators have been linked to the appropriate location. Date January, 2003 Revision Level 1.0 Initial release Revision history Description Page Number(s) N/A Designer Reference Manual 4 For More Information On This Product, Go to: www.freescale.com DRM034 — Rev 0 MOTOROLA
. . . c n I , r o t c u d n o c m e S e a c s e e r F l i Freescale Semiconductor, Inc. Designer Reference Manual — PC_CAN List of Sections Section 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Section 2. Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Section 3. Hardware Description . . . . . . . . . . . . . . . . . . . 19 Section 4. Software Module Descriptions. . . . . . . . . . . . 33 Appendix A. Bill of Materials and Schematics . . . . . . . . 73 Appendix B. Source Code Files. . . . . . . . . . . . . . . . . . . . 81 Appendix C. Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . 123 DRM034 — Rev 0 MOTOROLA For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 5
. . . i c n I , r o t c u d n o c m e S e a c s e e r F l Freescale Semiconductor, Inc. List of Sections Designer Reference Manual 6 For More Information On This Product, Go to: www.freescale.com DRM034 — Rev 0 MOTOROLA
. . . c n I , r o t c u d n o c m e S e a c s e e r F l i Freescale Semiconductor, Inc. Designer Reference Manual — PC_CAN Table of Contents Section 1. Introduction Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Application intended functionality . . . . . . . . . . . . . . . . . . . . . . .13 Benefits of our solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Section 2. Quick Start Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 PC_CAN Interface Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.1 1.2 1.3 2.1 2.2 2.3 2.4 MCU Flash Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Section 3. Hardware Description 3.1 3.2 3.3 3.4 3.5 3.6 3.7 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Technical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 PC_CAN Interface Reference Design Architecture . . . . . . . . .25 The Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Board Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Board Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.8 Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Section 4. Software Module Descriptions 4.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 DRM034 — Rev 0 MOTOROLA For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 7
. . . i c n I , r o t c u d n o c m e S e a c s e e r F l Freescale Semiconductor, Inc. Table of Contents 4.2 4.3 4.4 A.1 A.2 A.3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Project Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 Software Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 Appendix A. Bill of Materials and Schematics Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 PC_CAN Interface Bill of Materials. . . . . . . . . . . . . . . . . . . . . .74 PC_CAN Interface Schematics. . . . . . . . . . . . . . . . . . . . . . . . .76 Appendix B. Source Code Files Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 B.1 CAN_master.c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 B.2 CAN_master.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 B.3 rti.c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 B.4 rti.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 B.5 spi.c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 B.6 spi.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 B.7 s12_regs.c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 B.8 B.9 s12_regs.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 B.10 MC9S12DP256_RAM.prm . . . . . . . . . . . . . . . . . . . . . . . . . . .116 B.11 MC9S12DP256_FLAT.prm. . . . . . . . . . . . . . . . . . . . . . . . . . .119 Appendix C. Glossary Designer Reference Manual 8 For More Information On This Product, Go to: www.freescale.com DRM034 — Rev 0 MOTOROLA
分享到:
收藏