PDA

View Full Version : 24c16



Tricky Nekro
08-11-2005, 04:30 PM
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--

Jon Williams
08-11-2005, 05:26 PM
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 Nekro
08-11-2005, 06:08 PM
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 Williams
08-11-2005, 07:01 PM
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 Nekro
08-11-2005, 10:31 PM
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--