这一节,我们将向大家介绍如何使用STM32的通用定时器,STM32的定时器功能十分强大,有TIME1和TIME8等高级定时器,也有TIME2~TIME5等通用定时器,还有TIME6和TIME7等基本定时器。在《STM32参考手册》里面,定时器的介绍占了1/5的篇幅,足见其重要性。这一节,我们选择难度适中的通用定时器来介绍。本节分为如下几个部分: 3.7.1 STM32通用定时器简介 3.7.2 硬件设计 3.7.3 软件设计 3.7.4 下载与测试
上传时间: 2013-11-04
上传用户:hebanlian
在16MHZ频率下速度为16MIPS的8位RISC结构单片机,内含硬件乘法器。 支持JTAG端口仿真和编程,仿真效果比传统仿真同更真实有效。 8通道10位AD转换器,支持单端和双端差分信号输入,内带增益可编程运算放大器。 16K字节的FLASH存贮器,支持ISP、IAP编程,使系统开发、生产、维护更容易。 多达1K字节的SRAM,32个通用寄存器,三个数据指针,使用C语言编程更容易。 512字节的EEPROM存贮器,可以在系统掉电时保存您的重要数据。 多达20个中断源,每个中断有独立的中断向量入口地址。 2个8位定时/计数器,1个16位定时/计数器,带捕捉、比较功能,有四个通道的PWM。 硬件USART、SPI和基于字节处理的I2C接口。 杰出的电气性能,超强的抗干扰能力。每个IO口可负载40mA的电流,总电流不超过200mA。 可选片内/片外RC振荡、石英/陶瓷晶振、外部时钟,更具备实时时钟(RTC)功能;片内RC振荡可达8MHZ,频率可校调到1%精度;片外晶振振荡幅度可调,以改善EMI性能。 内置模拟量比较器。 可以用熔丝开启、带独立振荡器的看门狗,看门狗溢出时间分8级可调。 内置上电复位电路和可编程低电压检测(BOD)复位电路。 六种睡眠模式,给你更低的功耗和更灵活的选择。 ATMEGA16L工作电压2.7V-5.5V,工作频率0-8MHZ;ATMEGA16工作电压4.5-5.5V,工作频率0-16MHZ。 32个IO口,DIP40、TQFP44封装。 与其它8位单片机相比,有更高的程序安全性,保护您的知识产权。
上传时间: 2013-11-22
上传用户:wcl168881111111
针对目前使用的RS232接口数字化B超键盘存在PC主机启动时不能设置BIOS,提出一种PS2键盘的设计方法。基于W78E052D单片机,采用8通道串行A/D转换器设计了8个TGC电位器信息采集电路,电位器位置信息以键盘扫描码序列形式发送,正交编码器信号通过XC9536XL转换为单片机可接收的中断信号,软件接收到中断信息后等效处理成按键。结果表明,在满足开机可设置BIOS同时,又可实现超声特有功能,不需要专门设计驱动程序,接口简单,成本低。 Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
上传时间: 2013-10-10
上传用户:asdfasdfd
第一章:MCS-51系列单片机的存储结构(4学时) ① 掌握内部数据寄存器RAM的结构、用途和特点; ② 程序存储器ROM的结构特点,编程中应注意的问题; ③ 片内、外程序存储器的确定方法。 .. 第二章:MCS-51单片机指令系统及时序(4学时) ① 111条指令的功能分类; ② 指令的寻址方式; ③ 伪指令及汇编语言源程序的格式; ④ 与指令的相关时序。 第三章:MCS-51单片机内部模块的功能介绍(8学时) ① 内部并行I/O端口的结构特点、使用中的注意事项; ② 定时/计数器的2种工作方式、4种计数模式; ③ 串行接口的4种工作模式的设定及波特率的计算; ④ 中断系统的结构、中断响应的过程和编程方法。 .. 第四章:MCS-51单片机系统的扩展及应用(8学时); ① 系统扩展的几种方法; ② 外部程序、数据存储器的扩展; ③ A/D、D/A转换器与单片机的接口电路及编程方法; ④ 键盘扫描/动态显示接口电路; ⑤ 单片机的监控电路等。
上传时间: 2013-10-17
上传用户:熊少锋
LAXDK4.1P是多功能数字处理器,所有功能都通过双DSP处理实现。独立处理芯片实现全功能的参量均衡,精确分频,输出限幅。内置一个DSP效果器,包含两个独立的可编程引擎,分别处理回声、混响效果,实现无穷的效果组合。并且提供精确快速的反馈抑制功能。3路线路输入、背景音乐(BGM)功能,并带有同步视频切换。音乐通道配置7段全参量均衡适应千变万化的应用环境。话筒通道7段全参量均衡,配合优质话放电路带来清晰干净的演唱效果。超低音分频实现斜率、滤波器、上下限频点的全部可调,并配置3段参量均衡使调试更得心应手。独立中置输出通道,输出话筒直达声,并配置3段参量均衡大大提升演唱人声的表现能力。
上传时间: 2013-10-26
上传用户:herog3
//CM3 有 最多240个中断(通常外部中断写作IRQs),就是 软件上说的 IRQ CHANAELx(中断通道号x) 每个中断有自己的可编程的中断优先级【 有唯一对应的 中断优先级寄存器 】. 由于CM3支持 硬件中断嵌套,所以可以有 256 级的可编程优先级 和 256级中断嵌套【 书上称:抢占(preempt) 优先级】 所以大家可以设: IRQ CHANAEL 0 通道 = 2 中断优先级WWDG 窗口定时器中断 IRQ CHANAEL 1 通道 = 0 中断优先级PVD 联到EXTI的电源电压检测(PVD)中断 IRQ CHANAEL 3 通道 = 255 中断优先级RTC 实时时钟(RTC)全局中断 IRQ CHANAEL 6 通道 = 10 中断优先级EXTI0 EXTI线0中断 ..... IRQ CHANAEL 239 通道 = (0<x<255) 中断优先级..
上传时间: 2013-10-28
上传用户:redherr
该系统由单片机89S52控制模块,程控宽带放大模块,整形模块,FPGA内频率、相位差测量模块等构成,采用等精度测频法测出频率和周期,可测量有效值为0.01~5V,频率范围1Hz~20MHz信号的频率、周期信号,精度高达10-6。采用计数法测量相位差,该系统可测量有效值0.5~5V,频率10Hz~100kHz信号的相位差,精度为1°。系统功能由按键控制,测量结果实时显示,人机界面友好。 Abstract: The system consists of the following functional blocks:89S52microcontroller controlling module,programmable amplifier module,comparator module,frequency and phase difference testing module in the FPGA.The system use the equal accuracy frequency-examining technique it measures frequency and circle of signal which its ranges is from1Hz to20MHz and the amplitude of which its range is from0.01Vrms to5Vrms,precision is up to10-6.Using of count method,the system detects the phase difference of signal,the amplitude of whic its range is from0.5Vrms to5Vrms and the frequency of which its ranges is from10Hz to100kHz,precision is up to1°,The system functions is controlled by certain keys,measurement results are displayed in real-time and it is friendly interface.
上传时间: 2013-11-04
上传用户:CHINA526
以89S52单片机和EP1C6Q240C8型FPGA为控制核心的多功能计数器,是由峰值检波、A/D转换、程控放大、比较整形、移相网络部分组成,可实现测量正弦信号的频率、周期和相位差的功能。多功能计数器采用等精度的测量方法,可实现频率为1Hz~10MHz、幅度为0.01~5Vrms的正弦信号的精确测频,以及频率为10Hz~100kHz、幅度为0.5~5Vrms的正弦信号精确测相。液晶显示器能够实时显示当前信号的频率、周期和相位差。该多功能计数器精度高,界面友好,实用性强。 Abstract: A multi-function counter,which uses89S52MCU and EP1C6Q240C8FPGA as a control core,consists of peak detector,A/D conversion,program-controlled amplification,compared shaping and phase-shifting network part.The counter measures the frequency,period and phase of sinusoidal signal.With the equal precision method,the multi-function counter achieves the precise frequency measurement of the sinusoidal signal which its frequency is from1Hz to10MHz,its amplitude is from0.01Vrms to5Vrms,as well as the accurate phase measurement of the sinusoidal signal which its frequency is from10Hz to100kHz,its amplitude is from0.5Vrms to5Vrms.The LCD monitor real-time displays the frequency,period and phase difference of current signal.The multi-function counter features high precision,friendly interface,and strong practical.
上传时间: 2013-11-15
上传用户:gy592333
介绍一种多功能音乐播放器,它是以AT89S52单片机为核心,并辅有一些外围器件,采用汇编语言编写程序,实现多功能音乐播放,歌曲自动循环播放和使用琴键自编曲目功能。此外,彩灯显示歌曲节奏,按键跳转到喜爱曲目,液晶显示当前播英文曲目。并给出了系统软硬件设计。 Abstract: It introduces a multifunctional music player,taking AT89S52 single-chip microcomputer as hardware control core and using some peripheral elements.Programmes are compiled in assembly language to act as expected.There are two functional modes in this system.One is to make the music play automatically and consecutively,the other is to compose new songs through keys.In addition,lights show the pace of music and the English names can be displayed in the liquid crystal screen.With perfect combination of hardware and software,the music player can meet many music lovers’needs for multifunctional music player.And the hardware and software of the system are given.
上传时间: 2013-11-18
上传用户:xiaodu1124
在嵌入式系统中,嵌入式CPU往往要通过各种串行数据总线与“外界”进行通信。在应用中,异步的串行数据通信用得较多,而通用异步收发器UART(Universal Asynchronous Receiver Transmitter)在其中扮演着重要角色:完成数据的串并转换,即把并行数据按照通信波特率转化为通信协议中规定的串行数据流,也可从串行数据流中取出有用数据转变为并行数据。而UART与CPU接口简单,CPU只需通过执行读写操作即可完成收发数据,从而完成与外界的通信。有许多现成的芯片可以实现UART的功能,如常用的Intel8250/8251接口芯片就可以作为RS232、RS422串口的UART控制芯片。
上传时间: 2013-11-25
上传用户:www240697738