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

low-<b>Speed</b>

  • 受控正弦信号发生器(B题)

    受控正弦信号发生器

    标签: 正弦信号发生器

    上传时间: 2013-11-04

    上传用户:止絮那夏

  • 单片直接驱动数码管的计数器程序

      a_bit equ 20h ;个位数存放处   b_bit equ 21h ;十位数存放处   temp equ 22h ;计数器寄存器   star: mov temp,#0 ;初始化计数器   stlop: acall display   inc temp   mov a,temp   cjne a,#100,next ;=100重来   mov temp,#0   next: ljmp stlop   ;显示子程序   display: mov a,temp ;将temp中的十六进制数转换成10进制   mov b,#10 ;10进制/10=10进制   div ab   mov b_bit,a ;十位在a   mov a_bit,b ;个位在b   mov dptr,#numtab ;指定查表启始地址   mov r0,#4   dpl1: mov r1,#250 ;显示1000次   dplop: mov a,a_bit ;取个位数   MOVC A,@A+DPTR ;查个位数的7段代码   mov p0,a ;送出个位的7段代码

    标签: 直接驱动 数码管 计数器 程序

    上传时间: 2013-11-06

    上传用户:lx9076

  • 单片机几种软件滤波程序示例

    假定从8位AD中读取数据(如果是更高位的AD可定义数据类型为int),子程序为get_ad(); 1、限幅滤波法(又称程序判断滤波法)     A、方法:         根据经验判断,确定两次采样允许的最大偏差值(设为A)         每次检测到新值时判断:         如果本次值与上次值之差<=A,则本次值有效         如果本次值与上次值之差>A,则本次值无效,放弃本次值,用上次值代替本次值     B、优点:         能有效克服因偶然因素引起的脉冲干扰     C、缺点         无法抑制那种周期性的干扰         平滑度差 /*  A值可根据实际情况调整     value为有效值,new_value为当前采样值      滤波程序返回有效的实际值  */ #define A 10 char value; char filter() {    char  new_value;    new_value = get_ad();    if ( ( new_value - value > A ) || ( value - new_value > A )       return value;    return new_value;          } 2、中位值滤波法     A、方法:         连续采样N次(N取奇数)         把N次采样值按大小排列         取中间值为本次有效值     B、优点:         能有效克服因偶然因素引起的波动干扰         对温度、液位的变化缓慢的被测参数有良好的滤波效果     C、缺点:         对流量、速度等快速变化的参数不宜 /*  N值可根据实际情况调整     排序采用冒泡法*/

    标签: 单片机 软件滤波 程序

    上传时间: 2014-12-26

    上传用户:nanshan

  • 基于AVR的新型防汽车追尾安全装置设计

    针对目前汽车追尾事件频发问题,提出一种防汽车车前和车后追尾的安全装置设计。该设计以高性能、低功耗的8位AVR微处理器ATmega8L为核心,结合霍尔式车速传感器、激光雷达测距装置和MMA7260QT加速度传感器,能够兼顾车前和车后,摒弃以往设计中只考虑车前或车后单一性缺点,尤其适用于高速、夜晚或新手行车。 Abstract:  Aiming at the high frequency of vehicle rear-end collision,a safe device design of anti-vehicle rear-end collision is presented.In the design,the high-performance,low-power8-bit AVR microprocessor ATmega8L is utilized as a core combined with Hall-type speed sensor,laser-radar ranging devices and the acceleration sensor MMA7260QT.The design considers both the front and back of a car,and overcomes the drawbacks of former designs in which only the front or the back of the car is considered,so it is especially suitable for high-speed,night or the beginner’s driving.

    标签: AVR 汽车追尾 装置

    上传时间: 2013-10-14

    上传用户:GavinNeko

  • 基于C8051F320的心电监护系统设计

    介绍一种基于C8051单片机的动态心电监护系统。该系统由两部分组成:以C8051F320单片机为核心的数据采集装置和以PC机为平台的分析处理系统。硬件电路功耗低,由单片机自带的USB接口将数据传送给PC机。软件平台采用LabVIEW可视化虚拟仪器系统开发平台,将传统仪器的功能模块集成到计算机中,用户可通过修改虚拟仪器的程序改变其功能。采用USB接口实时传输心电数据,并将数据采集模块设计为计算机外设,使该系统高速快捷、小巧便携。 Abstract:  In this design,a low-cost ECG electrocardiogram monitoring system is introduced,which consists of two parts:data acquisition device based on C8051F320and PC terminal as the analysis and processing system.The system is low-power consumption,the data is transmitted to the PC terminal by USB interface of the C8051F320.By using the visible virtual instrument system developing platform LabVIEW,the traditional instruments function modules are integrated into the computer,so the user can modify virtual instrument software to change its function to meet their needs.Using USB in-terface to realize real-time ECG data transmission,in addition,ECG data acquisition module is designed as the computer peripheral,which makes the syetem high-speed and portable.

    标签: C8051F320 心电监护 系统设计

    上传时间: 2013-11-13

    上传用户:zhangzhenyu

  • 基于ATmega48的3相无刷电机的控制方法

    介绍了采用ATmega48单片机实现三相无刷直流电机控制器的方法。利用Atmega48获得带死区的脉宽调制(PWM)、霍尔传感器的换相处理、正弦驱动信号的产生和电机转速的控制等功能。采用该方法的优点是所需的外围器件少,成本低。 Abstract:  The method of 3-phase brushless DC motor control based on ATmega48 is presented in this paper.The system uses ATmega48 to generate PWM signals with dead-time, hall sensors signals commutation,sine driving signal and rotational speed of motor.Using this method,the needed external devices are few, the cost is low.

    标签: ATmega 48 无刷电机 控制方法

    上传时间: 2013-12-09

    上传用户:330402686

  • PIC单片机的组成习题解答

    解答部分 PIC单片机指令的执行过程遵循着一种全新哈佛总线体系结构的原则,充分利用了计算机系统在程序存储器和数据存储器之间地址空间的相互独立性,取指过程和执行指令过程可以流水线操作同时进行。因此,当PIC时钟频率为4MHZ时,执行一条非转移类指令需要4个系统时钟周期,即1us,但其指令执行的真实时间应为2us(在执行n—1条指令时取第n条指令,然后执行第n条指令)。所以选项B正确.

    标签: PIC 单片机

    上传时间: 2013-12-10

    上传用户:spman

  • 单片机名词解释

    总线:指能为多个部件服务的信息传送线,在微机系统中各个部件通过总线相互通信。地址总线:它是传送由CPU发出的用于选择要访问的器件或部件的地址。数据总线:它是用来传送微型机系统内的各种类型的数据。汇编:是能完成一定任务的机器指令的集合。二进制数:只有0和1两个数码,基数为二。16进制数:采用0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F等16个数码,其中A-F相应的十进数为10-15,基数是16。指令:是计算机所能执行的一种基本操作的描述,是计算机软件的基本单元。存储器:用来存放计算机中的所有信息:包括程序、原始数据、运算的中间结果及最终结果等。

    标签: 单片机

    上传时间: 2013-11-14

    上传用户:caoyuanyuan1818

  • 基于双ATmega128的安检力学试验机设计

    针对当前安检力学试验机所能完成的试验种类单一、自动化程度低等问题,提出一种以ATmega128单片机为核心控制器的安检力学试验机的设计。详细阐述了该安检力学试验机各个组成部分的设计原理和方案,并且给出了各部分的软件设计思想和操作流程。经过大量测试试验表明:设计的安检力学试验机可以完成多达十余种的力学安检试验,完全符合相关国家标准,并且具有数据采集精度高、传输速度快、操作安全简便等特点,实现了安检设备的多功能化、数字化和自动化。 Abstract:  Currently, many mechanical security testing machines have only one function. The degree of automation of them is low. To solve those problems, a new kind of mechanical security testing machine, using ATmega128 micro-controller as its core controller, has been advanced. It describes the components of the machine. The principles and the scheme in the designing processes are presented in detail, and the software architecture and the operation processes of each part are given. After having done many testing, we have reached the following conclusions: the mechanical security testing machine presented can do over ten mechanical security tests complying with related national standards. It has high data acquisition accuracy and high transmission speed. The operation of the machine is simple and safe. In general, this machine is a multi-functional, highly automatic, digitalized security testing device.

    标签: ATmega 128 安检 试验机

    上传时间: 2013-11-05

    上传用户:a67818601

  • 基于AVR单片机的自动对靶喷雾控制系统设计

    摘要:设计以ATmega16单片机为核心的自动对靶控制系统。该系统利用PC机作为上位机,控制摄像头定时摄取图像,利用2g-r-b颜色特征分割该彩色图像,当绿色颜色分量大于预设阀值时,便判定摄像头下有靶标,用PC机的串口通信系统发送指令到单片机,延迟预设的时间后,控制执行机构进行喷雾,实现自动对靶喷雾,并且可以设定延迟时间,从而实现在不同行走速度下的自动对靶喷雾。关键词:自动对靶;AVR;串口通信;颜色分割

    标签: AVR 单片机 自动 控制系统设计

    上传时间: 2014-12-27

    上传用户:redmoons