单片机学习——IIC总线及EEPROM实验之一
2016-01-20 来源:eefocus
解决方案:(c语言编程)
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar code table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f
,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
void delay1(uint);
sbit scl=P3^3;
sbit sda=P3^4;
void delay()
{
}
void init()
{
}
void start()
{
}
void stop()
{
}
void write_byte(uchar dat)
{
}
uchar read_byte()
{
}
void respon()
{
}
void write(uchar add,uchar dat)
{
}
uchar read(uchar add)
{
}
void main()
{
}
void delay1(uint a) {
}