Shop OBEX P1 Docs P2 Docs Learn Events
Write a page of 24lc16b — Parallax Forums

Write a page of 24lc16b

moreetmoreet Posts: 17
edited 2009-12-18 15:20 in BASIC Stamp
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.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-18 14:54
    There is really nothing special about writing a page. You just write more than one byte before sending a stop sequence. If you want to write the entire page, you have to start at the beginning of the page and send 16 bytes. If you want more specific suggestions, please attach your current source program to a message using the forum's Attachment Manager. Use the Post Reply button rather than the Quick Reply box.
  • moreetmoreet Posts: 17
    edited 2009-12-18 15:20
    Ok, solved it.
    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.
Sign In or Register to comment.