您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > GCAN-601 嵌入式UART转CAN用户手册
GCAN-601嵌入式UART转CAN模块用户手册文档版本:V4.00(2017/05/28)2沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-601修订历史版本日期原因V1.002013/06/16创建文档V2.012013/12/20修正设备工作参数V3.012014/10/22添加部分参数V3.062015/09/09添加部分功能说明V3.502016/09/11添加部分参数V4.002017/05/28增加AT指令配置功能3沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-601目录1功能简介··················································································41.1功能概述···············································································41.2性能特点···············································································41.3典型应用···············································································42设备使用··················································································52.1接口定义及封装尺寸·································································52.2典型应用电路··········································································62.3工作模式···············································································72.4串口连接···············································································72.5CAN连接···············································································82.6CAN总线终端电阻···································································83配置说明················································································103.1配置准备··············································································103.2软件连接·············································································103.3数据转换方式·······································································113.4配置UART串口参数······························································133.5配置CAN参数·····································································133.6配置完成·············································································143.7使用AT命令配置参数····························································144应用实例················································································224.1透明转换·············································································224.2透明带标识转换····································································254.3格式转换·············································································305使用注意······················································································326技术规格······················································································33附录:CAN2.0B协议帧格式································································34销售与服务································································错误!未定义书签。4沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-6011功能简介1.1功能概述GCAN-601是集成1路标准CAN-bus接口、1路标准UART串行接口的通讯转换模块。用户可以直接将GCAN-601模块与单片机的UART接口连接,在不改变用户原有硬件结构的前提下使其获得CAN-bus通讯接口,构成现场总线实验室、工业控制、智能小区、汽车电子网络等CAN-bus网络领域中数据处理、数据采集的CAN-bus网络控制节点。GCAN-601模块在正常工作时,处于实时对CAN总线和UART总线进行监听的状态,一旦检测到某一侧总线上有数据接收到,立即对其进行解析,并装入各自的缓冲区,然后按设定的工作方式处理并转换发送到另一侧的总线,实现数据格式的转换。1.2性能特点标准UART电平,可直接与单片机连接;串口波特率支持600bps~921600bps;提供三种数据转换模式:透明转换、透明带标识转换、格式转换;可配置三种转换方向:双向转换、仅CAN→串口、仅串口→CAN;CAN-bus支持CAN2.0A和CAN2.0B帧格式,符合ISO/DIS11898规范;CAN-bus通讯波特率在5Kbps~1Mbps之间任意可编程;使用3.3VDC供电;非易失行存储器保存配置参数,每次上电后自动调用最近一次的参数;工作温度范围:-40℃~+85℃;尺寸:(长)22mm*(宽)13mm。1.3典型应用现有RS-232设备连接CAN-bus网络;扩展标准RS-232网络通讯长度;PLC设备连接CAN-bus网络通讯;CAN-bus与串行总线之间的网关网桥;工业现场网络数据监控;CAN工业自动化控制系统;低速CAN网络数据采集数据分析;智能楼宇控制数据广播系统等CAN-bus应用系统。5沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-6012设备使用2.1接口定义及封装尺寸2.1.1模块接口定义GCAN-601模块接口定义如图2.1所示,各引脚具体含义如表2.1所示。图2.1GCAN-601模块接口定义图引脚号名称含义13.3V电源+3.3V接口2UART_TXUARTTX引出脚3UART_RXUARTRX引出脚4CAN_H连接CAN总线CAN_H5CAN_L连接CAN总线CAN_L6GND电源GND接口7IAP内核升级引脚8RST复位引脚9/10NC无连接表2.1GCAN-601模块引脚定义6沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-6012.1.2模块封装尺寸GCAN-601模块各引脚封装尺寸如图2.2所示。图2.2GCAN-601模块封装尺寸2.2典型应用电路2.2.1电源模块电源电路主要包含LM2576电源模块和AMS1117模块。LM2576电源模块用于电源供电,额定电压9-30V。AS1117模块主要用于电压转换,将5V转为3.3V给GCAN-601模块供电。7沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-6012.2.2串口通信串口通信主要采用RS232收发器SP232EEN。使用时需要注意:RS232收发器芯片的TXIN需要接GCAN-601模块的TX接口,RXOUT接GCAN-601模块的RX接口,VCC为5V。2.3工作模式GCAN-601模块有三种工作模式,正常模式、配置模式和升级内核。模式功能正常模式模块出厂的通用模式,上电即正常工作。配置模式在正常模式下,将IAP管脚连接至3.3V,模块即可进入配置模式。(RET键/重新上电即可回到正常模式。)升级内核将IAP管脚连接至3.3V,之后上电即可进入IAP模式,通过UART可以升级内核。(该模式请在广成科技工程师指导下使用。)2.4串口连接GCAN-601模块使用标准UART电平(3.3V),因此该模块可以直接与单片8沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-601机的UART接口连接。2.5CAN连接GCAN-601模块接入CAN总线只需将CAN_H连CAN_H,CAN_L连CAN_L即可建立通信。CAN-bus网络采用直线拓扑结构,总线最远的2个终端需要安装120Ω的终端电阻;如果节点数目大于2,中间节点不需要安装120Ω的终端电阻。对于分支连接,其长度不应超过3米。CAN-bus总线的连接如图2.3所示。图2.3CAN-bus网络的拓扑结构请注意:CAN-bus电缆可以使用普通双绞线、屏蔽双绞线。理论最大通信距离主要取决于总线波特率,最大总线长度和波特率关系详见表2.2。若通讯距离超过1km,应保证线的截面积大于Φ1.0mm2,具体规格应根据距离而定,常规是随距离的加长而适当加大。波特率总线长度1Mbit/s40m500kbit/s110m250kbit/s240m125kbit/s500m50kbit/s1.3km20kbit/s3.3km10kbit/s6.6km5kbit/s13km表2.2波特率与最大总线长度参照表2.6CAN总线终端电阻为了增强CAN通讯的可靠性,消除CAN总线终端信号反射干扰,CAN总线网络最远的两个端点通常要加入终端匹配电阻,如图2.4所示。终端匹配电阻的9沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-601值由传输电缆的特性阻抗所决定。例如双绞线的特性阻抗为120Ω,则总线上的两个端点也应集成120Ω终端电阻。如果网络上其他节点使用不同的收发器,则终端电阻须另外计算。图2.4GCAN-601与其他CAN节点设备连接请注意:GCAN-601模块内部未集成120Ω终端电阻。如果节点数目大于2,中间节点不需要安装120Ω的终端电阻。需要使用时,将电阻两端分别接入CAN_H、CAN_L即可,如图3.2所示。10沈阳广成科技有限公司嵌入式UART转CAN模块-GCAN-6013配置说明GCAN-601模块可以支持两种方式对其配置,分别是:使用电
本文标题:GCAN-601 嵌入式UART转CAN用户手册
链接地址:https://www.777doc.com/doc-3688074 .html