Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help setting program I2C for EEPROM 24C08

Status
Not open for further replies.

the_kid25

Member level 3
Member level 3
Joined
Jul 30, 2009
Messages
56
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,288
Location
thailand
Visit site
Activity points
1,610
at24c64 example

please help me setting program I2C for eeprom 24C08 with picture prosedure,thanks for all
 

i2c program

i ever made an project before using at24c64 as eeprom and atmega32 as a master to read or write eeprom

basicly u must understand about i2c addressing, there are 3 address pin on at24c64/c08. here in my sample the address pin is connected into ground which is mean i set the device address with 000h. let the wp pin on default (pull low)

97_1249397276.jpg


sda = 23 AVR
scl = 22 AVR

for the programm i used CAVR language and used winAVR to compile it, i've allready included the I2C library on atachment file, but for the complete version u can visit

http://www.roland-riegel.de/sd-reader/index.html.

include i2c.h and i2ceeprom.h into your main programm

to read a data from the specific address location u can use:
u08 i2ceepromReadByte(u08 i2cAddr, u32 memAddr)

and to write data into the specific address location on eeprom use:
void i2ceepromWriteByte(u08 i2cAddr, u32 memAddr, u08 data)

okey good luck I
 

24c08 project

freakkaito said:
i ever made an project before using at24c64 as eeprom and atmega32 as a master to read or write eeprom

basicly u must understand about i2c addressing, there are 3 address pin on at24c64/c08. here in my sample the address pin is connected into ground which is mean i set the device address with 000h. let the wp pin on default (pull low)

97_1249397276.jpg


sda = 23 AVR
scl = 22 AVR

for the programm i used CAVR language and used winAVR to compile it, i've allready included the I2C library on atachment file, but for the complete version u can visit

http://www.roland-riegel.de/sd-reader/index.html.

include i2c.h and i2ceeprom.h into your main programm

to read a data from the specific address location u can use:
u08 i2ceepromReadByte(u08 i2cAddr, u32 memAddr)

and to write data into the specific address location on eeprom use:
void i2ceepromWriteByte(u08 i2cAddr, u32 memAddr, u08 data)

okey good luck I
1836884340_08042009_1.jpg
i need setting list this program
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top