受控正弦信号发生器
标签: 正弦信号发生器
上传时间: 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
在航电系统维护过程中,为解决定位故障的效率和降低维修成本等问题,提出了基于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
解答部分 PIC单片机指令的执行过程遵循着一种全新哈佛总线体系结构的原则,充分利用了计算机系统在程序存储器和数据存储器之间地址空间的相互独立性,取指过程和执行指令过程可以流水线操作同时进行。因此,当PIC时钟频率为4MHZ时,执行一条非转移类指令需要4个系统时钟周期,即1us,但其指令执行的真实时间应为2us(在执行n—1条指令时取第n条指令,然后执行第n条指令)。所以选项B正确.
上传时间: 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
为深入了解基于UC3854A控制的PFC变换器中的动力学特性,研究系统参数变化对变换器中分岔现象的影响,在建立Boost PFC变换器双闭环数学模型的基础上,用Matlab软件对变换器中慢时标分岔及混沌等不稳定现象进行了仿真。在对PFC变换器中慢时标分岔现象仿真的基础上,分析了系统参数变化对分岔点的影响,并进行了仿真验证。仿真结果清晰地显示了输入整流电压的幅值变化对系统分岔点的影响。 Abstract: In order to better understand the dynamics characteristic of power factor correction converter based on UC3854A, and make the way that parameters change influences the bifurcation phenomena of the system clearly. The math model of the two closed loop circuits to the Boost PFC (Power Factor Correction) converter controller was built. Then, with the help of Matlab, the simulation for nonlinear phenomena such as chaos and slow-scale bifurcation in the PFC converter was made. Finally the factors that have influence to the phenomenon of bifurcation under slow-scale in PFC converter were analyzed. The simulation results clearly show the parameters change influences the bifurcation point of the system.
上传时间: 2013-10-17
上传用户:杜莹12345
介绍一种基于单片机的多路温度采集及监控系统,能够测量6路温度信号,具有计算机联网功能,各测量点可以单独监控和设置,可根据用户的需求自动控制。测量温度范围为-10 ℃~200 ℃,控制方式采用模拟量调压模式。该系统具有控制精度高、冲击小等特点。 Abstract: A temperature collecting and surveillance-controlling system based on sing-chip microcomputer is introduced. It can measure 6 channel signal of the temperature,and it has a function of network connection.The temperature measure points can be monitored and located, it can be controlled automatic according to user’s demand.The temperature range is -10℃ to 200℃.The model of control is adjustable voltage with simulation. It features high precision and little impact.
上传时间: 2013-10-23
上传用户:bjgaofei
摘要:设计以ATmega16单片机为核心的自动对靶控制系统。该系统利用PC机作为上位机,控制摄像头定时摄取图像,利用2g-r-b颜色特征分割该彩色图像,当绿色颜色分量大于预设阀值时,便判定摄像头下有靶标,用PC机的串口通信系统发送指令到单片机,延迟预设的时间后,控制执行机构进行喷雾,实现自动对靶喷雾,并且可以设定延迟时间,从而实现在不同行走速度下的自动对靶喷雾。关键词:自动对靶;AVR;串口通信;颜色分割
上传时间: 2014-12-27
上传用户:redmoons
概述MCS-51单片机引入国内高等教学已达10年之久,随着半导体技术的迅猛发展,经典的MCS-51单片机已不能适应当前的教学需要。全球领先的C8051F单片机覆盖了嵌入式系统的主要技术内容,且与51单片机相兼容,是MCS-51单片机的升级换代产品。且目前发展势头强劲,其必将成为单片机教学的新方向。SILABS公司MCU产品中国区代理--新华龙电子有限公司适时的设计、开发了贴近当前高校教学的C8051F单片机教学实验机(NCD-CIP51F020-B)。
上传时间: 2013-11-07
上传用户:lvzhr