cancel
Showing results for 
Search instead for 
Did you mean: 

I2C and Master in receiver: problem.

marcosarti29
Associate II
Posted on September 28, 2007 at 06:20

I2C and Master in receiver: problem.

1 REPLY 1
marcosarti29
Associate II
Posted on September 28, 2007 at 06:20

Hi,

I use ST72325 for communicate with external RTC in I2C.

I must read the RTC data: ST = master, RTC = slave.

I dont understand I can setting my master in received mode.

I send the request with:

I2CDR = 0xA3; // 0xA3 code of address

while (!(I2CSR1 & I2C_EVF)) I2CCheckError(); // wait EVF = 1

I2CCR |= I2C_PE; // write CR register v.pag 124 for EV6

return I2CDR;

but after ACK of slave the clock go down and the SDA is high.

Help help...thanks