PDA

View Full Version : 24lc1025 24lc256 external memory



JAY.M
- 23rd May 2006, 21:35
Hello, I would like to know if PicBasic Pro and 16f819 would work with a 24lc1025
before I order the external memory.

I have seen examples for the 24lc256, But nothing for the 24lc1025

I can use a different Pic if needed, but need to use the 24lc1025

If I have to, I can use four of the 24lc256's, But that would take more Pic pins
and more physical room

THANKS!

Melanie
- 23rd May 2006, 23:55
Yes, pretty much most PICs that support PICBasics I2CREAD & I2CWRITE will work with the 24LC1025 - that includes the 16F819.

Just for your information, EIGHT of the 24LC256's (or four 24LC1025's) will use the same number of PIC pins as just one... Two pins, SDA and SCL. The addressing of which chip you are using is done with the Control Byte you squirt down the bus and how you assign the A0 and A1 (and A2) pins on each EEPROM.

You MUST download the DATASHEET for the 24LC1025, and there on Page 7 (5.0 Device Addressing) it tells you EXACTLY the byte sequence you need to send to address the chip.

Tondunard
- 23rd October 2010, 01:47
i have a blank here
looking for the address to use I2C programming when pin 1 and pin 2 is tied to ground and pin 3 is tied to VCC.

i am looking for the address in HEXA please!

i know it's $A0 for lower block and $A8 for upper block (if my memory is correct!)

Maybe my problem comes from the 4.7k, shoud i drop them to 2.7k?

thanks

aratti
- 23rd October 2010, 07:44
You should use control address $A0 for write and $A1 for read (for lower), while (for upper) $A8 for write and $A9 for read.

Read page 84 of PBP manual for the defines that suit your application.

Cheers

Al.