摘 要:针对单片机进行高频测量存在的响应速度问题,利用CPLD适合精确、高速计数的特点,提出了一种基于单片机和CPLD的频率测量电路,通过CPLD对被测信号分频再与单片机计数值进行比较,实现了高精度、等精度测量,同时又解决了高频测量中存在的问题,满足了系统对响应时间的要求。该项研究成果已经在所设计信号源产品中得到了应用。关键词:频率测量;信号源;高频测量;CPLD
上传时间: 2013-10-15
上传用户:283155731
第1章 PIC16F877 的外围功能模块 第2章模拟量输入与输出 第3章秒 表 第 4 章通用同步/异步通信的应用 第5章PIC16F87X 在CAN 通信中的应用 第 6 章利用 CCP 模块设计频率计 第 7 章交流电压测量 第 8 章与 PLC 接口的4 位LED 数字显示表 第 9章单片机控制的电动自行车驱动系统 第 10章液晶显示模块编程
上传时间: 2013-12-26
上传用户:ajaxmoon
C8051F330低成本智能单相交流电压表方案(取代传统动圈表) 该方案采用的http://www.elecfans.com/soft/33/2010/单片机集成度高,资源丰富。与其它类型的http://www.elecfans.com/soft/33/2010/单片机相比,所需要外加的外围器件最少,是做智能单相电流电压表最理想的一款http://www.elecfans.com/soft/33/2010/单片机。
上传时间: 2013-10-27
上传用户:z754970244
常用三星单片机烧写电压设置参考表 烧写电压说明:Vdd 电压指烧写时加载到芯片Vdd 端子的逻辑电压,Vpp 电压指烧写时加载到芯片Vpp(Test)端子的编程电压, Vpp=12V 是编程器的默认烧写电压,无须特别设置. 由于编程器的默认输出Vpp 电压均为12V,因此在烧写Vpp=3.3V/5.0V 的芯片时,需要对烧写转换适配器作以下改动:将烧写器烧写座引出的Vpp 端子完全空置不用, 并在适配器上将Vdd端子直接连接Vpp 端即可.当用户采用在PCB板上烧写方式时,建议最好能在PCB芯片端的Vpp脚并接一个104 的电容入地,可有效保护在烧写电压加载时板子电路共同作用产生的瞬间过压脉冲不会输入到Vpp 脚而造成Vpp 击穿.S3F84K4 烧写特别说明,由于三星半导体DATA SHEET 要求在对该芯片进行烧写时,须在Vpp 脚加接一个101 的电容到地,因此在使用我站各款烧写器烧写84K4 时,须将烧写器主板上的Vpp 端原来并接的10uf/50V-电解电容和104 电容去掉,另行并接一个101 电容入地即可.不过,据本人特别测试结果,其实不做以上处理对烧写过程没有任何影响, 估计可能是三星半导体对芯片有做过改版,老版本的84K4 才会有以上特别要求,新版本是没有这个要求的.
上传时间: 2013-10-10
上传用户:wcl168881111111
I/O 型单片机使用手册 目录 间接寻址寄存器 – IAR, IAR0, IAR1 .............................................35间接寻址指针 – MP, MP0, MP1 ......................................................35存储区指针 – BP .........................................................................36累加器 – ACC...................................................................................37程序计数器低字节寄存器 – PCL....................................................37表格寄存器 – TBLP,TBHP,TBLH....................................................37看门狗定时寄存器 – WDTS............................................................38状态寄存器 – STATUS.....................................................................38中断控制寄存器 – INTC,INTC0,INTC1 .........................................39定时/计数寄存器...............................................................................39输入/输出端口和控制寄存器...........................................................40UART 寄存器 .USR,UCR1,UCR2,TXR/RXR,BRG.......................40输入/输出端口..........................................................................................41上拉电阻............................................................................................41PA 口的唤醒......................................................................................41输入/输出端口控制寄存器...............................................................41引脚共享功能....................................................................................42编程注意事项....................................................................................45定时/计数器..............................................................................................46配置定时/计数器输入时钟源...........................................................47定时/计数寄存器 – TMR, TMR0,TMR0L/TMR0H,TMR1L/TMR1H,TMR2.....................................................................49定时/计数控制寄存器 – TMRC,TMR0C,TMR1C,TMR2C............50定时器模式........................................................................................53事件计数器模式................................................................................53脉冲宽度测量模式............................................................................54可编程分频器(PFD)和蜂鸣器的应用..............................................55预分频器(Prescaler)...........................................................................56输入/输出接口...................................................................................56编程注意事项....................................................................................57定时/计数器应用范例.......................................................................57中断............................................................................................................59中断寄存器........................................................................................59中断优先权........................................................................................62外部中断............................................................................................63定时/计数器中断...............................................................................64UART 中断........................................................................................64编程注意事项....................................................................................65复位和初始化............................................................................................66复位....................................................................................................66目录iii异步串行口——UART............................................................................74UART 特性..........................................................................................74UART 外部引脚..................................................................................74数据发送.............................................................................................75UART 状态控制寄存器......................................................................75波特率发生器.....................................................................................79UART 设置与控制..............................................................................81UART 发送器......................................................................................83UART 接收器......................................................................................84接收错误处理.....................................................................................85接收中断图解.....................................................................................86地址检测模式.....................................................................................86暂停模式下的UART 功能.................................................................87UART 应用范例.................................................................................87振荡器........................................................................................................89系统时钟配置....................................................................................89系统晶体/陶瓷振荡器.......................................................................89系统电阻电容振荡器........................................................................90内部系统电阻电容振荡器................................................................90RTC 振荡器........................................................................................91看门狗定时振荡器............................................................................91暂停和唤醒................................................................................................92暂停.....................................................................................................92进入暂停.............................................................................................92静态电流.............................................................................................92唤醒....................................................................................................92看门狗定时器............................................................................................94掩膜选项....................................................................................................96应用电路....................................................................................................97第二部份 程序语言.....................................................................99第二章 指令集介绍.................................................................................101指令集......................................................................................................101指令周期..........................................................................................101数据的传送......................................................................................101算术运算..........................................................................................102逻辑和移位运算..............................................................................102分支和控制的转换..........................................................................102位运算..............................................................................................102查表运算..........................................................................................103其它运算..........................................................................................103指令设定一览表......................................................................................104惯例..................................................................................................104I/O 型单片机使用手册iv第三章 指令定义.....................................................................................107第四章 汇编语言和编译器.....................................................................121常用符号..................................................................................................121语句语法..................................................................................................122名称..................................................................................................122操作项..............................................................................................122操作数项..........................................................................................122注解..................................................................................................122编译伪指令..............................................................................................123条件编译伪指令..............................................................................123文件控制伪指令..............................................................................124程序伪指令......................................................................................126数据定义伪指令..............................................................................130宏指令..............................................................................................132汇编语言指令..........................................................................................136名称..................................................................................................136助记符..............................................................................................136操作数、运算子和表达式..............................................................136其它..........................................................................................................139前置引用..........................................................................................139局部标号..........................................................................................139汇编语言保留字..............................................................................140编译器选项..............................................................................................141编译列表文件格式..................................................................................141源程序列表......................................................................................141编译总结..........................................................................................142其它..................................................................................................142第三部份 开发工具................................................................... 145第五章 单片机开发工具.........................................................................147HT-IDE 集成开发环境............................................................................147盛群单片机仿真器(HT-ICE) ..................................................................149HT-ICE 接口卡.................................................................................149OTP 烧写器.....................................................................................149OTP 适配卡.....................................................................................149系统配置..................................................................................................150HT-ICE 接口卡设置........................................................................151安装..........................................................................................................153系统要求..........................................................................................153硬件安装..........................................................................................153软件安装..........................................................................................154目录v第六章 快速开始.....................................................................................159步骤一:建立一个新项目..............................................................159步骤二:将源程序文件加到项目中..............................................159步骤三:编译项目..........................................................................159步骤四:烧写OTP 单片机.............................................................160步骤五:传送程序与掩膜选项单至Holtek ..................................160附录............................................................................................... 161附录A 特性曲线图...................................................................................163附录B 封装信息.......................................................................................173
上传时间: 2013-10-18
上传用户:blacklee
异常向量表重映射 向量表是异常产生时内核获取异常处理函数入口地址的一块连续内存,每一个异常都在向量表固定的偏移地址,且偏移地址都是以字对齐的,通过该偏移地址内核就可以获取异常处理函数的入口指针,从而跳转到异常处理函数入口,执行异常处理函数。
上传时间: 2013-11-25
上传用户:rnsfing
介绍了Maxim公司推出的MAX6675器件的特点、工作原理,该器件是具有冷端补偿的单片K型热电偶放大器与数字转换器。详细描述了其与单片机AT89C52构成的数字化温度测量仪的硬件连接电路及软件实现方法。
上传时间: 2013-10-27
上传用户:zhaiyanzhong
介绍了以 MSP430F169 单片机为核心的的二氧化碳测量系统。实现二氧化碳浓度的显示,带有三线制4~20 的电流输出,能用标准的MODBUS 协议与上位机通讯,同时还有良好的人机交互界面。
上传时间: 2013-11-21
上传用户:siguazgb
本文介绍了一种基于单片机的健身车转速测量系统。该系统具有电路简单、使用方便等特点。文中详细介绍了该系统的工作原理,并且给出了它的硬件原理图和软件设计程序框图。关键词:转速 单片机 测量ABSTRACT :This paper introduces a measuring system of the rotational velocity of exercise bike based on single - chip microcomputer . It has such advantages : simple circuit ,convenient use and so on. The work principle is presented in detail in this paper and the block diagram of hardware and program flow chart are giv2 en as well .KEYWORDS :Rotational velocity Single - chip microcomputer Measuring
上传时间: 2013-11-02
上传用户:源弋弋
无论是功能,还是性能,德州仪器(TI)的MSC1210单片机都达到了混合信号处理的颠峰,它集成了一个增强型8051内核,有8路24位低功耗(4roW)A. A/D转换器;21个中断源;16位PWM;全双工UART(并兼容有SPI功能);停止方式电流小于1 A;比标准8051内核执行速度快3倍且全兼容;片内集成32K字节FLASH,而且FLASH可定义为程序分区与数据存储分区,给设计带来非常大的灵活性;片内SRAM也多达1.2K字节;采用TQFP64小型封装。由于具有如此高的模拟和数字集成度,对各种要求小体积、高集成度和精确测量而言,MCS1210实为理想的整合选择。表1列出MSC1210的主要特性。
上传时间: 2013-10-11
上传用户:yangzhiwei