实用单片机系统是基于MCU8051硬件平台下开发的一款操作平台,它不是一个操作系统,而是一个操作平台,主要借鉴了操作系统、手机的一些概念,比如消息机制、系统时钟、软件定时器、平台等概念。 实用单片机系统的核心理念是:在一个标准化的硬件基础上(如8051,avr,arm等)扩展一个标准化的软件平台,把常规项目常用的一些功能如串口通讯、串口调试、系统定时器、软件定时器、按键界面处理等通过消息机制组织起来,形成一个完整的系统。当一个特定的项目需要增加或者删除一项具体的功能时,只需要在平台上增加或者去掉相应的功能即可,这样项目不需要每次重新构思架构,也不需要从零开始,并且原有的系统通过各个项目沉淀后,更加稳定可靠,这就是平台的概念,它不是各个子函数的集合。 相对于现在的很多人把RTOS操作系统应用于MCU来说,往往只为了实现任务的调度转换而不考虑功能的实用、易用性,此外因其较高的资源占用性导致其不适合在MCU类低资源的嵌入式平台应用,MS系统相对于这些RTOS来说,首先还是保留了编程者的常规前后台思维,但又加了一些RTOS的优点,如软件定时器实现的时间片任务系统,类似RTOS的任务,其次为编程者实现了整个程序的框架和一些常用的函数及接口功能如按键、串口、时钟等,让编程者把精力放在跟项目相关的地方,甚至不需要关心所用MCU的寄存器配置,再次就是代码非常简单,容易学习,尤其是建议大家采用SourceInsight查看程序,远比keil编辑器的功能强,它是C语言下最好的编辑器。而MS3.21版本,建议大家直接在Keil的软件仿真器下运行学习。 MS资料可以从以下网址下载:http://www.study-bbs.com/thread-46471-1-1.html读者有什么疑问也可以在这个版面提问,作者将尽力解释。目前MS3.21版本增加了一个GUI操作框架,相比目前已有的GUI更加简单易懂,利用一个函数指针代替了复杂的状态机,每一个界面由一个界面建立函数和一个执行函数构成即可。
上传时间: 2013-10-29
上传用户:txfyddz
在航电系统维护过程中,为解决定位故障的效率和降低维修成本等问题,提出了基于ICD(Interface Control Document,接口控制文件)的1553B总线的信息监控系统模型。该系统运用数据采集卡对总线中传输的信号有无失真、偏差等电气特性进行检测,并使用1553B通讯卡通过测控软件LabWindows/CVI编程与ICD数据库的动态链接,实现总线信息的解析和故障的判断。与传统的维护过程相比,这种模型能够从信号的电气特性以及信息的解析等全方位的去检测判断故障的来源,并且能够广泛在其他1553B总线系统内扩展应用。验证表明该监控系统可以对总线信息进行快速有效地监测分析,能满足应用需求。 Abstract: In the process of avionics system maintenance, to solve the problems such as improving the efficiency of fast orientation to troubles and reducing maintenance cost, system of 1553B bus information monitor model based on ICD was proposed. The system observed whether the data which transmitted on the bus appear distortion and deviation by using data acquisition card. And using 1553B communication card programming of the measure software LabWindows/CVI and the dynamic linking of ICD database, message analysis and fault estimation could be realized. Compared with traditional maintenance, this model can all-dimensionally detect and analyze the source of faults from both electrical characteristics of the signal and message analysis, and it can be widely applied in the other 1553B system. Experiment shown that this monitor system can effectively detect and analyze the bus message and can meet the application requirements.
上传时间: 2013-11-23
上传用户:18752787361
以C8051F020为核心处理器,设计无线传感器网络数据采集系统。系统采用SZ05-ADV型无线通讯模块组建Zigbee无线网络,结合嵌入式系统的软硬件技术,完成终端节点的8路传感器信号的数据采集。现场8路信号通过前端处理后,分别送入C8051F020的12位A/D转换器进行转换。经过精确处理、存储后的现场数据,通过Zigbee无线网络传送到上位机,系统可达到汽车试验中无线测试的目的。 Abstract: This paper designs a wireless sensor network system for data acquisition with C8051F020 as core processors.The system used SZ05-ADV wireless communication module,set up a Zigbee wireless network, combined with hardware and software technologies of embedded systems,completed the end-node 8-locale sensor signal data acquisition.Eight locale signals were sent separately into the 12-bit ADC of C8051F020 for conversion through front treatment.After accurate processing and storage,the locale data was transmitted to the host computer through Zigbee wireless.The system achieves the purpose of wireless testing in vehicle trial.
标签: C8051F020 Zigbee 汽车测试 系统设计
上传时间: 2013-11-23
上传用户:dsgkjgkjg
详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于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通讯规约采用标准帧,报文采用主动发送和发送查询两种处理形式。该设计在城市轻轨与地铁牵引变电站中的应用表明:可实现间隔层和通讯处理层的数据快速、可靠的交换,提高牵引变电站的安全性和稳定性 。 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.
上传时间: 2013-11-07
上传用户:bs2005
介绍了当前普通标记机控制系统现状及其存在缺点,给出气动标记机及相频修正PWM模式的工作原理。采用ATmega16单片机和USB转换RS232接口器件CH341T实现驱动控制系统与PC的实时通讯,标记控制系统可升级到USB接口。采用基于ATmega16的相频修正PWM替换555振荡电路产生的PWM,可直接通过软件调整PWM信号。使用达林顿三极管TIP122替代直流继电器驱动高频电磁阀,使得电磁阀驱动电路简单,成本低廉。该控制系统已成功应用于气动标记机。 Abstract: In this paper,the actuality and demerit of the common gas marking machine control systems are described.The operation principle of the gas marking machine and the phase and frequency correct PWM of ATmega16is introduced.The real-time communication between the driving control system and PC by CH341T which its function is translated USB to RS232is realized,the control systems is updated grade to USB interface.The PWM signal can be adjustable by software for the555surge circuit was substituted by the phase and frequency.The high frequency electromagnetic value’s driving circuit by DC relay is replaced by TIP122,therefore,the circuit is become simple and the cost cheap.The control systems has been widely used in gas marking machine.
上传时间: 2013-10-18
上传用户:1427796291
阐述了一个由上位PC机和AT89C52下位单片机组成的主从分布式温度巡回检测系统。主从机采用RS-485 串行通讯标准进行通信,可在下位单片机实现基本的温度数据巡回检测基础上,由上位PC机实现综合处理功能或扩展为远程操作。整个系统具有巡检速度快,扩展性好的特点。 Abstract: In this paper,a top PC and AT89C52 under-bit microcontrollers from the main component of the tour distributed temperature detection system is presented. Master and slave can use RS-485 serial communication standards for communications.Based on next-bit machine for basic goods temperature detected data Tour, the top can achieve the integrated treatment of PC functions or for the expansion of long-distance operation. The entire inspection system is fast, expansion.
上传时间: 2013-10-13
上传用户:zhoujunzhen
对于传统的跑步机无法联机组网,保存历史数据,实时调试等问题,介绍了一个由多台跑步机通过RS-232串行总线与上位机相连组成的跑步机联网系统。系统采用W77E58作为下位机核心控制器件,它具有双串行通讯端口,其中一个串口用于与变频器通讯,另一个串口则与上位机相连,构成跑步机网络。 Abstract: The traditional running machine can not be connected to a network, saving historical data, real time debug etc.In this paper,a new network system which is composed of running machines connected by a RS-232 communication bus is introduced.In the system,W77E58 is used as a core control unit.W77E58 has two serial ports,one is connected to the inverter and the other is connected to the PC. Thus a network appears.
上传时间: 2014-12-27
上传用户:哇哇哇哇哇
为降低成本和解决现有膜片钳放大器系统中PC机的干扰问题,研究了一种基于单片机的膜片钳放大器小系统。该系统采用ADI公司生产的ADuC841作为控制核心,并且配置相应的液晶显示模块LCM3202401。模拟电路部分采用高输入阻抗的AD8627实现微电流信号的采集,并由后级电路进行信号的放大和电阻电容的补偿。它具有硬件电路简单、体积小、使用方便的特点。既可以单独作为小系统实现采集和显示,也可以通过红外方式和PC机进行通讯,在PC机上进行信号的处理。 Abstract: In order to reduce cost and resolve the interferential problem with PC in existing patch clamp amplifiers, a small patch clamp amplifier system design based on microcontroller is studied. It adopts a new high performance microconverter ADuC841 by the ADI as the control core in the system, configuring a liquid crystal module LCM3202401. In the analog circuit, AD8627 with high input impedance is used to detect the low current,signal magnification, as well as resistance and capacitance compensation are accomplished by subsequent circuits. It has the advantage of simple hardware circuit design, small volume and convenient operation. It can either be used as an independent system to measure and show signal detected or transmit to PC by infrared ray.
上传时间: 2013-11-06
上传用户:yy_cn
摘要:一种基于双单片机通信的无刷直流电动机控制系统的设计方案,对其中转子位置检测电路、驱动电路、保护电路、测速电路、双单片机控制电路等内容进行了讨论,给出了硬件电路和软件框图。实践证明该设计切实可行。关键词:无刷直流电动机 单片机 串行通讯
上传时间: 2013-11-23
上传用户:lanwei