interfacing two I2C - how to convert SPI do I2C?

Status
Not open for further replies.

sonia sharma

Newbie level 6
Joined
May 15, 2008
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
INDIA
Activity points
1,378
interfacing

Hi all,

I am working on aproject where i have to interface two I2C.but at the microcontroller side i have only SPI.
Kindly suggest me a solution how can i convert SPI to I2C as soon as possible.

Thanks
Sonia
 

Re: interfacing

please specify which IC you want to interface. what is the problem in using SPI in that case. Are you specific in using I2c only
 

Re: interfacing

A MARVELL controller having I2C interface act as a master,which i have to interface with MAXIM IC having SPI ACT AS A SLAVE.

Added after 7 minutes:

how can i make an interface between SPI and I2C :?:
 

interfacing

why dont use PIC 16F877A
it have all you need
 

interfacing

Hello,

SPI and I2C are two fundamentally different bus systems. You can probably implement a software I2C slave.
 

interfacing

If u have an I2C device then your best option is to use a software implimentation of the I2C protocol.
It's not difficult to do!
 
Re: interfacing

I2C and SPI are different bus interfaces.
Make a SW implementation, you can find sw examples on internet
Check this websites:
www. Embedded.com and look for tis article "Introduction to I2C"
In attach you can find the I2C bus specification
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…