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.

[SOLVED] read and writing to EEPROM using I2C

Status
Not open for further replies.

Raady Here

Full Member level 5
Full Member level 5
Joined
Jun 8, 2013
Messages
242
Helped
26
Reputation
52
Reaction score
26
Trophy points
28
Location
India
Visit site
Activity points
1,571
Hi,

I written code for I2C protocol that read and write to an EEPROM 24LC256.

How it varies writing or reading to EEPROM driven by interrupt or polling method ?

Is there any advantage over the other ?

Is there links where I can read in detail about this ?


Regards,
Raady.
 

Which Compiler do you use? There is no need for interrupt. I2C is used. You read and write whenever you want. So, no need of interrupt. Ofcourse, you can use interrupt for reading and writing from/to eeprom.
 

you don't need to do any polling on i2c, clock is in your hand so just simply read and write. Interrupt can also be used (if your MCU supports I2C interrupt), but that is normally not needed for simple applications.
 

Hi Raady,
read attached example, can help you,
regards
 

Attachments

  • I2C and EEPROM.pdf
    69 KB · Views: 137

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top