Shop OBEX P1 Docs P2 Docs Learn Events
how can i store long integer in 24LC256 like example 32510 — Parallax Forums

how can i store long integer in 24LC256 like example 32510

maverhmaverh Posts: 7
edited 2008-12-29 09:51 in BASIC Stamp
Hi,

how can i store long integer in 24LC256 like example 32510



regards

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-12-28 22:32
    If it's a WORD then you need to break that into two BYTEs and write those into two different addresses.

    In the attached program, I modified a Jon Williams program for use with a 24C04, the WORD (VAR kitty) gets split into two BYTEs, the two BYTEs get written into addrs 14, 15 and then those addresses are·read back and re-assembled·into a WORD (VAR readback.)
  • maverhmaverh Posts: 7
    edited 2008-12-29 09:51
    Thanks,

    It work
Sign In or Register to comment.