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
针对材料试验机等设备中要求测量或控制材料拉伸或压缩的位移,一般采用光电轴角编码器检测位置信号,输出正交编码脉冲信号。若采用其他方法检测位置信号,必然导致电路设计复杂,可靠性降低。因此,提出一种基于LS7266R1的电子式万能材料试验机设计方案。给出了试验机中的控制器工作原理,LS7266R1与单片机的接口硬件设计,以及主程序软件流程图。巧妙地把力量传感器,位移传感器等机械运动状态的压力或拉力以及位置坐标,变成了电压信号和电脉冲数字信号,供A/D测量和LS7266R1计数,从而实现了独立完成材料试验控制或通过PC机串口命令完成材料试验控制。 Abstract: Aiming at the requirement that the displacement of the tension and compression always be tested and controlled in the equipement such as material testing machine. The position signal was tested by photoelectric axial angle coder. Therefore, the paper proposes the design of electronic universal testing machine design based on LS7266R1. If the position signal detected by other methods, will inevitably lead to the circuit design complexity, reliability decreased. The work theory of the controller, the hardware interface design between LS7266R1 and single chip, and the flow chart of main program, are presented in this paper. The signal of the compression or tension power and displacement at working, which tested by power sensor and displacement sensor especially, is changed into electric voltage and electric pulse numerical signals. And these signals can be tested by A/D and counted by LS7266R1. Finally the test of the material properties can be controlled by itself, or controlled by the COM command of PC.
上传时间: 2013-11-02
上传用户:yl1140vista
扩展1个I2C总线为多个;通过主机I2C命令进行总线选择;每次选择一个下级总线;广播模式下可同时打开所有通道;收集中断并发送给主机;复位芯片可取消所有通道选择,在总线挂起时恢复主机的控制。
上传时间: 2013-11-20
上传用户:songrui
PCF8579是一款低功耗的CMOS LCD列驱动器,以1:8,1:16,1:24或1:32的复用率驱动点阵图形显示器。该器件含40个输出脚,可驱动一个32行复用的32×40点阵LCD。最多可级联16个PCF8579,同一I2C总线上最多可挂载32个器件(使用2个从机地址)。PCF8579最适合与PCF8578 LCD行/列驱动器配合使用,这两个器件共同形成了通用LCD点阵驱动芯片组,可以驱动显示多达40960个点。PCF8579与大多数微控制器兼容并通过一个双线I2C总线进行通信。由于部分VDD可以关断,SCL和SDA引脚的ESD保护系统并未通过二极管连接到VDD。器件具有自增寻址的显示RAM和显示区域切换等功能,使应用系统的通信量减到最低。
上传时间: 2013-10-29
上传用户:dalidala
PCF8535是一款低功耗的CMOS点阵液晶驱动器,能以1:17,1:24,1:34、1:49和1:65的多路复用速率驱动点阵液晶显示器,驱动点阵能力可达65×133点。PCF8535将液晶驱动器所须的全部功能(包括产生LCD偏置电压的产生等)都集成在芯片里面,这样做可以大大地减少外部器件并降低功耗。
上传时间: 2013-11-25
上传用户:1047385479
特点: • 8/10 位精度 • 7 us, 10-位单次转换时间. • 采样缓冲放大器 • 可编程采样时间 • 左/右 对齐, 有符号/无符号结果数据 • 外部触发控制 • 转换完成中断 • 模拟输入8通道复用 • 模拟/数字输入引脚复用 • 1到8转换序列长度 • 连续转换模式 • 多通道扫描方式
上传时间: 2014-12-28
上传用户:88mao
1、 支持USB 1.1通讯协议;2、 支持高速(Full Speed、12Mbps )和低速(Low Speed、1.5Mbps )传输;3、 6MHz晶体,锁相环PLL振荡器提供高速、低速所需时钟源;4、 支持3个端口(endpoint),可独立编程为IN 或 OUT端口。5、 PS/2:支持PS/2协议(eg.鼠标),与USB复用。
上传时间: 2013-11-03
上传用户:hbsunhui
PCA9516 是一款基于BICMOS 工艺的I2C/SMBus 总线中继器。PCA9516 保持I2C 总线系统所有的模式与特性的同时,允许扩展I2C/时钟总线和连接5 条最大容限为400pF 电容的总线。当I2C 总线上有400pF 的电容时,总线长度和器件的数量都会被限制。系统设计者把总线分成五部分,各部分之间的传输只有一个复用器的延时。
上传时间: 2013-11-13
上传用户:75119158
The Philips family of Multiplexers and Switches consists of bi-directional translating switches controlled via the I2C or SMBus to fan out an upstream SCL/SDA pair to 2, 4 or 8 downstream channels of SCx/SDx pairs. The Multiplexers allow only one downstream channel to be selected at a time, while the Switches allow any individual downstream channel or combination of downstream channels to be selected, depending on the content of the programmable control register. Once one or several channels have been selected, the device acts as a wire, allowing the master on the upstream channel to send commands to devices on all the active downstream channels, and devices on the active downstream channels to communicate with each other and the master. External pull-up resistors are used to pull each individual channel up to the desired voltage level. Combined interrupt output and hardware reset input are device options that are featured.
上传时间: 2013-10-11
上传用户:dianxin61
数字I/O脚有专用和复用。数字I/O脚的功能通过9个16位控制寄存器来控制。控制寄存器分为两类:(1)I/O复用控制寄存器(MCRX),来选择I/O脚是外设功能还是I/O功能。(2)数据方向控制寄存器(PXDATDIR):控制双向I/O脚的数据和数据方向。注意:数字I/O脚是通过映射在数据空间的控制寄存器来控制的,与器件的I/O空间无任何关系。240X/240XA多达41只数字I/O脚,多数具有复用功能。
标签: 数字
上传时间: 2013-10-31
上传用户:qimingxing130