Re: I2C interface.

Started by Jan Hansen March 15, 2006
Hi Rick,

so what do you get then? if the slave responds at all, one on them you will get;
ack and nack only describe the state of SDA and SCL. try to catch the I2STAT
register when interrupt service routine is called.

Jan
	________________________________

	Von: lpc2000@lpc2... [mailto:lpc2000@lpc2...] Im Auftrag von rick_frenz
	Gesendet: Mittwoch, 15. Mz 2006 05:52
	An: lpc2000@lpc2...
	Betreff: [lpc2000] I2C interface.
		Hi!I am interfacing EEPROM with LPC2138 through I2C engine.I do egt 
	acknowledgement for slave address but when I do send address and data 
	it simply doen't give me ack or nack.Can anyone help me out with this.
	
	Thank you.
		SPONSORED LINKS 
	Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=mfaAujKZXA2Z_vxre9sGnQ>
 	Microprocessor
<http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=9jjd2D3GOLIESVQssLmLsA>
 	Intel microprocessors
<http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=OMnZuqMZX95mgutt4B-tDw>
 	
	Pic microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=Malspbd0T4Rq3M4Q0nHrfw>
 	

________________________________

	> .
	________________________________
	

An Engineer's Guide to the LPC2100 Series

Hi Jan,
  as per ur suggestion i did monitored the content of I2STAT.sometimes it gives
nack in response to SLA+R/W or sometimes i do get ack.on getting ack when i
x'mit position address the I2STAT simply returns any random value which is not
being mentioned anywhere in data sheets.i hope Jan u would give me a solution
for this.
   
  Thank you.  

Jan Hansen <j...@j.ha...> wrote:
  Hi Rick,

so what do you get then? if the slave responds at all, one on them you will get;
ack and nack only describe the state of SDA and SCL. try to catch the I2STAT
register when interrupt service routine is called.

Jan
	________________________________

      Von: lpc2000@lpc2... [mailto:lpc2000@lpc2...] Im Auftrag von rick_frenz
      Gesendet: Mittwoch, 15. Mz 2006 05:52
      An: lpc2000@lpc2...
      Betreff: [lpc2000] I2C interface.
	      Hi!I am interfacing EEPROM with LPC2138 through I2C engine.I do egt 
      acknowledgement for slave address but when I do send address and data 
      it simply doen't give me ack or nack.Can anyone help me out with this.
      
      Thank you.
	      SPONSORED LINKS 
      Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=mfaAujKZXA2Z_vxre9sGnQ>
       Microprocessor
<http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=9jjd2D3GOLIESVQssLmLsA>
       Intel microprocessors
<http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=OMnZuqMZX95mgutt4B-tDw>
       
      Pic microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s&.sig=Malspbd0T4Rq3M4Q0nHrfw>
       

________________________________

      > .
	________________________________
	  SPONSORED LINKS 
        Microcontrollers   Microprocessor   Intel microprocessors     Pic
microcontrollers 
    
---------------------------------
  YAHOO! GROUPS LINKS
	---------------------------------
	---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.