Good day,
I want to read from an Eeprom 24AA32A using I2C.
The Eeprom is working using:
1. A header for operation read/write (1 byte),
2. An address (2 bytes)
3. Data (1 byte).
The write procedure is:
1. Start_signal
2. 1 byte header_write
3. 2 bytes adress
4. 1 byte data
5. Stop_signal
The read procedure is like write but instead of data byte, send start_signal + header_read:
1. Start_signal
2. 1 byte header_write
3. 2 bytes adress
4. Start_signal + 1 byte header_read
5. Eeprom returns 1 byte data
6. Stop_signal
I am using I2C_transfer which basically starts with a start_signal and ends with a stop_signal.
But I need a start_signal inside the transaction.
If I split the transaction in 2 transactions I got a stop_signal + a start_signal and the stop_signal breaks the communication.
Do you have a solution?
Regards
Horea