Reading / writing from using I2C on Linux

前端 未结 4 1162
死守一世寂寞
死守一世寂寞 2021-01-01 22:58

I\'m trying to read/write to a FM24CL64-GTR FRAM chip that is connected over a I2C bus on address 0b 1010 011.

When I\'m trying to write 3

4条回答
  •  梦谈多话
    2021-01-01 23:53

    The NAK was a big hint: the WriteProtect pin was externally pulled up, and had to be driven to ground, after that a single write of the address followed by data-bytes is successful (first code segment).

    For reading the address can be written out first (using write()), and then sequential data can be read starting from that address.

提交回复
热议问题