虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

通信总线

  • 单片机通信系统中CRC算法与硬件环境编程的实现

    在通信系统中从多检错手段中,CRC是非常著名的一种。CRC-全称循环冗余校验是对数据块校验的一种高效的差错控制方法。在单片机通信系统设计过程中,当传输距离较远或是采用无线传输时,为了保证高效而无错地传输数据,必须对数据进行检错,从性能和成本上考虑,采用CRC校验算法远优于奇遇校验和算术和校验等方法。CRC的计算有两种方法,一种是采用专门的硬件,另一种就是软件方法。对于小型低成本的51单片机系统而言,常常需要在没有相关硬件的支持下实现CRC校验,也即通过软件来完成CRC计算(CRC算法)。 这里给出了3种算法,从性能和成本上考虑,它们的适用范围也稍有不同:第一种适用于单片机程序存储空间较小但CRC计算速度要求不高的情况;第二种适用于程序存储空间较大且CRC计算速度要求较高的情况;最后一种适用于程序存储空间不太大,且CRC计算速度要求适中的情况。

    标签: CRC 单片机 通信系统 算法

    上传时间: 2014-12-26

    上传用户:dongbaobao

  • 单片机双工通信的校验方式

      单片机双工通信时用到的校验方式   Ø奇偶校验原理:通过计算数据中“1”的个数是奇数还是偶数来判断数据的正确性。在被校验的数据后加一位校验位或校验字符用作校验码实现校验。   Ø校验位的生成方法   Ø奇校验:确保整个被传输的数据中“1”的个数是奇数个,即载荷数据中“1”的个数是奇数个时校验位填“0”,否则填“1”;   偶校验:确保整个被传输的数据中“1”的个数是偶数个,即载荷数据中“1”的个数是奇数个时校验位填“1”,否则填“0”  

    标签: 单片机 双工通信 校验方式

    上传时间: 2013-10-16

    上传用户:天诚24

  • Delphi串口通信编程教程

    第一章 数据通信基础 第二章 通用串行通信标准和通用MODEM命令 第三章 嵌入式汇编语言开发通信程序 第四章 MSCOMM控件应用 第五章 线程开发... ......................  

    标签: Delphi 串口通信 编程 教程

    上传时间: 2013-10-14

    上传用户:swaylong

  • 单片微机系统测控技术设计集合

    第一章 概述 第二章 微型测控系统常用器件 第三章 工业控制计算技术要点 第四章 单片机存储系统扩展 第五章 标准总线和串行通信 第六章微型机应用系统常用可编程接口芯片 ............................  

    标签: 单片微机 测控技术

    上传时间: 2014-01-09

    上传用户:dbs012280

  • 基于C8051F040的以太网-CAN转换电路设计

    以太网和CAN总线应用广泛,但由于其通信协议不同,两种总线器件间无法进行数据通信,因此,设计了基于CP2200与C8051F040的以太网总线与CAN总线接口转换电路,并给出部分相关硬件电路与软件设计分析。在保证数据完整和协议可靠的前提下,通过握手协议和简化的以太网协议,不仅实现了以太网数据与CAN数据的转发,同时还顺利的解决了以太网的高速性与CAN的低速率冲突,以及两者数据包之间的大小不同的矛盾。 Abstract:  In the development of actual application, Ethernet and CAN bus are used very extensively. Owing to its various communication protocols, the communicating between two kinds of bus device can’t be carried out. Therefore, in order to solve this problem, the Ethernet-CAN bus interface circuit based on CP2200 and C8051F040 was designed in this paper, and part of the related hardware circuit and software design analysis were given. On the condition of data’s integrity and protocols’reliability, through the handshaking protocols and the simplified the Ethernet protocol, not only the data switching between CAN and Ethernet was realized, but also the differ in velocity and packet size was solved.

    标签: C8051F040 CAN 以太网 转换

    上传时间: 2013-10-15

    上传用户:Ants

  • 基于MC9S12HZ256的总线式汽车数字仪表设计

    首先研究CAN总线和SAE J1939协议,提出一种基于MC9S12HZ256微控制器的总线式汽车数字仪表解决方案。详细介绍SAE J1939协议的报文帧格式及应用层协议中发动机相关参数的定义,以及步进电机及其驱动和车速信号的处理方法。该数字仪表系统硬件平台由微处理器和信号采集和信息处理及显示等模块组成。软件设计部分编程实现了对CAN总线和各传感器数据的读取、处理。该系统能够实时反映车辆工况。 Abstract:  In this paper,CAN bus and SAE J1939protocol are researched,and a vehicle digital instrument solution based on MC9S12HZ256MCU is proposed.The message frame format and some engine-related parameters’definition in SAE J1939application layer protocol are introduced in detail.Stepper motor and its driver,the methods of speed signal process-ing are also introduced.The hardware platform of vehicle digital instrument is composed by MCU,signal acquisition mod-ule,and signal processing and displaying module.Data receiving and processing from CAN bus and sensors are accom-plished by programming,and vehicle condition can be reflected in real-time.

    标签: 256 MC9 S12 MC

    上传时间: 2013-10-20

    上传用户:huannan88

  • 工控软件组态王与单片机多机串口通讯的设计

    详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于RS-485总线传输的接口电路原理图。根据组态王提供的通讯协议和单片机多机串口通讯的原理,给出程序设计流程与思路。 Abstract:  In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.

    标签: 工控软件 单片机 串口通讯 多机

    上传时间: 2013-12-19

    上传用户:tecman

  • 基于CAN总线的综自通讯规约设计

    介绍一种基于CAN总线的牵引变电站自动化系统通讯规约的设计,CAN通讯规约采用标准帧,报文采用主动发送和发送查询两种处理形式。该设计在城市轻轨与地铁牵引变电站中的应用表明:可实现间隔层和通讯处理层的数据快速、可靠的交换,提高牵引变电站的安全性和稳定性 。 Abstract:  This paper firstly presents a kind of design dealing with communicational protocol to the traction substation automation system based on CAN bus,and then comes up with the ideas that all frames of CAN communicational protocol should adopt the standard frame,and that messages be processed by two ways:sending initiatively and sending quiries.Subway and light rail application shows that the use of the CAN bus is possible to exchange data quickly and reliably between the layers of the middle and the communicational processing,hence to improve the safety and stability of traction substations.

    标签: CAN 总线 通讯规约

    上传时间: 2013-11-07

    上传用户:bs2005

  • 基于PCI9052的PCI局部总线应用

    详细介绍了PCI9052接口器件的功能、结构和使用方法,并结合实际给出了基于PCI9052器件开发PCI总线接口卡的应用实例。 Abstract:   The main functions,structures and usage of PCI9052inferface chip are introduced in detail in this paper.And an application example of designing PCI bus interface card based on PCI9052is proposed in this paper.

    标签: PCI 9052 局部 总线

    上传时间: 2013-10-16

    上传用户:togetsomething

  • 基于ISA总线与KH-9300的数据采集系统

    介绍基于ISA总线与KH-9300的数据采集板卡的设置,详细说明8254定时计数器及8259中断控制器的结构特点、工作方式、控制字等,探讨中断类型、中断处理程序、中断矢量表及其填写。重点讲述使用TorboC编写中断服务程序的方法,应注意的主要问题及程序测试的结果。 Abstract:  The settings of KH-9300 data acquisition board based on the ISA bus is introduced,the structural characteristics,working methods,control characters of the timing counter 8254 and interruptioncontroller 8259 are explained in detail.The interruption type,interrupt handling programs,interruption vector table and its filling also are discussed.Further,great emphasis is put on the method of interrupt service program compiled by Torbo C,the main issues that should be noted,and the results of program testing.

    标签: 9300 ISA KH 总线

    上传时间: 2013-11-14

    上传用户:qq527891923