??? 10/09/08 14:42 Read: times |
#158939 - Ok..more questions. Responding to: ???'s previous message |
Hi Andy,
I understood you. I don't have experience about I2C. I thought the I2C ISR could do all the I2C communication. I started to used soft I2C in AT89S52, but I changed to the LPC952. Then, I was wrong. How can I do the I2C start condition, to read, to write a byte and many bytes ? You comment about i2c_init() and I pass 0xA0. I wish to communicate with the memory. The description about the funtion is "DESC: initializes the I2C peripheral and interrupt sets the device's I2C address and whether it will respond to the general call address Uses a data rate of 99.6324kHz RETURNS: Nothing" I thought I was initialize the e2prom. The I2C E2prom address is 0xA0. Can I to use some code from CA to communicate with e2prom ? The steps to use I2C memory is: start condition write address device write low address (LSB) write high address (MSB) write (or read) to (or from) memory stop contition Is this correct ? I'm going to check the signals, but I unable to see the Ack from e2prom. I don't know how to do it. Jorge |