Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2016, 02:37:30 14:37


Login with username, password and session length


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

Posts: 28

Thank You
-Given: 15
-Receive: 13


« on: August 19, 2009, 06:38:44 18: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
V.I.P
Junior Member
*****
Offline Offline

Posts: 72

Thank You
-Given: 27
-Receive: 20


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

Google is your friend!!!!

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

HTH


Logged
wellnerson1
Active Member
***
Offline Offline

Posts: 101

Thank You
-Given: 23
-Receive: 94



« Reply #2 on: September 03, 2009, 09:11:13 09: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, 12:37:17 12:37 by wellnerson1 » Logged
deveshsamaiya
Newbie
*
 Muted
Offline Offline

Posts: 28

Thank You
-Given: 15
-Receive: 13


« Reply #3 on: September 08, 2009, 06:45:50 06: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
Active Member
***
Offline Offline

Posts: 102

Thank You
-Given: 41
-Receive: 6


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

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

Posts: 101

Thank You
-Given: 23
-Receive: 94



« Reply #5 on: September 16, 2009, 01:08:10 13: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
**
 Muted
Offline Offline

Posts: 53

Thank You
-Given: 10
-Receive: 50


« Reply #6 on: September 25, 2009, 05:58:00 05: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: 170

Thank You
-Given: 36
-Receive: 60


Still alive...


« Reply #7 on: October 05, 2009, 10:15:31 22: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