cancel
Showing results for 
Search instead for 
Did you mean: 

I2C-Slave howto change direction in sequential transfer

HLipp
Associate

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?

1 REPLY 1
Pskfh
Associate

Did you find an answer?

Regards

Paul