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.

serial EEPROM I2C interface source code in C

Status
Not open for further replies.

lollobrigido

Full Member level 2
Joined
Dec 13, 2002
Messages
134
Helped
2
Reputation
4
Reaction score
5
Trophy points
1,298
Location
Italy
Activity points
1,025
I'm searching for serial EEPROM I2C interface source code in C, to use in my microcontroller. Can someone help me?
thx
Lollo
 

Look here:
hxxtp://www.microshadow.com/english/page8051.htm
hxxp://www.programmersheaven.com/zone5/cat27/
hxxp://www.hut.fi/~iisakkil/stuff.html
hxxp://perso.club-internet.fr/mbouget/i2c-faq.html

have fun
 

Try **broken link removed**
It contain C code for PIC16F84,
C Code for 8051 is coming soon...
 

// ********************************************************
// *** Test eeprom ***
// *** For CCS Compiler ***
// ********************************************************

#define EEPROM_SDA PIN_C4
#define EEPROM_SCL PIN_c3

#include <16F877.h>

#use delay(clock = 20000000)
#use rs232(baud=19200, xmit=PIN_C6, rcv=PIN_C7, parity=N, bits=8)

#include <24128.c>


main() {



init_ext_eeprom();
write_ext_eeprom( 0x000, 'A');
delay_ms(15);
printf("%c",read_ext_eeprom(0X000));
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top