Shop OBEX P1 Docs P2 Docs Learn Events
24c16 — Parallax Forums

24c16

Tricky NekroTricky Nekro Posts: 218
edited 2005-08-11 15:31 in BASIC Stamp
I've resently used a 24C16 for writting some numbers and then read them and display them.

I know that this may sound crazy, but I'm using a different type of stamp board, fully factioning with the PBasic compailer...(in fact it is a BS2 but the PIC and the memory·are seperate)
Now, the question is if i can use this memory without damaging the PIC.
To understand the whole thing it is like removing the memory of stamp BS2 module and replace it with the memory, with the programm following:

(The notes are written in Greek)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-11 10:26
    I've attached a program that should work for you.· It takes care of all the I2C stuff and shows how to set the slave address byte of the 24x16.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Tricky NekroTricky Nekro Posts: 218
    edited 2005-08-11 11:08
    I run the programm and these are the results:

    2048
    Address...
    Output.... 2047
    Input...... $FF
    Status.... $00
    Errors..... Fail

    Am I OK?

    Thankfully, Provas

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rule your Destiny-
    --Be Good. Be Bad. Be Provas--
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-11 12:01
    I guess not. You may need to double-check the program; I've only tested it with the 24LC16. I looked at the specs briefly and it looked like it should work, sorry that it didn't.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Tricky NekroTricky Nekro Posts: 218
    edited 2005-08-11 15:31
    I checked the memory on the Stamp BS2 Board...
    I used def.DATA to be sure that the·pic could read them and it worked!!!
    The programm was a RTTTL file·shown at "What's a microcontroler".
    I guess that in order·to be sure I must check it with large-scale programms.


    Thankfully, Provas

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rule your Destiny-
    --Be Good. Be Bad. Be Provas--
Sign In or Register to comment.