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
针对煤矿井下调度及紧急救援系统的需求,以DTMF编解码模块为核心,设计了具有自动拨号功能的新型电话系统。该系统利用MT8880对DTMF信号的编解码功能实现一键拨号和远程设置,通过检测振铃和忙音信号,完成自动摘机和挂机过程,配合AGC等外围电路达到话音清晰流畅的效果。 Abstract: To meet the demand for mine scheduling and emergency rescue system, with using DTMF signal codec as the core, a new telephone system was designed with automatic dialing function. In the system, the DTMF signal encoding and decoding function of MT8880 was used to achieve one-touch dialing and remote setting. The circuit detects the ringing and busy signal, and then completes automatic off-hook and hangup. With AGC(Automatic Gain Control) and other peripheral circuits, the voice was regulated to a clear and smooth effect.
上传时间: 2014-11-18
上传用户:ly1994
为了使音频信号分析仪小巧可靠,成本低廉,设计了以2片MSP430F1611单片机为核心的系统。该系统将音频信号送入八阶巴特沃兹低通滤波器,对信号进行限幅放大、衰减、电平位移、缓冲,并利用一单片机负责对前级处理后的模拟信号进行采样,将采集得到的音频信号进行4 096点基2的FFT计算,并对信号加窗函数提高分辨率,另一单片机负责对信号的分析及控制显示设备。此设计精确的测量了音频信号的功率谱、周期性、失真度指标,达到较高的频率分辨率,并能将测量结果通过红外遥控器显示在液晶屏上。 Abstract: o make the audio signal analyzer cheaper, smaller and more reliable, this system sends the audio signal to the eight-order butterworth filter, and then amplifies, attenuates, buffers it in a limiting range, transfers the voltage level of the signal before utilizing two MSP430F1611 MCU to realize the audio analysis. One is charged for sampling and dealing with the processed audio signal collected by the 4096 point radix-2 FFT calculation and imposes the window function to improve the frequency resolution. The other one controls the display and realizes the spectrum, periodicity, power distortion analysis in high resolution which is displayed in the LCD screen through the infrared remote control.
上传时间: 2013-12-11
上传用户:jasonheung
假定从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
解答部分 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
从系统硬件设计和软件构成上,介绍一种以AT89C52单片机为核心,通过无线遥控方法实现对预设电话自动拨号报警的智能呼救系统。系统提供了患者在紧急情况下无法使用电话报警时的一种报警手段。由用户预设的多组电话号码作为语音报警对象,预录可长达20 s的语音信号来说明患者所处地点及病情,并通知患者家人。 Abstract: This paper introduces a intelligent alarming system which is realized by wireless remote control system.This system chiefly consists of AT89C51 the system can processor.User can input several groups of telephone number regarded as alarming objects,The system can record some information 20 seconds to tell the site of the patient.And notice the rokonok of the patient.
上传时间: 2013-11-19
上传用户:wd450412225
为解决输油管道温度压力参数实时监测的问题,设计了以C8051F930单片机作为控制核心的超低功耗输油管道温度压力远程监测系统。现场仪表使用高精度电桥采集数据,通过433 MHz短距离无线通信网络与远程终端RTU进行通信,RTU通过GPRS网络与PC上位机进行远程数据传输,在上位机中实现数据存储和图形化界面显示,从而实现输油管道温度压力参数的实时监测和异常报警。经实验证明,该系统的12位数据采集精度满足设计要求,漏码率小于1%,正常工作时间超过5个月,能实时有效地监测输油管道的温度压力参数,节省大量人工成本,有效预防管道参数异常造成的经济损失和环境污染。 Abstract: In order to solve the problems on real-time monitoring of pipeline temperature and pressure parameters, the ultra-low power remote pipeline temperature and pressure monitoring system was designed by using the single chip processor C8051F930 as the control core. The high-precision electric bridge was used in field instruments for data collection, the 433MHz short-range wireless communication network was used to make communication between field instrument and RTU, the GPRS was used by the RTU to transmit data to the PC host computer, and the data was stored and displayed in the PC host computer, so the real-time monitoring and exception alerts of pipeline temperature and pressure parameters were achieved. The experiment proves that the system of which error rate is less than 1% over five months working with the 12-bit data acquisition accuracy can effectively monitor the pipeline temperature and pressure parameters in real time, it saves a lot of labor costs and effectively prevents environmental pollution and economic losses caused by abnormal channel parameters.
上传时间: 2013-11-07
上传用户:cuibaigao
摘要:设计以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