利用红外线实现单片机间的数据通信
上传时间: 2013-11-05
上传用户:Pzj
51单片机PID算法程序的位置式PID控制算法
上传时间: 2013-11-24
上传用户:jasson5678
指针式与数字式万用表的优缺点
上传时间: 2013-11-14
上传用户:packlj
基于51单片机和DS18B20的数字温度计设计
上传时间: 2014-12-26
上传用户:mahone
DSP的使用正呈爆炸式发展。OFDM、GPS相关器、FFT、FIR滤波器或H.264之类计算密集型算法在从移动电话到汽车的各种应用中都很常见。设计人员实现DSP有三种选择:他们可以使用DSP处理器、FPGA或掩膜ASIC。ASIC具有最高的吞吐量、最低的功耗和最低的成本,但其极大的NRE和较长研制周期使其对许多设计而言并不适用。定制ASIC的研制周期可达一年之久,比最终产品的使用寿命都长。FPGA已占居较大的市场份额,因为其能提供比DSP处理器更好的吞吐量,而且没有ASIC的极大NRE和较长研制周期。 因此,常常将基于ARM的MCU和FPGA结合使用来实现这些设计,其中FPGA实现设计的DSP部分。然而,FPGA也有其自身的不足--最突出的是功耗很高(静态功耗接近2W),且性能比ASIC慢。FPGA时钟用于逻辑执行时通常限制为50MHz,而ASIC可以400MHz或更高频率执行逻辑。其他缺点还包括在IP载入基于SRAM的FPGA时安全性还不够理想,成本也较高。尽管FPGA成本已迅速降低,但价格通常在10,000片左右就不再下降,因此仍比较昂贵。 新型可定制Atmel处理器(CAP)MCU具有的门密度、单元成本、性能和功耗接近基于单元的ASIC,而NRE较低且开发时间较快。与基于ARM的非可定制标准产品MCU一样,不需要单独的ARM许可。 可定制MCU利用新型金属可编程单元结构(MPCF)ASIC技术,其门密度介于170K门/mm2与210K门/mm2之间,与基于单元的ASIC相当。例如,实现D触发器(DFF)的MPCF单元与标准的单元DFF都使用130nm的工艺,所用面积差不多相同。
上传时间: 2013-10-29
上传用户:xymbian
当执行机构需要的不是控制量的绝对值,而是控制量的增量(例如去驱动 步进电动机)时,需要用PID的“增量算法”。 增量式PID控制算法可以通过(2-4)式推导出。由(2-4)可以得到控制器 的第k-1个采样时刻的输出值为:
上传时间: 2013-10-11
上传用户:waizhang
首先研究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.
上传时间: 2013-10-20
上传用户:huannan88
摘要:本文介绍应用PIC16C57单片机设计的一种可编程、高性能的数码式楼宇对讲系统,详细阐明了有关工作原理和关键技术。本系统充分应用PIC单片机的软硬件资源,具有可编程、电路简单、功能强大等优点,在安居工程、楼宇技防系统等领域具有广泛的应用前景。 关键词:PIC 单片机 楼宇对讲 编码 译码 可编程
上传时间: 2013-11-14
上传用户:hj_18
针对材料试验机等设备中要求测量或控制材料拉伸或压缩的位移,一般采用光电轴角编码器检测位置信号,输出正交编码脉冲信号。若采用其他方法检测位置信号,必然导致电路设计复杂,可靠性降低。因此,提出一种基于LS7266R1的电子式万能材料试验机设计方案。给出了试验机中的控制器工作原理,LS7266R1与单片机的接口硬件设计,以及主程序软件流程图。巧妙地把力量传感器,位移传感器等机械运动状态的压力或拉力以及位置坐标,变成了电压信号和电脉冲数字信号,供A/D测量和LS7266R1计数,从而实现了独立完成材料试验控制或通过PC机串口命令完成材料试验控制。 Abstract: Aiming at the requirement that the displacement of the tension and compression always be tested and controlled in the equipement such as material testing machine. The position signal was tested by photoelectric axial angle coder. Therefore, the paper proposes the design of electronic universal testing machine design based on LS7266R1. If the position signal detected by other methods, will inevitably lead to the circuit design complexity, reliability decreased. The work theory of the controller, the hardware interface design between LS7266R1 and single chip, and the flow chart of main program, are presented in this paper. The signal of the compression or tension power and displacement at working, which tested by power sensor and displacement sensor especially, is changed into electric voltage and electric pulse numerical signals. And these signals can be tested by A/D and counted by LS7266R1. Finally the test of the material properties can be controlled by itself, or controlled by the COM command of PC.
上传时间: 2013-11-02
上传用户:yl1140vista
为了在工业生产及过程控制中准确测量温度,设计了一种基于低功耗MSP430单片机的数字温度计。整个系统通过单片机MSP430F1121A控制DS18B20读取温度,采用数码管显示,温度传感器DS18B20与单片机之间通过串口进行数据传输。MSP430系列单片机具有超低功耗,且外围的整合性高,DS18B20只需一个端口即可实现数据通信,连接方便。通过多次实验证明,该系统的测试结果与实际环境温度一致,除了具有接口电路简单、测量精度高、误差小、可靠性高等特点外,其低成本、低功耗的特点使其拥有更广阔的应用前景。 Abstract: In order to obtain accurate measuring temperature in industrial production and process control, a digital thermometer based on MSP430 MCU is designed. The system uses MSP430F1121A MCU to control DS18B20, and gets the temperature data, which is displayed on the LED. The temperature sensor DS18B20 and MCU transmit data through serial communication. MSP430 series has ultra-low power and high integration, DS18B20 only needs one port to achieve data communication. Through many experimental results prove, this system is consistent with actual environment temperature. The system has characteristics of interface circuit simple, high measuring accuracy, minor error, high reliability, besides, the characteristics of low cost and low power make it having vaster application prospect.
上传时间: 2013-10-16
上传用户:wettetw