Write a page of 24lc16b
moreet
Posts: 17
Hi Dears,
finally I did write/read a single byte in random mode, but I have some troubles if I try to write an entire page (16 bytes).
It seems that I write just in the first location pointed. Maybe I use badly the ACK. Somebody has code about how to use it?
Thanks.
marco.
finally I did write/read a single byte in random mode, but I have some troubles if I try to write an entire page (16 bytes).
It seems that I write just in the first location pointed. Maybe I use badly the ACK. Somebody has code about how to use it?
Thanks.
marco.
Comments
The problem was reading.
I used the ack as in a write mode with a shiftin sda, scl,[noparse][[/noparse]ack/1] instead to use a shiftout sda,scl, [noparse][[/noparse]0/1], so the sda line after the first byte stayed high.
As a teacher of mine taught me, the micro never fails, it does what you tell it to do.