??? 10/04/08 01:38 Read: times |
#158825 - Problens in I2C Responding to: ???'s previous message |
Hi,
I inspected the mi2cstatus variable, seaching why my I2C doesn't work. I put a function, in the i2c_transfer_finished(), to transmit the mi2cstatus var through serial. In the main program, I put the functions: uart_init(); i2c_init(AT24C256, 0); EA=1; and trying to receive: i2c_receive(AT24C256); I discover the answer I2C is 0x04 (in the i2c.h from CA, 0x04 is I2C_ERROR!). My I2C communication doesn't work. What can I do to solve this problem ? thanks |