uart_can

所属分类:单片机开发
开发工具:C/C++
文件大小:5KB
下载次数:163
上传日期:2008-05-12 17:12:41
上 传 者wfew220
说明:  自己编写的串口-CAN口的转换程序,已经测试过没有问题! 一.传输数据协议: 1.初始化 初始化波特率(CAN):$BAUD($:起始符;BAUD:波特率标识符; 相应编码:0x24 0x42 0x41 0x55 0x44) 传输ID号设置:$IDERSTD(相应编码:0x24 0x49 0x44 0x45 0x52 0x53 0x54 0x44) $IDEREXT(相应编码:0x24 0x49 0x44 0x45 0x52 0x45 0x58 0x54) ($:起始符;IDER:ID标识符;STD:标准帧;EXT:扩展帧) 2.数据发送 发送数据 :$DATA($:起始符;DATA:数据标识符 相应编码:0x24 0x44 0x41 0x54 0x41)
(I have written serial-CAN the mouth of the conversion process has been tested there is no problem! 1. Transmission data protocol: 1. Initialization initialize baud rate (CAN): $ BAUD ($: starting at BAUD: Baud rate identifier corresponding code: 0x24 0x42 0x41 0x55 0x44) transmission ID No. Set: $ IDERSTD (corresponding code: 0x24 0x49 0x44 0x45 0x52 0x53 0x54 0x44) $ IDEREXT (corresponding code: 0x24 0x49 0x44 0x45 0x52 0x45 0x58 0x54) ($: starting at IDER: ID identifier STD: standard frame EXT: extended frame) 2. data sent sending data: $ DATA ($: starting at DATA: identifier corresponding encoded data: 0x24 0x44 0x41 0x54 0x41))

文件列表:
uart_can.c (19354, 2006-12-22)

近期下载者

相关文件


收藏者