代码搜索结果
找到约 20,284 项符合
I2C 的代码
i2c.h
/*****************************************************************************
* i2c.h: Header file for Philips LPC214x Family Microprocessors
*
* Copyright(C) 2006, Philips Semiconductor
i2c.c
#include
#include "i2c.h"
#define SLAVEADDR 0x50;
int tx_count;
int rx_count;
unsigned char I2CBuffer[3];
void InitI2C(void)
{
//将P3.1和P3.3设置为I2C管脚
P3SEL = 0x
i2c.c
#include
#include "i2c.h"
#define SLAVEADDR 0x50;
int tx_count;
int rx_count;
unsigned char I2CBuffer[3];
void InitI2C(void)
{
//将P3.1和P3.3设置为I2C管脚
P3SEL = 0x
i2c.c
/*
I2C.c
标准80C51单片机模拟I2C总线的主机程序
*/
#include "I2C.h"
//定义延时变量,用于宏I2C_Delay()
unsigned char data I2C_Delay_t;
/*
宏定义:I2C_Delay()
功能:延时,模拟I2C总线专用
*/
#define I2C_Delay()\
{\
I2C_D
i2c.tdf
TITLE "I2C Controller";
PARAMETERS
(
DIVISOR = 25
);
%
Version 3.0, January 29th, 1998. Copyright Rune Baeverrud, 1996-1998.
You may use or distribute this function freely, provided you
i2c.h
/*****************************************************************************
* i2c.h: Header file for Philips LPC214x Family Microprocessors
*
* Copyright(C) 2006, Philips Semiconductor
i2c.tdf
TITLE "I2C Controller";
PARAMETERS
(
DIVISOR = 25
);
%
Version 3.0, January 29th, 1998. Copyright Rune Baeverrud, 1996-1998.
You may use or distribute this function freely, provided you
i2c.plg
Build target 'Target 1'
linking...
Program Size: data=8.0 xdata=0 code=411
creating hex file from "I2C"...
"I2C" - 0 Error(s), 0 Warning(s).
i2c.plg
Build target 'Target 1'
linking...
Program Size: data=8.0 xdata=0 code=411
creating hex file from "I2C"...
"I2C" - 0 Error(s), 0 Warning(s).
i2c.c
// *************** I2C driver V 1.0 ***************
// *** Written By P. Fletcher-Jones ***
// *** Written on 16/11/01 ***
// *** Last