单片机双工通信时用到的校验方式 Ø奇偶校验原理:通过计算数据中“1”的个数是奇数还是偶数来判断数据的正确性。在被校验的数据后加一位校验位或校验字符用作校验码实现校验。 Ø校验位的生成方法 Ø奇校验:确保整个被传输的数据中“1”的个数是奇数个,即载荷数据中“1”的个数是奇数个时校验位填“0”,否则填“1”; 偶校验:确保整个被传输的数据中“1”的个数是偶数个,即载荷数据中“1”的个数是奇数个时校验位填“1”,否则填“0”
上传时间: 2013-10-16
上传用户:天诚24
第一章 数据通信基础 第二章 通用串行通信标准和通用MODEM命令 第三章 嵌入式汇编语言开发通信程序 第四章 MSCOMM控件应用 第五章 线程开发... ......................
上传时间: 2013-10-14
上传用户:swaylong
Linear 公司的LTC4310是绝缘的双向I2C总线通信器件,每个器件可把I2C逻辑状态编码成信号,通过绝缘层传输到另一个器件.接收器件解码,并驱动I2C总线到适当的确逻辑状态.主要用在绝缘的I2C, SMBus和PMBus 接口,绝缘电源,以太网供电和正到负电源通信.本文介绍了LTC4310主要特性,典型应用以及多种应用电路框图.
上传时间: 2013-11-02
上传用户:trepb001
在深入了解Flash存储器的基础上,采用单片机自动检测存储器无效块。主要通过读取每一块的第1、第2页内容,判断该块的好坏,并给出具体的实现过程,以及部分关键的电路原理图和C语言程序代码。该设计最终实现单片机自动检测Flash坏块的功能,并通过读取ID号检测Flash的性能,同时该设计能够存储和读取1GB数据。 Abstract: On the basis of in-depth understanding the Flash chips,this paper designs a new program which using the SCM to detect the invalid block.Mainly through reading the data of the first and second page to detect the invalid block.Specific implementation procedure was given,and the key circuit schematic diagram and C language program code was introduced.This design achieved the function of using the MCU checks the invalid block finally,and increased the function by reading the ID number of Flash to get the performance of the memory.And the design also can write and read1GB data
上传时间: 2013-10-25
上传用户:taozhihua1314
摘要:在工业自动控制中,单片机与PLC的远距离通信是一个难点与热点问题。本文设计了S7-200PLC与PIC16F877单片机实现远距离串行通信的硬件连接和软件实现方法。本文采用了MAX485E芯片进行TTL电平与差分信号之间的转换,使用RS-485端口和半双工模式进行通信。最后通过异或校验码对接收到的数据进行核对,以进一步提高数据传输的可靠性。实验证明,该方法成功实现了单片机与PLC的远距离通信,并且具有开发简单,抗干扰能力强的特点,具有一定实用价值。关键词:单片机 PLC 串行通信
上传时间: 2014-12-27
上传用户:YUANQINHUI
在开放式数控系统结构模型的基础上,研究了基于ISA总线的DSP通信控制原理。采用中断方式完成了PC机和DSP之间的通信。介绍了以DriverWorks为工具开发ISA设备WDM驱动程序的方法,探讨了中断处理、驱动程序与应用程序之间的通信,简要说明了驱动程序的安装与调试。通过调试,系统设计运行稳定。 Abstract: The ISA bus and DSP correspondence control principle is investigated in the basis of the existing open architecture numerical control system.The interrupt method is used to realize the communication between PC and DSP based on the ISA bus.The methods of WDM driver exploitation for ISA device using Driver Works are introduced.The main process of driver program and the keys such as handle interrupt and the communication between the drivers and application are presented.And how to debug and install the drive is explained.
上传时间: 2013-11-04
上传用户:kang1923
为满足矿井安全生产要求,介绍了一种以AT89C51单片机为主控器,对环境空气的温度、有毒易燃气体的浓度等进行检测的监控系统。该系统配合外围电路能实现对上述环境指标的控制并存储相关数据与上位PC机通信。它采用硬件抗干扰和软件抗干扰技术,以确保整个系统工作的准确性。 Abstract: In order to meet the needs of mine produce safety,a kind of intellignet mine ambient monotoring and control system based on AT89C51 is introduced.This system can detect the temperature of ambient of mine,the density of poisonous inflammable gas,combined external circuit.With its function part, this system can change above-mentioned elements.
上传时间: 2013-11-10
上传用户:wendy15
主要介绍了以PIC18F2480单片机为处理器,基于可编程多路开关检测接口器件MC33993实现的车用多路开关检测接口电路的设计。该设计克服了以往基于分立元件的检测接口电路的弊端,简化了接口电路设计,保证了车用开关工作的可靠性和安全性。 Abstract: The design of automotive multiple switch detection interface circuit based on MC33993 is introduced mainly which adopts PIC18F2480 single chip microprocessor.This circuit overcomes shortage of traditional design which contains many schism elements, and the application of MC33993 also predigests the whole design of interface circuit and guarantees the dependability and security of the switch.
上传时间: 2013-11-19
上传用户:star_in_rain
为了提高环境参数采集的自动化水平,提升效率,设计了无线传感器系统。本系统运用了传感器技术、通信技术和单片机技术,实现了对环境温度、湿度、光照度以及可燃性气体浓度等参数的检测。它能够实时地与上位机进行无线通信,满足对环境参数实时监测的要求。 Abstract: In order to increase the degree of automation and improve the efficiency of the environment monitoring parameters,the wireless sensor system was developed.Combining with the technique of sensor,automatic monitoring,communication and single-chip microcomputer,it realized real-time monitoring environment parameters,such as temperature,humidity,illumination,concentration of com- bustible gas and so on.At the same time it can communicate with upper personal computers,satisfy the desire of real-time monitoring.
上传时间: 2013-11-22
上传用户:longlong12345678
针对船舶气象仪保障维修而设计的船舶气象仪测试系统,包括信息处理终端、主仪器检测模块、传感器检测模块,各个模块都采用基于AVR单片机的嵌入式系统,模块之间通过CAN总线进行通信。结果表明,船舶气象仪测试系统能够快速检测船舶气象仪故障,与单纯依靠人工方式排查故障相比,故障检测时间缩短了60%以上。 Abstract: The test system of ship meteorological instrument was developed to satisfy the maintenance of ship meteorological instruments,which composed of information processing terminal, testing module of main instrument and testing module of sensors. Each of these modules included an embedded system based on microcontroller of AVR series and communicated with other module by CAN bus. The results show that the test system can judge the fault of ship meteorological instrument quickly and shorten the fault detection time as much as 60% compared with simple manual troubleshooting.
上传时间: 2013-11-23
上传用户:stvnash