I2C set a reading address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C set a reading address

317 Views
claeskjellstrom
Contributor III

Hi,

When looking at I2C memory devices and specially read at a certain address has always created more headache then simple write. As an example we have 24LC0xB and "random read".

My question would be:is it possible after"writing" the address where you later want to read just to generate a STOP ? instead of a START. That way the Read and Write would be more simulare to each other apart from NAK.

Regards

Claes

0 Kudos
1 Reply

281 Views
mjbcswitzerland
Specialist V

Hi

You can generate a STOP condition after writing the address and before reading data (which requires a START condition again, plus the read address).
A repeated start is however a little more efficient.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos