Welcome![Sign In][Sign Up]
Location:
Search - sda scl

Search list

[Other resourceVI2C_24A

Description: 本模拟I2C软件包包含了I2C操作的底层子程序,使用前要定义 好SCL和SDA。在标准8051模式(12 Clock)下,对主频要求是不高于12MHz(即1个 机器周期1us) 若Fosc>12MHz则要增加相应的NOP指令数。(总线时序符合I2C标 准模式,100Kbit/S)-simulation package contains the I2C operation of the bottom subroutine, prior to the use of a good definition of SCL and SDA. The standard model 8051 (12 Clock), the speed requirement is no more than 12MHz (that is, a machine cycle TI) if Fosc
Platform: | Size: 3151 | Author: ll | Hits:

[Other resourceds1624cprogram

Description: 由于DS1624是I2C总线结构的串行数据传送,它只需要SDA和SCL两根线完成数据的传送过程。因此,我们在进行程序设计的时候,也得按着I2C协议来对DS1624芯片数据访问。有关I2C协议参看有关资料,这里不详述。对于AT89S51单片机本身没有I2C硬件资源,所以必须用软件来模拟I2C协议过程。 要从DS1624中读取温度值,首先启动DS1624的内部温度A/D开始转换,对应着有相应的命令用来启动开始温度转换,有关DS1624的指令集参考前面的叙述。一般情况下,DS1624经过一次温度的变换,需要经过1秒钟左右的时间,所以等待1秒钟后,即可读取内部的温度值,对于读取的温度值,仍然通过DS1624的指令集来完成温度的读取。但所有有数据的传送过程必须遵循I2C协议。 -DS1624 is due to the structure of I2C bus serial data transmission, it requires SDA and SCL completed two lines of data transmission process. Therefore, we design procedures during the time, it has agreed to subscribe for I2C chip DS1624 data access. The I2C agreement refer to the relevant information, will not elaborate here. For AT89S51 SCM does not I2C hardware resources, Therefore, we must use the software to simulate the process I2C agreement. Read from the DS1624 temperature, to start the internal temperature DS1624 A / D conversion start, corresponds to a corresponding order to start the starting temperature conversion, the DS1624 instruction set reference to the previous description. Under normal circumstances, the DS1624 temperature through a transformation takes a second time aro
Platform: | Size: 1702 | Author: 花花 | Hits:

[Other resourceTDA7313

Description: HT48c10控制TDA7313N(音效处理芯片)程序 #if 0 //ht48c10控制TDA7313N(音效处理芯片),音源从L3输入,再从OUT LF脚输出 //SDA=PA1--PA7 , SCL=PA0--PA6 ... -HT48c10 control TDA7313N (audio processing chip) procedure # if 0 / / ht4 8c10 control TDA7313N (audio processing chip), the sources of noise from L3 input, LF from the OUT pin output / / SDA = blocking -- PA7, SCL = PA0 -- PA6 ...
Platform: | Size: 6166 | Author: DCH555 | Hits:

[Other resourceI2C_C51

Description: #include \"intrins.h\" unsigned char SystemError sbit SCL= P1^6 //定义串行时钟线所在口 使用时根据自己的需要 sbit SDA= P1^7 //定义串行数据线所在口 使用时根据自己的需要 #define SomeNOP() {_nop_() _nop_() _nop_() _nop_() }-# include "intrins.h" unsigned char Syste mError sbit SCL = P1 ^ 6 / / definition serial clock line where I use according to their needs sbit SDA P1 = ^ 7 / / definition of serial data lines where I use according to their needs # defin e SomeNOP () (_nop_ () _nop_ () _nop_ () _nop_ (
Platform: | Size: 229305 | Author: zhusheng | Hits:

[Other resourceIICMaster

Description: 12Mhz标准51的100KHz IIC总线主器件模拟方式驱动程序。 本驱动程序即可以在没有Small RTOS的情况下使用。此时,要使用本驱动程序只需要配置IIC总线使用的IO口。在驱动程序的主文件iic_master.c仅包含一个文件config.h。用户需要的是在这个文件中设置IIC总线使用的IO口SDA和SCL。如果用户单独使用iic_master.c,还要在config.h包含iic_master.h文件和其它必须的文件如reg51等;并定义宏TRUE、FALSE和与编译器无关的数据类型。在使用Small RTOS的情况下,用户只要在config.h定义SDA和SCL和包含iic_master.h并将宏IICSem定义为分配给IIC总线驱动程序的信号量的索引。 在使用IIC总线驱动程序前应该调用函数IICInit()初始化IIC总线。单独使用或单任务IIC总线,使用函数IICRead()对IIC总线进行读操作,使用IICWrite()对IIC总线进行写操作。如果有多个任务需要对IIC总线进行操作,则分别调用宏OSIICRead()和OSIICWrite()对其进行读写。-12Mhz standards of 100KHz 51 IIC bus owners device simulation mode driver. The driver is not in the Small RTOS use. At this point, to use the driver only needs to use the allocation of the IIC bus IO mouth. Drivers in the main document iic_master.c document contains only a config.h. User needs in this document is to set up the IIC bus IO mouth SDA and SCL. If users alone iic_master.c. also included in config.h iic_master.h documents and other necessary documents reg5 1; and the definition of Acer TRUE, FALSE and compiler - independent data types. Small RTOS in the use of the circumstances, users in config.h definition of SDA and SCL and will include Acer iic_master.h IICSem definition allocated to the IIC bus driver signals of the index. IIC in the use of the former bus driver should call
Platform: | Size: 3537 | Author: 李强 | Hits:

[Other resourceI2c_full

Description: 这是mcs51下的i2c实现,采用gpio来作为i2c的sda&scl.该实现几乎包含了i2c所有的可能情况!-mcs51 This is the realization of i2c, gpio used as the sda i2c
Platform: | Size: 1282 | Author: timeshift | Hits:

[Com Portiic

Description: iic 总线 verilog 源代码 标准i2c总线, 有sda scl 时钟,频率自定
Platform: | Size: 2784 | Author: johnnyz | Hits:

[SCMI2c_full

Description: 这是mcs51下的i2c实现,采用gpio来作为i2c的sda&scl.该实现几乎包含了i2c所有的可能情况!-mcs51 This is the realization of i2c, gpio used as the sda i2c
Platform: | Size: 1024 | Author: timeshift | Hits:

[Com Portiic

Description: iic 总线 verilog 源代码 标准i2c总线, 有sda scl 时钟,频率自定-IIC bus standard Verilog source code i2c bus, has sda scl clock, the frequency of self-
Platform: | Size: 2048 | Author: johnnyz | Hits:

[SCMIIC24C0x

Description: 通用的24C02/4/8的C语言程序,使用时需要自己重新定义SDA、SCL及所使用的芯片-24C02/4/8 generic C-language procedures, when used to redefine the needs of their SDA, SCL, and the use of the chip
Platform: | Size: 2048 | Author: 雨点 | Hits:

[assembly languageI2CCCCC

Description: 数是对LPC764的I2C的I/O口实 现,即其P1.3 (SDA) , P1.2(SCL),51系列机型可以通用. 注意: 函数是采用软件延时的方法产生SCL脉冲,固对高晶振频率要作 一定的修改....(本例是1us机器周期,即晶振频率要小于12MHZ). (函数的使用可参考给出的事例程序.)-脢媒脢脟 露 脭LPC764渭脛I2C渭脛I 拢 炉 O 驴 脷脢渭脧脰, 录
Platform: | Size: 2048 | Author: wuchwu1986 | Hits:

[SCMi2c_pic_right

Description: ///*** *** *** * //一、程序说明: //1, 24LC02器件地址是1010000R/W. //2, 数组写入24LC02采取页写方式. //3, 数组code从24LC02读出时采取自由读方式. //4, 采用4.00M晶体。 //5,采用软件I2C。 //二、硬件连接: //1, SDA------->23 pin.(当然你可以任意选择脚位) //2, SCL------->18 Pin.(当然你可以任意选择脚位) //3, PORTB----->数码管的段输出 //4, RD4,RD5,RC6,RC7------->数码管的位输出(数码管为共阴极) -///*******************// A description of the procedures:// 1, 24LC02 device address is 1010000R/W.// 2, write an array to take 24LC02 page write mode.// 3, the array read out the code from the 24LC02 to take a free read.// 4, using 4.00M crystal.// 5, using software I2C.// Second, the hardware to connect:// 1, SDA-------> 23 pin. (Of course, you can choose to pin)// 2, SCL-------> 18 Pin. (Of course You can choose pin)// 3, PORTB-----> digital tube output segment// 4, RD4, RD5, RC6, RC7-------> digital pipe-bit output (digital tube for a total of cathode)
Platform: | Size: 2048 | Author: lm | Hits:

[SCMeeprom

Description: AT24C512的读写操作,我们将24c512的两条总线接在了P36和P37上,因此,必须先定义: sbit SCL=P3^6 sbit SDA=P3^7 在这个试验中,我们写入了一组字节数值到24c512的0x0081为首的位置。 然后在将其读出并在P1口显示-AT24C512 operations of reading and writing, we will take the bus two 24c512 in the P36 and P37, therefore, must be defined: sbit SCL = P3 ^ 6 sbit SDA = P3 ^ 7 in this test, we write a set of byte values to 0x0081, led by the 24c512 position. Then be read out and displayed in the P1 I
Platform: | Size: 1024 | Author: lvchuanwei | Hits:

[Embeded-SCM DevelopI2C

Description: I2C显示程序,主要是通过SDA和SCL两个参数进行设置,数据的发送与接收。-I2C display program, mainly through the SDA and SCL set two parameters, the sending and receiving data.
Platform: | Size: 142336 | Author: 小飞 | Hits:

[SCM4830wrht24xx

Description: HT24 系列的EEPROM 总共8 个管脚,三个为芯片地址脚A0、A1、A2,在单片机对它进行操作时,从SDA 输入A0、A1、A2 数据和芯片外部A0、A1、A2 所接地址需一一对应。一个为芯片写保护脚WP,WP 脚接低电平时,芯片可进行读写操作;WP 脚接高时,芯片只可进行读,不可进行写。 另外两个管脚为电源脚VCC,VSS。 用单片机对HT24 系列的EEPROM 进行控制时,HT24 系列的EEPROM 的外部管脚VCC、VSS、WP、A0、A1、A2 根据需要,对应接上,SDA、SCL 接到单片机控制脚上。-HT24 Series EEPROM total of 8 pins, three pins for the chip address A0, A1, A2, in the microcontroller to operate it, from SDA input A0, A1, A2, and chip external data A0, A1, A2 of the Then one correspondence address must be in. One for the chip, write-protect pin WP, WP feet then low, the chip can be read and write operations WP pin is high then, the chip can only be read, not write. The other two pins for the power pin VCC, VSS. With the microcontroller on the HT24 Series EEPROM control when, HT24 Series EEPROM external pin VCC, VSS, WP, A0, A1, A2 according to the needs of the corresponding connected, SDA, SCL receives SCM control feet .
Platform: | Size: 1024 | Author: 张钧 | Hits:

[SCM000

Description: 用DZ16自带的SDA SCL完成温度采集-DZ16 that comes with the completion of temperature acquisition SDA SCL
Platform: | Size: 1024 | Author: 吴凯 | Hits:

[Linux-UnixLinux-driver-development15

Description: 作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第15章、Linux的I2C核心、总线与设备驱动。I2C总线仅仅使用SCL、SDA这两根信号线就实现了设备之间的数据交互,极大地简化了对硬件资源和PCB板布线空间的占用。因此,I2C总线被非常广泛地应用在EEPROM、实时钟、小型LCD等设备与CPU的接口中。Linux系统定义了I2C驱动体系结构,在Linux系统中,I2C驱动由3部分组成,即I2C核心、I2C总线驱动和I2C设备驱动。这3部分相互协作,形成了非常通用、可适应性很强的I2C框架。6.1节对Linux I2C体系结构进行分析,讲解3个组成部分各自的功能及相互联系。6.2节对Linux I2C核心进行分析,讲解i2c-core.c文件的功能和主要函数的实现。6.3节、6.4节分别详细介绍I2C总线驱动和I2C设备驱动的编写方法,给出可供参考的设计模板。6.5节、6.6节以6.3节和6.4节给出的设计模板为基础,讲解S3C2410 ARM处理器I2C总线驱动及挂接在其上的SAA7113H视频模拟/数字转换芯片设备驱动的编写方法。-Author: HuaQing vision embedded institute. The Linux device driver development "(08 and 09 sep TOP50) annual list of best-selling chapter 15, Linux the I2C bus and core, device drivers. The I2C bus use only the two root, SDA SCL signal will achieve the data interaction between equipment, greatly simplified the hardware resources and PCB wiring space take up. Therefore, the I2C bus is very widely used in EEPROM, real clock, small LCD equipment and CPU interface. Linux system defines the I2C drive system structure in Linux, system, the I2C driven by three parts, namely the I2C core, the I2C bus driver and the I2C device drivers. The three parts of the cooperation and formed very general, can vary adaptive the I2C framework. Section 6.1 the I2C system for Linux analyzed the structure, the explanation is 3 part of their respective functions and to each other. Section 6.2 to Linux
Platform: | Size: 593920 | Author: 华清远见 | Hits:

[SCMVIIC_C51

Description: 按照协议规定,总线空闲时两线为高,当进行通信时,SDA在SCL高电平时由高变低表示通信开始( void iic_start(void) ),以后传输数据,SDA只能在SCL为低的时候才能发生变化,在SCL上升抓取数据;而停止位是在SCL高时SDA由低变高(void iic_stop(void) )。-Under the agreement, the two-wire bus is idle is high and when to communicate, SDA SCL high, from high to low the start of communication (void iic_start (void)), after the transmission of data, SDA only when SCL is lowwhen will change, data in SCL rising crawl while the stop bit is in high SCL SDA from low to high (void iic_stop (void)).
Platform: | Size: 2048 | Author: zhangmingjun | Hits:

[SCMI2Czongxian

Description: 51单片机中,I2C总线(SDA,SCL)的操作程序-I2C bus procedures
Platform: | Size: 1024 | Author: 吉祥 | Hits:

[ARM-PowerPC-ColdFire-MIPSMG82f5d16 I2C

Description: MG82f5d16 I2C SDA SCL Sample code for I2c Protocol
Platform: | Size: 115535 | Author: raulpmr33@gmail.com | Hits:
« 12 3 4 5 6 7 8 »

CodeBus www.codebus.net