搜索资源列表
IICMaster
- 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和与编译器无关的
mainprogramRTC
- Using Keil uVision to create this project and compile it to get the hex file. Interfacing DS1307 with AT89S52/1/3 to read and write RTC(Real Time Clocking) IC with I2C bus protocol. SDA and SCL connected into AT89S52 P2.0 Pin and P2.1 pin.
gpioportpins
- The software implemented in this Note controls the two GPIO port pins connected to the serial data (SDA) and serial clock (SCL) lines of the I2C bus.-The software implemented in this Note controls the two GPIO port pins connected to the serial dat
112-PCF8591-1602
- PCF8591 1602液晶显示函数是采用软件延时的方法产生SCL脉冲,固对高晶振频率要作 一定的修改-PCF8591 1602 LCD function is software delay SCL pulse, solid high crystal frequency to make certain changes
lsl29003-cortex_m0-keil
- ISL29003 通过 I2C 总线与 LPC11C14 进行通信, 其中 PIO0_4 作为 ISL29003 的 SDA, PIO0_5 作为 ISL29003 的 SCL , PIO0_7 作为 ISL29003 的 Light_nIN-ISL29003 through the I2C bus to communicate with LPC11C14 which PIO0_4 as ISL29003 of SDA, PIO0_5 as ISL29003 of SCL, PIO0_
I2C
- 4. I2C程序设计与电路仿真 LPC2138微控制器具有标准的硬件I2C接口,可配置主机或从机,总线时钟频率可调整,可支持400KHZ总线频率。使用I2C总线时,要将P0.2、P0.3连接设置选择SCL、SDA,并且总线上要接两个上拉电阻,阻值1~5千欧。 定义器件的地址和LED输出端口,设置包括从机地址、子地址、数据缓冲区指针、操作数据个数、操作结束标志、子地址使能控制在内的变量。使用PINSEL0、PINSEL1寄存器设置I/O口工作模式,设置LED控制口为输出,其他I/O为输入。
F0xx_SMBus_EEPROM
- 本程序是基于C8051F100的一个小程序,针对C8051F100的IO、时钟、中断等进行了初始化的设置,同时主要实现了SMBUS总线的控制程序,对于本单片机的学习比较有帮助。- This example demonstrates how the C8051F0xx ( F005 family) SMBus interface can communicate with a 256 byte I2C Serial EEPROM (Microchip 24LC02B). //- Interr
