代码搜索结果
找到约 10,000 项符合
I2C 的代码
24c02a.c
//送出去,返回来。点亮灯。
#include
#define uchar unsigned char
sbit sda=P1^1; //i2c总线控制,传输线
sbit scl=P1^0; //时钟线
uchar k;
void delay()
{; ;}
i2c.c
#include
#include "delay.h"
#include "i2c.h"
/*
* I2C functions for HI-TECH PIC C - master mode only
*/
/*
* TIMING - see Philips Sem. 80C51-based 8-bit ucontrollers,
* or e.
write_page.dp2
write_page.o: C:\iccv7avr\include\iom128v.h E:\产品\开发板\mega128-board\实验程序\I2C读写24C04\页写\i2c.h
read_page.dp2
read_page.o: C:\iccv7avr\include\iom128v.h E:\产品\开发板\mega128-board\实验程序\I2C读写24C04\连续读\i2c.h
at24c02.~c
/**********************************************
http://www.sl.com.cn
双龙电子公司----I2C总线演示程序(ICCAVR)
作者:詹卫前
1、以访问AT24C02为例
2、SDA :PORTA.0
3、SCL : PORTA.1
i2c.c
/**********************************************
http://www.sl.com.cn
双龙电子公司----I2C总线演示程序(ICCAVR)
作者:詹卫前
1、以访问AT24C02为例
2、SDA :PORTA.0
3、SCL : PORTA.1
i2c.~c
/**********************************************
http://www.sl.com.cn
双龙电子公司----I2C总线演示程序(ICCAVR)
作者:詹卫前
1、以访问AT24C02为例
2、SDA :PORTA.0
3、SCL : PORTA.1
at24c02.c
/**********************************************
http://www.sl.com.cn
双龙电子公司----I2C总线演示程序(ICCAVR)
作者:詹卫前
1、以访问AT24C02为例
2、SDA :PORTA.0
3、SCL : PORTA.1
i2c_av_config.v
module I2C_AV_Config ( // Host Side
iCLK,
iRST_N,
o_I2C_END,
// I2C Side
I2C_SCLK,
I2C_SDAT );
// Host Side
input iCLK;
input iRST_N;
output
i2c.txt
////=====================================================
read_data: ldi peout,1111b
ldi pe,1111b
call delay_2us
ldi rom_buf,1110b
sta pe,00h ;sda low,start I2C
call delay_2us