//产生IIC起始信号
void IIC_Start(void)
{
SDA_OUT(); //sda线输出
IIC_SDA_1;
IIC_SCL_1;
delay_us(5);
IIC_SDA_0;//START:when CLK is high,DATA change form high to low
delay_us(5);
IIC_SCL_0;/
//产生IIC起始信号void IIC_Start(void){SDA_OUT();//sda线输出IIC_SDA_1;IIC_SCL_1;delay_us(5);IIC_SDA_0;//START:when CLK is high,DATA change form high to lowdelay_us(5);IIC_SCL_0;//钳住I2C总线,准备发送或接收数据}我想用模拟IIC和24C6
评论