代码搜索结果
找到约 20,284 项符合
I2C 的代码
i2c.h
/*****************************************************************************
* i2c.h: Header file for Philips LPC214x Family Microprocessors
*
* Copyright(C) 2006, Philips Semiconductor
i2c.c
#include "I2C.h"
/*------------------------------------------------------------------------------
// I2C Peripheral Function Prototypes
//-----------------------------------------------------------
i2c.h
//#include
#include
//------------------------------------------------------------------------------
// I2C Peripheral Variables
//---------------------------
i2c.h
/* High level I2C actions */
int __init i2c_init(void);
int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue);
unsigned char i2c_readreg(unsigned char theSlave, u
i2c.c
//I2C驱动程序(C51)-万能程序
#include "reg51.h"
#include "intrins.h"
unsigned char SystemError;
sbit SCL= P1^6; //定义串行时钟线所在口 使用时根据自己的需要来定义
sbit SDA= P1^7; //定义串行数据线所在口 使用时根据自己的需要来定义
#define SomeNOP()
i2c.c
#include "I2C.h"
/*****************************************************
宏定义:I2C_Delay()
功能:延时,模拟I2C总线专用
*****************************************************/
void I2C_Delay()
{
unsig
i2c.h
/*
I2C.h
标准80C51单片机模拟I2C总线的主机程序头文件
Copyright (c) 2005,广州周立功单片机发展有限公司
All rights reserved.
本程序仅供学习参考,不提供任何可靠性方面的担保;请勿用于商业目的
*/
#ifndef _I2C_H_
#define _I2C_H_
#include "STC89C51RCRD.h
i2c.lst
C51 COMPILER V7.20 I2C 11/06/2008 20:27:10 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE I2C
OBJECT MODULE PLACED IN I2C
i2c.h
/*****************************************************************************
* i2c.h: Header file for Philips LPC214x Family Microprocessors
*
* Copyright(C) 2006, Philips Semiconductor
i2c.c
/*
* FILE: i2c.c
* 用于主机发送/接收
*/
#include
#include "s3c24xx.h"
#include "i2c.h"
void Delay(int time);
#define WRDATA (1)
#define RDDATA (2)
typedef struct tI2C {