IIC_START ();
IIC_TX_DATA (0xEE);
IIC_ACK ();
IIC_TX_DATA (0xF4);
IIC_ACK ();
IIC_TX_DATA (0x2E);
IIC_ACK ();
IIC_STOP ();
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
IIC_START ();
IIC_TX_DATA (0xEE);
IIC_ACK ();
IIC_TX_DATA (0xF6);
IIC_ACK ();
IIC_RESTART ();
IIC_TX_DATA (0xEF);
IIC_ACK ();
DATA_R=IIC_RX_DATA();
IIC_ACK ();
DATA_R1=IIC_RX_DATA();
IIC_ACK ();
IIC_STOP ();
IIC_TX_DATA (0xEE);
IIC_ACK ();
IIC_TX_DATA (0xF4);
IIC_ACK ();
IIC_TX_DATA (0x34);
IIC_ACK ();
IIC_STOP ();
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
IIC_START ();
IIC_TX_DATA (0xEE);
IIC_ACK ();
IIC_TX_DATA (0xF6);
IIC_ACK ();
IIC_RESTART ();
IIC_TX_DATA (0xEF);
IIC_ACK ();
DATA_R=IIC_RX_DATA();
IIC_ACK ();
DATA_R1=IIC_RX_DATA();
IIC_ACK ();
IIC_STOP ();
return DATA_R; |