I2C set a reading address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C set a reading address

437 次查看
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 回复

401 次查看
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 项奖励
回复