The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 05:53:09 17:53


Login with username, password and session length


Pages: [1]
Print
Author Topic: 24Cxx interfacing AVR !!!  (Read 5583 times)
0 Members and 1 Guest are viewing this topic.
deveshsamaiya
Newbie
*
Offline Offline

Posts: 28

Thank You
-Given: 15
-Receive: 13


« on: August 19, 2009, 05:38:44 17:38 »

Hey I need to interface a external EEPROM AT24C04 to AVR (ATmega8) plz help me if  any one can give me a code in 'C' for that..Thanx for help
Logged

embedded@iit
Codeman
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 31
-Receive: 20


« Reply #1 on: August 19, 2009, 07:43:45 19:43 »

Google is your friend!!!!

google "avr external eeprom i2c" and you get 16.000 hits.

HTH


Logged
wellnerson1
Active Member
***
Offline Offline

Posts: 122

Thank You
-Given: 33
-Receive: 152


« Reply #2 on: September 03, 2009, 08:11:13 08:11 »

Hai deveshsamaiya

I have a Program written for PCF8583 RTC which is also using i2c protocol, if you are interested i will post here, please let me know.
« Last Edit: September 03, 2009, 11:37:17 11:37 by wellnerson1 » Logged
deveshsamaiya
Newbie
*
Offline Offline

Posts: 28

Thank You
-Given: 15
-Receive: 13


« Reply #3 on: September 08, 2009, 05:45:50 05:45 »

ya plz post if they are written for WinAVR-GCC, perhaps it can give me some standard functions...
Thanx fr help.. Smiley
Logged

embedded@iit
senthils2k
Junior Member
**
Offline Offline

Posts: 97

Thank You
-Given: 41
-Receive: 6


« Reply #4 on: September 11, 2009, 04:56:48 04:56 »

use Code visio AVR compiler its have the build in fuction
Logged
wellnerson1
Active Member
***
Offline Offline

Posts: 122

Thank You
-Given: 33
-Receive: 152


« Reply #5 on: September 16, 2009, 12:08:10 12:08 »

What i feel that we can not learn any protocol by using in-built functions. Am i correct dear friends?
Because while writing the code for i2c protocol i was struggled Shocked Huh a lot by timings.
Logged
wedo
Junior Member
**
Offline Offline

Posts: 49

Thank You
-Given: 10
-Receive: 51


« Reply #6 on: September 25, 2009, 04:58:00 04:58 »

Hi,

I2C, or IIC is very simple protocol comparing with other serial protocols; it's totaly depends on timing and synchronization. Please check the attached file which is details and code for your reference!

If you need anything else, just post here.

Enjoy electronics Wink
wedo
Logged
DarkClover
Active Member
***
Offline Offline

Posts: 169

Thank You
-Given: 37
-Receive: 60


Still alive...


« Reply #7 on: October 05, 2009, 09:15:31 21:15 »

Hy deveshsamaiya,

I searched the Internet a long time for a good I2C-Code.
There were thousands of codes and exaples and I tried
everything but in the end I had to write my own one.

So please try it by yourself first it's very easy and if
you need help just send me a PM or make a post here.

Take a look at these links, they helped me a lot:


Greets
DarkClover
Logged

Not thinking means to believe what others say!
TRY & ERROR... the fundamental principle our existence is based on
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC