受控正弦信号发生器
标签: 正弦信号发生器
上传时间: 2013-11-04
上传用户:止絮那夏
The P89LPC912/913/914 are single-chip microcontrollers in low-cost 14-pin packages, based on a high performance processor architecture that executes instructions in two to four clocks, six times the rate of standard 80C51 devices. Many system level functions have been incorporated into the P89LPC912/913/914 in order to reduce component count, board space, and system cost.
上传时间: 2013-10-12
上传用户:司令部正军级
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
为了使音频信号分析仪小巧可靠,成本低廉,设计了以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
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
摘要:设计以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