brianbr,
Here is code that I used to test the 24LC246. It's working fine and I also have a RTC on the buss. It's mainly a tweaked example from the Playground. Hope it helps.
/* Simple read & write to a 24LC256 256K EEPROM using the Wire library.
- Addresses are ints - 0000-7FFF (32767) Data is bytes (8 bits x 32767 = 256K)
- Functions for R/W of single byte or a page of bytes. Max page is 28 bytes.
- SETUP: _ _
- Arduino GND- A0-|oU |-Vcc to Arduino Vcc
- Arduino GND- A1-| |-WP to GND for now. Set to Vcc for write protection.
- Arduino GND- A2-| |-SCL to Arduino 5
- Arduino GND-Vss-| |-SDA to Arduino 4
- --- (A2, A1, A0 to GND for 1010000 (0x50) address.)
- If set to Vcc adds to address (1010,A2,A1,A0)
*/
oooppps, operator head space error. I had the 'sense' of WP backwards. I pulled WP up to Vcc. I need to cut the trace and ground it.
Thanks for the help. Will take your code and run it as soon as I fix the proto-board.
cheers ... BBR