Skip to main content
HLipp
Visitor II
May 10, 2019 1:22 PM UTC
Question

I2C-Slave howto change direction in sequential transfer

I'm trying to emulate an 24c08 EEPROM with anSTM32F303.

My problem is, that my master (can't change that behaviour) after sending the start and adresss-byte imediately send up to 16 byte of data, (write-operation) but in case of a read-operation it sends a repeated start directly after te address-byte und expects up to 16 byte of data from my slave.

This is not predictable from my point of view, because the master is an existing device and i want to replace it's internal EEPROM (desoldered) with my emulated one.

My first aproach was to sequenial read up to 17 bytes of data (address and up to 16byte data), but in the repeated start in case of a read-operation i can not initiate the send-process, becuase there is only 1 byte received so far and i don't know how to abort the pending read-operation at this point.

Any ideas?

This topic has been closed for replies.

1 reply

Pskfh
Visitor II
Oct 25, 2020 9:28 PM UTC

Did you find an answer?

Regards

Paul