1 / 10
文档名称:

CAN总线硬件连接及程序.docx

格式:docx   大小:164KB   页数:10页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

CAN总线硬件连接及程序.docx

上传人:cxmckate1 2016/12/27 文件大小:164 KB

下载得到文件列表

CAN总线硬件连接及程序.docx

文档介绍

文档介绍:1. // 2. //------------------------------------------------------------------------------ 3. // 4. // 5. // DEVICE: C8051F040 6. // 7. // AUTHOR: LS 8. // 9. // TOOLS: Keil piler and Silicon Labs IDE 10. // 11. // 12. // and are a simple example of configuring a work to 13. // transmit and receive data on a work, and how to move information to 14. // and from CAN RAM message objects. Each C8051F040-TB CAN node is configured 15. // to send a message when it's button is depressed/released, with a 0x11 16. // to indicate the button is pushed, and 0x00 when released. Each node also has 17. // a message object configured to receive messages. The C8051 tests the 18. // received data and will turn on/off the target board's LED. When one target 19. // is loaded with and the other is loaded with , one target 20. // board's push-button will control the other target board's LED, establishing 21. // a simple control link via the CAN bus and can be observed directly on the 22. // target boards. 23. //////////////////////////////////////////////////////////////////////////////// 24. 25. //////////////////////////////////////////////////////////////////////////////// 26. // Includes 27. //////////////////////////////////////////////////////////////////////////////// 28. 29. #include <> // SFR declarations 30. 31. // CAN Protocol Register