EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

I2C code for LPC2148

Started by Sutton Mehaffey March 6, 2006
I am trying to use a RAMTRON Serial Memory chip using I2C.  I have
grounded the Address lines for a 000 address as well as the WP (write
protect line).  Does someone have a small I2C sample code showing how
to manipulate the SDA and SCL lines properly and feed the data?  Does
the I2C code have to use an interrupt?  If no, is it preferable?  Just
looking for options and a few hints as I experiment with I2C for the
first time.  Thanks.

Sutton
	

An Engineer's Guide to the LPC2100 Series

> I am trying to use a RAMTRON Serial Memory chip using I2C.  I 
> have grounded the Address lines for a 000 address
as well as 
> the WP (write protect line).  Does someone have a small I2C 
> sample code showing how to manipulate the SDA and SCL lines 
> properly and feed the data?  Does the I2C code have to use an 
> interrupt?  If no, is it preferable?  Just looking for 
> options and a few hints as I experiment with I2C for the 
> first time.  Thanks.

From memory the Ramtron's are identical communications to s serial
Eeprom (just faster). I have used the I2C on an 8051 to talk to a
Ramtron and it's pretty standard stuff. You might be able to find
something already around on the web.

Cheers,
Bruce

--- In lpc2000@lpc2..., "Sutton Mehaffey" <sutton@...>
wrote:
>
> I am trying to use a RAMTRON Serial Memory chip using I2C.  I have
> grounded the Address lines for a 000 address as well as the WP (write
> protect line).  Does someone have a small I2C sample code showing how
> to manipulate the SDA and SCL lines properly and feed the data?  Does
> the I2C code have to use an interrupt?  If no, is it preferable?  
Just
> looking for options and a few hints as I
experiment with I2C for the
> first time.  Thanks.
> 
> Sutton
>

Sutton,
    There are many examples in the "Files" area, check the one 
uploaded by Philips Apps.
	
hi bruce,

   there is a document from philips for a 8051 microcontroller which 
explains all about the interface philips provides for its I2C 
controller.u can refer to it as i have done my work refering to the 
same document.search for the document 8XC552_562OVERVIEW_2.it has all 
the info .
 >>ashish
	
Dear All,

I am starting with ARM , please guide me what to do in the begining, i am
having experience in microcontrollers 8 and 16 bits.

waiting for urs response

Regards

Sushil
	
	

The 2024 Embedded Online Conference