I2C set a reading address

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C set a reading address

330件の閲覧回数
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 件の賞賛
1 返信

294件の閲覧回数
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 件の賞賛