#ifndef __485_C__ #define __485_C__ #include #include #define unsigned char uchar #define unsigned int uint /* 通信命令 */ #define __ACTIVE_ 0x01 // 主机询问从机是否存在 #define __GETDATA_ 0x02 // 主机发送读设备请求 #define __OK_ 0x03 // 从机应答 #define __STATUS_ 0x04 // 从机发送设备状态信息 #define __MAXSIZE 0x08 // 缓冲区长度 #define __ERRLEN 12 // 任何通信帧长度超过12则表示出错 uchar dbuf[__MAXSIZE]; // 该缓冲区用于保存设备状态信息 uchar dev; // 该字节用于保存本机设备号 sbit M_DE = P1^0; // 驱动器使能,1有效 sbit M_RE = P1^1; // 接收器使能,0有效
上传时间: 2014-12-26
上传用户:604759954
设计一种基于P89V51RD2的功率因数测量仪,采用光电隔离器和专用数码管驱动器。该测量仪是以增强型单片机P89V51RD2为核心,大大简化系统硬件设计。而软件部分采用模块化设计思想,采用中值滤波和小数补偿算法,实现功率因数的高精度测量。实验测试表明,该功率因数测量仪测量精度高,运行稳定可靠。 Abstract: A power-factor measurement instrument based on P89V51RD2is designed,which uses optical coupler and specific LED drive chip.The power factor measurement instrument uses P89V51RD2as a core of which greatly simplifies the system design.Furthermore,modularization software is developed in detail.The high precision power-factor measuring system is realized by the center value filter and fractional compensation algorithm.Experiments manifests that the power- factor measurement instrument is high precision,steady and reliable.
上传时间: 2014-12-27
上传用户:CHINA526
The PCF8578 is a low power CMOS1 LCD row and column driver, designed to drive dotmatrix graphic displays at multiplex rates of 1:8, 1:16, 1:24 or 1:32. The device has40 outputs, of which 24 are programmable and configurable for the following ratios ofrows/columns: 32¤8, 24¤16, 16¤24 or 8¤32. The PCF8578 can function as a stand-alone LCDcontroller and driver for use in small systems. For larger systems it can be used inconjunction with up to 32 PCF8579s for which it has been optimized. Together these twodevices form a general purpose LCD dot matrix driver chip set, capable of driving displaysof up to 40960 dots. The PCF8578 is compatible with most microcontrollers andcommunicates via a two-line bidirectional bus (I2C-bus). Communication overhead isminimized by a display RAM with auto-incremented addressing and display bankswitching.
上传时间: 2013-10-23
上传用户:顶得柱
PCF8562是一种能与几乎所有低复用速率的LCD接口的外围设备。它为所有静态和复合的LCD(包含最多4个背极和32段)产生驱动信号。PCF8562与大多数微处理器/微控制器兼容并可以通过两线双向的I2C总线通信。通过带自动增量寻址的显示RAM、硬件子地址寻址和显示存储器切换(静态和复合驱动模式)可以将通信的开销降至最低。
上传时间: 2014-12-27
上传用户:ajaxmoon
1 FEATURES· Single chip LCD controller/driver· 1 or 2-line display of up to 24 characters per line, or2 or 4 lines of up to 12 characters per line· 5 ′ 7 character format plus cursor; 5 ′ 8 for kana(Japanese syllabary) and user defined symbols· On-chip:– generation of LCD supply voltage (external supplyalso possible)– generation of intermediate LCD bias voltages– oscillator requires no external components (externalclock also possible)· Display data RAM: 80 characters· Character generator ROM: 240 characters· Character generator RAM: 16 characters· 4 or 8-bit parallel bus or 2-wire I2C-bus interface· CMOS/TTL compatible· 32 row, 60 column outputs· MUX rates 1 : 32 and 1 : 16· Uses common 11 code instruction set· Logic supply voltage range, VDD - VSS: 2.5 to 6 V· Display supply voltage range, VDD - VLCD: 3.5 to 9 V· Low power consumption· I2C-bus address: 011101 SA0.
上传时间: 2013-11-08
上传用户:laozhanshi111
力源可提供ON、TI、ST、Freescale和Chipswinner公司的优质功率器件,包括MOSFET驱动器、外设起动器/驱动器、功率逻辑、电机控制器、功率因子控制器、达林顿晶体管整列、钳位电路和虚地发生器等。
标签: 功率器件
上传时间: 2014-12-27
上传用户:zfyiaaa
在单片机应用系统中,有时需要采集大量的开关信号,由于信号多且接入方式不同,使得电路较复杂,占用了单片机大量资源,数据采集软件的开发量也较大。笔者用纯数字电路设计了一个特别适合于远程大数据量采集的电路(最大可采集1024个开关量,附图所示电路可采集192个开关量)。 电路由双二进制加法计数器CD4520、译码器74LS138、缓冲驱动器74LS244等组成。NE555产生的脉冲加到计数器D1的CP1端,由于D1的Q4同时也接D1的EN2,所以D1的双计数器构成级联计数电路,其输出Q2~Q7作为开关输入量的地址送D5的输入端。Q1作为片选信号接D5,Q5~Q7接D2输入端,为D3、D4等译码器提供片选信号,而Q2~Q4接D3、D4等译码器的输入端,译码器的输出作为D7、D8等的片选信号。D7、D8等的输入接采样的开关信号(图中开关接通表示输入为低位),其输出接D6输入端。当D6片选有效时(Q1为低电位),输出的数据地址线上为开关量信号。当D5片选有效时(Q1为高电位)输出的数据地址线上为开关量信号的地址。8条数据地址线可直接接单片机P1口或通过74LS245接单片机总线,1条数据地址选择线也可直接接单片机P2或P3口。
上传时间: 2013-10-14
上传用户:tonyshao
MSP430FE42X为MSP430系列的一新的品种,它是美国德州仪器针对单相电能表设计研制的。该芯片不担继承MSP430系列产品的具有超低功耗,集成高度而且还具有128段LCD驱动器,并带有3个捕获/比较寄存的16位定时器。
上传时间: 2013-11-14
上传用户:diets
步进电机是机电控制中一种常用的执行机构,它的用途是将电脉冲转化为角位移,通俗地说:当步进驱动器接收到一个脉冲信号,它就驱动步进电机按设定的方向转动一个固定的角度(及步进角)。通过控制脉冲个数即可以控制角位移量,从而达到准确定位的目的;同时通过控制脉冲频率来控制电机转动的速度和加速度,从而达到调速的目的。
上传时间: 2013-11-20
上传用户:凤临西北
16*2点阵字符液晶模块是由点阵字符液晶显示器件和专用的行列驱动器、控制器及必要的连接件、结构件装配而成,可以显示数字和英文字符。这种点阵字符模块本身具有字符发生器,显示容量大.功能丰富。
上传时间: 2014-12-27
上传用户:longlong12345678