清单1 LSDAA: ADC R16,R16 ;十进制数(在R16中)左移调整子程序 ADDAA: IN R6,SREG ;bcd码相加调整子程序,先保存相加后的 LDI R17,$66 ;状态the old status ADD R16,R17 ;再将和预加立即数$66 IN R17,SREG ;输入相加后新状态(the new status) OR R6,R17 ;新旧状态相或 SBRS R6,0 ;相或后进位置位则跳行 SUBI R16,$60 ;否则减去$60(十位bcd不满足调整条件) SBRS R6,5 ;半进位置位则跳行 SUBI R16,6 ;否则减去$06(个位bcd不满足调整条件) ROR R6 ;向高位BCD返还进位位! RET
上传时间: 2013-10-08
上传用户:zh_901
MFC 六大技术之简化仿真(Console 程序) 第㆓篇【欲善工事先利其器】提供给对 Visual C++ 整合环境全然陌生的朋友㆒个导引。 这㆒篇当然不能取代 Visual C++ User's Guide 的㆞位,但对整个软件开发环境有全盘以 及概观性的介绍,可以让初学者迅速了解手㆖掌握的工具,以及它们的主要功能。 第㆔篇【浅出 MFC 程序设计】介绍㆒个 MFC 程序的生死因果。已经有 MFC 程序经 验的朋友,不见得不会对本篇感到惊艳。根据我的了解,太多㆟使用 MFC 是「只知道 这么做,不知道为什么」;本篇详细解释 MFC 程序之来龙去脉,为初入 MFC 领域的 读者奠定扎实的基础。说不定本篇会让你有醍醐灌顶之感。
上传时间: 2013-12-16
上传用户:qq527891923
一,实验目的 1, 熟悉单片机定时/计数功能,掌握初始化编成方法; 2, 掌握顺序控制程序的简单编程;掌握显示数据的编程方法
标签: 脉冲计数
上传时间: 2013-10-15
上传用户:familiarsmile
详细介绍了AD2S1200YSTZ资料
上传时间: 2014-12-27
上传用户:hwl453472107
将AVR上的队列串口驱动程序修改后,运行在STM32开发板,采用中断方式接收和中断发送,并加入了缓冲收发队列操作。由于该驱动是用来操作西门子的TC35或MC55等通信模块,所以加入了“等待串口接收完成”函数,该函数需要一个10ms的定时进行计数累加。
上传时间: 2013-11-11
上传用户:kaixinxin196
NXP Semiconductor designed the LPC2400 microcontrollers around a 16-bit/32-bitARM7TDMI-S CPU core with real-time debug interfaces that include both JTAG andembedded Trace. The LPC2400 microcontrollers have 512 kB of on-chip high-speedFlash memory. This Flash memory includes a special 128-bit wide memory interface andaccelerator architecture that enables the CPU to execute sequential instructions fromFlash memory at the maximum 72 MHz system clock rate. This feature is available onlyon the LPC2000 ARM Microcontroller family of products. The LPC2400 can execute both32-bit ARM and 16-bit Thumb instructions. Support for the two Instruction Sets meansEngineers can choose to optimize their application for either performance or code size atthe sub-routine level. When the core executes instructions in Thumb state it can reducecode size by more than 30 % with only a small loss in performance while executinginstructions in ARM state maximizes core performance.
上传时间: 2013-11-15
上传用户:zouxinwang
本文只介绍AVR ISP下载线在AVR Studio环境下的下载方法,推荐使用。 并口下载线主要优点是电路简单,缺点主要有下载速度慢、不能在AVR Studio环境下使用。具体差别在用了AVR ISP之后就知道了,现在一个标准的下载线也只要几十块钱和并口下载线没什么差别了。此处所说的STK500下载线和AVR ISP下载线同属一类,它们使用相同的通信协议,STK500确切的说是一个学习板,AVR ISP才是真正意义上的下载线。
上传时间: 2013-11-07
上传用户:tuilp1a
Virtex-5, Spartan-DSP FPGAs Application Note This application note demonstrates how efficient implementations of Digital Up Converters(DUC) and Digital Down Converters (DDC) can be done by leveraging the Xilinx DSP IPportfolio for increased productivity and reduced time to development. Step-by-step instruction is given on how to perform system-level trade off analysis and develop the most efficient FPGA implementation, thus allowing engineers a flexible, low-cost and low-power alternative to ASSP technologies.
标签: Spartan-DSP Virtex FPGAs Ap
上传时间: 2013-10-23
上传用户:raron1989
CLK:时钟信号 CMD:双向命令和响应信号 DAT0-3:双向数据信号 VDD,VSS:电源和地信号 SD模式下允许有一个主机, 多个从机(即多个卡), 主机可以给从机分别地址. 主机发 命令有些命令是发送给指定的从机,有些命令可以以广播形式发送. SD模式下可以选择总线宽度, 即选用几根DAT信号线, 可以在主机初始化后设置
标签: 协议
上传时间: 2013-10-11
上传用户:daxigua
标号: FTOD 功能:格式化浮点数转换成双字节定点数入口条件:格式化浮点操作数在[R0]中。出口信息:OV=1时溢出,OV=0时转换成功:定点数的绝对值在[R0]中(双字节),数符在位1FH中,F0=1 时为整数,CY=1时为一字节整数一字节小数,否则为纯小数。影响资源:PSW、A、B、R2、R3、R4、位1FH 堆栈需求: 6字节FTOD: LCALL MVR0 ;将[R0]传送到第一工作区MOV A,R2JZ FTD4 ;阶码为零,纯小数JB ACC.7,FTD4;阶码为负,纯小数
上传时间: 2013-10-15
上传用户:洛木卓