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.

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
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,086
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
 

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
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 :?:
 

mhk1982

Newbie level 4
Joined
May 1, 2008
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,307
interfacing

why dont use PIC 16F877A
it have all you need
 

boseji

Member level 1
Joined
Jul 2, 2007
Messages
34
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
1,491
interfacing

Hello,

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

Tamasco

Full Member level 3
Joined
Jun 27, 2006
Messages
155
Helped
10
Reputation
20
Reaction score
6
Trophy points
1,298
Activity points
2,083
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!
 

pceruz

Newbie level 3
Joined
May 30, 2008
Messages
4
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,310
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top