介绍一种基于单片机控制的数控直流电流源。系统以AT89S52单片机为控制核心,由V/I转换电路、DA转换、AD转换等模块组成。通过按键设定电流值,并在LCD上同步显示预设值,利用模拟闭环控制原理实现V/I转换功能,采样电阻两端的电压值送给A/D转换电路,经单片机换算成实际输出电流值,并利用LCD显示,供用户参考。经测试,本系统稳定性好、精度较高、操作简单、人机界面友好。在科学研究和设备生产中,能够广泛应用到这种可靠性高、操作简单的数控电流源,不仅能够提高设备的性能,同时能够缩短研发周期,本系统具有较高的实用性。
上传时间: 2013-11-06
上传用户:csgcd001
针对船舶对中小型信息监控终端的需求,提出了一种基于AVR单片机的设计方案。以AVR单片机为核心,采用LCD控制器RA8835实现对液晶显示模块的控制,通过软硬件的紧密配合,实现信息图文并茂的实时显示,以及液晶对比度的调节。试验结果表明,该终端在高温高湿、低温高湿等恶劣环境条件下,显示清晰、工作稳定。
上传时间: 2013-11-16
上传用户:农药锋6
为降低汽车倒车时的碰撞事故,提出了一种基于单片机的超声波测距倒车雷达的设计方案。该设计根据超声波测距原理,采用AT89S52单片机为控制核心,设计了超声波测距倒车雷达,并对测量距离误差进行了分析。测量距离为0.1~5.0 m,其精度经过校正后可达1 cm。该设计结构简单、工作可靠,有良好的测量精度和灵敏度。
上传时间: 2013-11-10
上传用户:songkun
介绍了一种基于单片机的区域交通信号控制系统设计方案,阐述了系统的工作原理及各主要模块的软硬件实现方法。系统能够根据车流量信号动态地改变交通信号灯各状态配时,并通过无线通信技术,有效地解决了特定区域内各路口信号机之间数据的传输,实现了区域交通信号的智能控制。该系统抗干扰能力强,可靠性高,使用非常方便。
上传时间: 2013-10-21
上传用户:kinochen
一、 main.c(35): warning: #128-D: loop is not reachable from preceding code 原因,前面有一个while(1){ …….} 二、 main.c(54): warning: #1-D: last LinE of file ends without a newLinE 少了一个回车在}之后
上传时间: 2014-12-26
上传用户:sjb555
为解决当前计算机串行通讯接口只有USB,难以满足旧型号设备或某些单片机要求RS232通讯的问题,设计出两款RS232/USB电路。采用CH341A与MAX223集成电路芯片构建标准9线RS232/USB通用接口转换器,无需编程。采用CH341A与PIC16F877A构建单片机与计算机之间的USB通讯电路,软件遵循RS232通讯协议,硬件进行电平转换。实际使用表明,这两款产品与计算机端Windows 操作系统下的串口应用程序完全兼容,且通讯过程中无握手失败现象。 Abstract: To solve the problem that current computer serial communication only with USB interface can not satisfy with the old type equipments or MCU to communicate with RS232, two kinds of RS232/USB circuit were designed.CH341A and MAX223 integrated circuit chips were used to create a standard 9-LinE RS232/USB universal interface convertor without programme. CH341A and PIC16F877A chips were adopted to build the USB communication circuit between computers and MCU. The software follows RS232 communication protocol, and the hardware converts electrical levels. Actual practices indicate that the two manufactures are compatible with serial application program of Windows operation system completely,and get avoid of handshake lost.
上传时间: 2013-11-03
上传用户:siying
提出一种基于凌阳单片机的步进电机加减速的控制方法。采用凌阳科技推出的16位结构工控单片机SPMC75F2413A为控制器,由Allegro公司生产的两相步进电机专用驱动器件SLA7042M构成步进电机的驱动电路,在传统的3段直线加减速控制算法基础上增加至7段S形曲线加减速过程,控制步进电机的启动和停止。实验结果表明,该控制方法克服了直线加减速中不连续、易造成系统冲击的问题,整个系统实现柔性控制,电机启动、停止连续性能提高30%。 Abstract: The method of controlled stepping motor is referred based on SPMC75F2413A MCU, which adopts the 16 knots SPMC75F2413A MCU as the controller. The special-purpose actuation chip SLA7042M of two stepping motor produced by Allegro Corporation constituted to actuation electric circuit. The purpose of increasing to seven section of S shape curve based on the traditional three sections of straight LinE is to control the start and stop process of stepping motor. The experimental results show that the control method solves easy to pull-out and overshot problems. The overall system realizes flexible control, and the performance of motor start or stop continuity is increased 30%
上传时间: 2013-12-08
上传用户:jiangfire
单片机作为一种微型计算机,其内部具有一定的存储单元(8031除外),但由于其内部存储单元及端口有限,很多情况下难以满足实际需求。为此介绍一种新的扩展方法,将数据线与地址线合并使用,通过软件控制的方法实现数据线与地址线功能的分时转换,数据线不仅用于传送数据信号,还可作为地址线、控制线,用于传送地址信号和控制信号,从而实现单片机与存储器件的有效连接。以单片机片外256KB数据存储空间的扩展为例,通过该扩展方法,仅用10个I/O端口便可实现,与传统的扩展方法相比,可节约8个I/O端口。 Abstract: As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data LinE and address LinEs combined through software-controlled approach to realize the time-conversion functions of data LinEs and address LinEs,so the data LinEs not only transmited data signals,but also served as address LinEs and control LinEs to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.
上传时间: 2014-12-26
上传用户:adada
详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于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
Mega16是一款采用先进RISC精简指令,内置A/D的8位单片机,可支持低电压联机 Flash和EEPROM 写入功能;同时还支持 Basic和C 等高级语言编程。用它设计电子时钟不仅成本低,硬件简单,而且很容易实现系统移植。介绍了如何利用AVR系列单片机Mega16及1602字符液晶来设计电子时钟的方法,同时给出了相应的电路原理及部分语言程序。 Abstract: ?Mega16 is a high-performance, low power consumption, the use of advanced RISC concise instructions, built-in A/D 8-bit microcontrollers, the on-LinE support for low-voltage Flash, EEPROM write function. Except Mega16 also support the Basic, C, and other high-level language programming.The electronic clock which is deisgned by Mega16 is not only low-cost, simple hardware, but easy to achieve system migration.The design method of electrioic clock based on the AVR Mega16 and character LCD1602 is introduced in this paper,and the corresponding circuit electrionic and some language program are given.
上传时间: 2014-12-27
上传用户:zl5712176