/*24C64子程序 */
bit I2C_Start(void;
void I2C_Stop(void;
void I2C_Ack(void;
bit I2C_Send_Byte( uchar;
uchar I2C_Receive_Byte(void;
void AT24C64_R(void *mcu_address,uint AT24C64_address,uint count; void AT24C64_W(void *mcu_address,uint AT24C64_address,uint count; void Delay_10_uS(void
{
char i=10;
while(i--;
}
void Delay_N_mS( uint n_milisecond /* n mS delay */
{
uchar i;
while(n_milisecond--
{
i=37;
while(i--;
}
}
bit I2C_Start(void
电视升降机
flash测试{
Delay_10_uS(;
I2C_SDA =1;
Delay_10_uS(;
I2C_SCK =1;
视觉检测
Delay_10_uS(;
if ( I2C_SDA == 0 return 0;
if ( I2C_SCK == 0 return 0;
I2C_SDA = 0;
Delay_10_uS(;
I2C_SCK = 0;
太阳能
浴室Delay_10_uS(;
return 1;
}
void I2C_Stop(void
{
Delay_10_uS(;
I2C_SDA = 0;
Delay_10_uS(;
I2C_SCK = 1;
Delay_10_uS(;
I2C_SDA = 1;
Delay_10_uS(;
}
void I2C_Ack(void
{
Delay_10_uS(;
I2C_SDA=0;
Delay_10_uS(;
I2C_SCK=1;
Delay_10_uS(;
I2C_SCK=0;
3d打印玻纤