The PCA9546A is a quad bidirectional translating switch controlled via the I2C-bus. TheSCL/SDA upstream pair fans out to four downstream pairs, or channels. Any individualSCx/SDx channel or combination of channels can be selected, determined by thecontents of the programmable control register.
上传时间: 2013-11-16
上传用户:cc1915
The PCA9547 is an octal bidirectional translating multiplexer controlled by the I2C-bus.The SCL/SDA upstream pair fans out to eight downstream pairs, or channels. Only oneSCx/SDx channel can be selected at a time, determined by the contents of theprogrammable control register. The device powers up with Channel 0 connected, allowingimmediate communication between the master and downstream devices on that channel.
上传时间: 2014-12-28
上传用户:270189020
PCA9547 是一款通过I2C 总线控制的八进制双向转换开关。它的每对SCL/ SDA 上行通道可以扩展为八对下行通道。但在某一时刻,由可编程控制寄存器中的内容来决定只有一路SCx/SDx 被选择。由多路复用器的通门,VDD 管脚可以用来限制PCA9547 通过的最高电压,这使得每一对SCL/SDA 可以使用不同的总线电压,因此1.8V、2.5V 或3.3V 的器件都可以在无其它保护的情况下与5V 的器件进行通信。它的外部上拉电阻将总线拉高至每个通道所要求的电压电平,所有I/O 管脚都可以承受5V 的电压。设备上电时由通道0 连接,并且允许主机和下行设备进行直接的通信
上传时间: 2014-12-28
上传用户:sunshine1402
The PCA9548A is an octal bidirectional translating switch controlled via the I2C-bus. TheSCL/SDA upstream pair fans out to eight downstream pairs, or channels. Any individualSCx/SDx channel or combination of channels can be selected, determined by thecontents of the programmable control register.An active LOW reset input allows the PCA9548A to recover from a situation where one ofthe downstream I2C-buses is stuck in a LOW state. Pulling the RESET pin LOW resets theI2C-bus state machine and causes all the channels to be deselected as does the internalPower-on reset function.
上传时间: 2013-10-13
上传用户:bakdesec
PCA9548A 是一款通过I2C 总线控制的八进制双向转换开关。它的每对SCL/ SDA 上行通道可以扩展为八对下行通道,可以通过可编程控制寄存器的内容来选择任意单一的SCx/SDx 通道或者组合通道。由多路复用器的通门,VDD 管脚可以用来限制PCA9547 通过的最高电压,这使得每一对SCL/SDA 都可以使用不同的总线电压,因此1.8V、2.5V 或3.3V的器件可以在无其它保护的情况下与5V 的器件进行通信。它的外部上拉电阻将总线拉高至每个通道所要求的电压电平,所有I/O 管脚都可以承受5V 电压。
上传时间: 2013-10-13
上传用户:hanli8870
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
I2C BUS(Inter IC BUS)是NXP 推出的芯片间串行传输总线,它以2 根连线实现了完善的双向同步数据传送,可以极方便地构成多机系统和外围器件扩展系统。I2C 总线采用了器件地址的硬件设置方法,通过软件寻址完全避免了器件的片选线寻址方法,从而使硬件系统具有最简单而灵活的扩展方法。I2C 总线的2 根线(串行数据——SDA,串行时钟——SCL)连接到总线上的任何一个器件,每个器件都应有一个唯一的地址,而且都可以作为一个发送器或接收器。此外,器件在执行数据传输时也可以被看作是主机或从机。
上传时间: 2013-11-05
上传用户:qb1993225
24c16读写驱动程序,//=-------------------------------------------------------------------------------/*模块调用:读数据:read(unsigned int address)写数据:write(unsigned int address,unsigned char dd) dd为要写的 数据字节*///------------------------------------------------------------------------------ sbit sda=P3^0;sbit SCL=P3^1; sbit a0=ACC^0; //定义ACC的位,利用ACC操作速度最快sbit a1=ACC^1;sbit a2=ACC^2;sbit a3=ACC^3;sbit a4=ACC^4;sbit a5=ACC^5;sbit a6=ACC^6;sbit a7=ACC^7; //------------------------------------------------------------------------------#pragma disablevoid s24(void) //起始函数{_nop_(); SCL=0; sda=1; SCL=1; _nop_(); sda=0; _nop_(); _nop_(); SCL=0; _nop_(); _nop_(); sda=1;} //------------------------------------------------------------------------------#pragma disablevoid p24(void) //停止函数{sda=0; SCL=1; _nop_(); _nop_(); sda=1;} //-----------------------------------------------------------------------------#pragma disableunsigned char rd24(void) /////////////////从24c16读一字节数据{ ACC=0x00;sda=1;SCL=1;a7=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a6=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a5=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a4=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a3=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a2=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a1=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;SCL=1;a0=sda;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=1;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0; /// ///////////////24c16的一位回答位。return(ACC);}//------------------------------------------------------------------------------#pragma disablevoid wd24(unsigned char dd) ////////////////向24c16写一字节数据{ sda=1;ACC=dd;sda=a7;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a6;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a5;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a4;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a3;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a2;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a1;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=a0;SCL=1;_nop_();_nop_();_nop_();_nop_();SCL=0;sda=0;SCL=1;//SCL=0;(在下面程序中)}//---------------------------------------------------------------------------#pragma disableunsigned char read(unsigned int address){unsigned char dd; s24(); ////////////////////////开始条件 wd24(0xa0); /////////////////////////写器件地址(写命令) _nop_();_nop_();_nop_();_nop_(); SCL=0; ///////////////////////////////////接收器件地址确认信号 wd24(address); //////////////////////////// 写数据地址 _nop_();_nop_();_nop_();_nop_(); SCL=0;s24(); ///////////////////////////////////开始条件 wd24(0xa1); /////////////////////////////写器件地址(读命令) SCL=0; dd=rd24(); //////////////////////////////////读 一字节 p24(); ////////////////////////////////////停止条件 return(dd);}//------------------------------------------------------------------------------#pragma disablevoid write(unsigned int address,unsigned char dd){s24(); /////////////////开始条件 wd24(0xa0); ////////////////////////写器件地址; SCL=0; wd24(address); /////////////////////写数据地址 SCL=0; wd24(dd); //////////////////////////写dd数据 SCL=0; p24(); /////////////////////////停止条件; }
上传时间: 2013-11-18
上传用户:墙角有棵树
PLC TM卡开发系统汇编程序(ATM8051) ;***************** 定义管脚*************************SCL BIT P1.0SDA BIT P1.1GC BIT P1.2BZ BIT P3.6LEDI BIT P1.4LEDII BIT P1.5OK BIT 20H.1OUT1 BIT P1.3OUT2 BIT P1.0OUT3 BIT P1.1RXD BIT P3.0TXD BIT P3.1PCV BIT P3.2WPC BIT P3.3RPC BIT P3.5LEDR BIT P3.4LEDL BIT P3.6TM BIT P3.7;********************定义寄存器***********************ROMDTA EQU 30H;NUMBY EQU 61H;SLA EQU 60H;MTD EQU 2FH;MRD EQU 40H;TEMP EQU 50H;;ORG 00H;;INDEX:MOV P1, #00H;MOV P2, #0FFHMOV MTD ,#00HCALL REEMOV R0,40HCJNE R0,#01,NO;MOV P2,#1CHLJMP VIMEN MOV P2,#79HACALL TOUCHRESET ;JNC NO ;CALL READTM ;CJNE A,#01H,NO;NOPMOV MTD, #00HCALL WEENOPMOV P2,#4AHSETB BZCALL TIMECLR BZMOV PCON, #0FFHVIME:CALL TIME1CALL TOUCHRESETJNC VIMECALL READTMCJNE A, #01H,VIME;NOPNOPNOPIII: MOV MTD,#00HCALL REECALL BBJNB OK,NO1LJMP ZHUNO1:MOV MTD,#10H
上传时间: 2014-03-24
上传用户:448949
I2C 总线包括了两条串行总线(时钟线SCL 和数据线SDA),通过这两条总线能实现多个芯片之间的通信。在互相连接的芯片中,至少有一个芯片作为总线控制器,而其它芯片则作为从控制器。在本应用说明中,介绍了用Holtek 的八位RISC 结构的单片机作为单总线控制器的软件实现的方法。在本文的示例中,采用了一片EEPROM(型号HT24LC02,2Kbit)作为从控制器参与测试。电路说明:HT24LC02 的A0、A1、A2、VSS、WP 引脚接地,VCC 接+5V,SCL 接PA3,SDA 接PA2使用说明:例程中先向eeprom 中写数据,写完后,再将eeprom 中内容读出来,并将读出数据进行比较,若数据不相等程序跳到fail_out 中;若相等,最后程序跳到ok_end 中。本说明中提供了一个源文件OP_HT24.ASM 和一个包含文件HT24.ASM。在应用时,要将OP_HT24.ASM 文件添加到用户的project 中,并修改HT24.INC 文件中的变量设置,以建立SCL/SDA引脚来与用户的应用电路相匹配。
上传时间: 2013-10-19
上传用户:ming52900