Hi All,
I'm experimenting with the Cypress FM24CL04B FRAM chip. It's got a lot to offer, especially in speed and low power signature. I thought it was a drop-in replacement for the 24LCxxx and although pin-wise it is, program-wise, there's a difference. It has to do with the i2c read. It was driving me crazy for a while until I read the data sheet about a hundred times. Apparently, one can not do a random read by simply sending the "address to read" as in the hi2cin command. It only reads from the point of the last write. e.g. If you write some bytes to address x, then when you read, you'll start reading at address x (not matter what address you specify in the hi2cin command). As I underestand it, the data sheet states that the way to do a random read is to first to an "empty" write to the desire location (no data) and then issue the read command for the desired number of bytes. That empty write is to place the desired random address in the internal address latch.
So here's my problem. I know there is a manual way to do the hi2cout command. But I can't find it. The editor will not allow an empty Hi2cout ... as in "hi2cout address, ()". Can someone refresh me as to how to accomplish such an empty write command?
John
I'm experimenting with the Cypress FM24CL04B FRAM chip. It's got a lot to offer, especially in speed and low power signature. I thought it was a drop-in replacement for the 24LCxxx and although pin-wise it is, program-wise, there's a difference. It has to do with the i2c read. It was driving me crazy for a while until I read the data sheet about a hundred times. Apparently, one can not do a random read by simply sending the "address to read" as in the hi2cin command. It only reads from the point of the last write. e.g. If you write some bytes to address x, then when you read, you'll start reading at address x (not matter what address you specify in the hi2cin command). As I underestand it, the data sheet states that the way to do a random read is to first to an "empty" write to the desire location (no data) and then issue the read command for the desired number of bytes. That empty write is to place the desired random address in the internal address latch.
So here's my problem. I know there is a manual way to do the hi2cout command. But I can't find it. The editor will not allow an empty Hi2cout ... as in "hi2cout address, ()". Can someone refresh me as to how to accomplish such an empty write command?
John