IPB


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
SPI devices on i2c bus
Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
Guest_Venkatesh_*
post Sep 9 2005, 05:49 AM
Post #1





Guests






I'am using a ADE7758 chip for Energy monitering in my application.This is having a SPI interface.

But my controller is having an i2c port.....So i need to connect an spi device to a i2c bus.....

can anybody help me out ........???
Go to the top of the page
 
+Quote Post
marke
post Sep 9 2005, 06:24 AM
Post #2


Posting Freak
******

Group: Moderator
Posts: 2,099
Joined: 24-April 02
From: Christchurch, New Zealand
Member No.: 1



Hello Venkatesh

Welcome to the forum.

The SPI bus and I2C bus are totally different bus systems. If the micro does not support the SPI device, you can create a software routine to drive the SPI device. This will be a lot more processor intensive than a hardware interface would be. You need to "bit bash" the protocol. That means that you toggle the clock line by setting the bit ON and OFF and you either toggle the output data line or read the input data line at the correct clock polarity. You do not use any of the I2C hardware to do this. If you are using the I2C for other devices, you should use alternative port pins to talk to the SPI device.

Best regards,


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 rss_aggregator 105 26th April 2008 - 11:45 AM
Last post by: rss_aggregator
No New Posts   0 rss_aggregator 102 26th April 2008 - 11:50 AM
Last post by: rss_aggregator
No New Posts   0 rss_aggregator 3 Today, 06:54 AM
Last post by: rss_aggregator



RSS Lo-Fi Version Time is now: 21st November 2008 - 07:33 PM
hosted by : L M Photonics Ltd