EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / communication b/w I2C/TWI & EEPROM

communication b/w I2C/TWI & EEPROM

|

Microcontroller › AVR › How to setup communication between I2C/TWI and EEPROM › communication b/w I2C/TWI & EEPROM

March 4, 2011 at 5:57 am #5656
SANDEEP RAVAL
Participant

Hi dear,

I am using ATMEGA32 microcontroller and EEPROM 24C16.

I am getting acknowledgwment in sending start condition & sending address both.

when i studied following istruction i could not understand it means how will my EEPROM recieve or send an acknowledgement to my ATMEGA32.:

plz help.

u r my last hope.


void TWI_start(void)
{
// Clear TWI interrupt flag, Put start condition on SDA, Enable TWI
        TWCR= (1<<TWINT)|(1<<TWSTA)|(1<<TWEN);

while(!(TWCR & (1<<TWINT))); // Wait till start condition is transmitted

while((TWSR & 0xF8)!= 0x08); // Check for the acknowledgement
}

 

RSS Recent Posts

  • How to repair this plug in connector where wires came loose May 17, 2025
  • Lightbox circuit May 17, 2025
  • Fuel Auto Shutoff May 17, 2025
  • Kawai KDP 80 Electronic Piano Dead May 17, 2025
  • Python help with keystroke entries May 17, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise