Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I2C Interface?

0 views
Skip to first unread message

Mike Yee

unread,
Aug 13, 1997, 3:00:00 AM8/13/97
to

Hi all,

I'm trying to use a pc to control/test some hardware using the I2C bus.
Could anyone point me in the direction of a good, relatively inexpensive
pc card (or other solution that's fairly quick)? Thanks in advance!

Mike

Matt Daughtrey

unread,
Aug 14, 1997, 3:00:00 AM8/14/97
to

I think Keithley Metrabyte have a card that speaks I2C. Check out one
of the search engines.

Antispamming invoked to protect the innocent.
XXX = com


Mika Iisakkila

unread,
Aug 14, 1997, 3:00:00 AM8/14/97
to

my...@nyx.net (Mike Yee) writes:
> I'm trying to use a pc to control/test some hardware using the I2C bus.
> Could anyone point me in the direction of a good, relatively inexpensive
> pc card (or other solution that's fairly quick)? Thanks in advance!

Slightly FAQ :-)

Look at <http://www.hut.fi/~iisakkil/stuff.html> for one reasonable
and free solution (schematics and C source)...
--
http://www.hut.fi/~iisakkil/ - remove the "no spam" -stuff from
mail address when replying

David R Brooks

unread,
Aug 14, 1997, 3:00:00 AM8/14/97
to

ma...@congruent.xxx (Matt Daughtrey) wrote:

:On Wed, 13 Aug 1997 22:25:32 -0600, my...@nyx.net (Mike Yee) wrote:
:
:>Hi all,

:>
:>I'm trying to use a pc to control/test some hardware using the I2C bus.


:>Could anyone point me in the direction of a good, relatively inexpensive
:>pc card (or other solution that's fairly quick)? Thanks in advance!

:>

You can bit-bang I2C out of a parallel port quite easily. You just
need a buffer ('125 will do) to mimic the open-collector for the SDA
line. SCL you can drive directly (I assume a single-master system).
I can email you some code if you're interested.


-- Dave Brooks <http://www.iinet.net.au/~daveb>
PGP public key: finger da...@opera.iinet.net.au
servers da...@iinet.net.au
fingerprint 20 8F 95 22 96 D6 1C 0B 3D 4D C3 D4 50 A1 C4 34
What's all this? see http://www.iinet.net.au/~daveb/crypto.html

John McDougall

unread,
Aug 14, 1997, 3:00:00 AM8/14/97
to

Mike Yee wrote:
>
> Hi all,
>
> I'm trying to use a pc to control/test some hardware using the I2C bus.
> Could anyone point me in the direction of a good, relatively inexpensive
> pc card (or other solution that's fairly quick)? Thanks in advance!
>
> Mike

If I remember correctly, is the I2C bus not just a serial interface.
Clk, din, dout, and maybe ce. If so, you could just wire this up to
a printer port.

David R Brooks

unread,
Aug 15, 1997, 3:00:00 AM8/15/97
to

In article <33f396ed....@news.m.iinet.net.au>,
da...@iinet.net.au (David R Brooks) wrote:
[snip]

> You can bit-bang I2C out of a parallel port quite easily. You just
> need a buffer ('125 will do) to mimic the open-collector for the SDA
> line. SCL you can drive directly (I assume a single-master system).
> I can email you some code if you're interested.
>

Following-up my own post :-), this code is now on my website. Jump on my
homepage <http://www.iinet.net.au/~daveb>, and follow the "Free Stuff"
link.

Enjoy!

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Matthias Weingart

unread,
Aug 15, 1997, 3:00:00 AM8/15/97
to

In article <m3wwlor...@saukko.pingrid.fi>, mi...@pingrid.fi.no.sp.am says...

>
>my...@nyx.net (Mike Yee) writes:
>> I'm trying to use a pc to control/test some hardware using the I2C bus.
>> Could anyone point me in the direction of a good, relatively inexpensive
>> pc card (or other solution that's fairly quick)? Thanks in advance!
>
>Slightly FAQ :-)
>
>Look at <http://www.hut.fi/~iisakkil/stuff.html> for one reasonable
>and free solution (schematics and C source)...

Or try my freeware I2C-software for win31/win95:
http://www.boerde.de/~matthias/delphi

Matthias


David S. Cooper

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to John McDougall

HI John,
I'm writing code for a PIC16C73 to control a front panel. The interface
to the host DSP board is through the I2C bus which is partually
implemented in that device. To help with the development we ordered, and
used a device from Micro Computer Control Corp. called the iPort. And I
quote,

"The MCC iPort RS-232 to I2C Host Adapter, when used in conjunction with
the MCC I2C Host Adapter Dynamic Linked Library (DLL) and appropriate
application software, allows a PC to become an I2C Master or Slave
deveice, transmiting or receiving I2C messages between the PC and one or
more I2C devices across an I2C Bus."

Yeah, yeah... they supply a windows based application that allows you to
read/write master/slave out a PC serial port. It worked well enough for
me to develop the master transmiter mode protocol (which must be
supported in software on this particular PIC device) for my project.
There WEB address is: http://www.mcc-us.com.

Good luck

John McDougall wrote:

> Mike Yee wrote:
> >
> > Hi all,
> >

> > I'm trying to use a pc to control/test some hardware using the I2C
> bus.
> > Could anyone point me in the direction of a good, relatively
> inexpensive
> > pc card (or other solution that's fairly quick)? Thanks in advance!
> >

> > Mike
>
> If I remember correctly, is the I2C bus not just a serial interface.
> Clk, din, dout, and maybe ce. If so, you could just wire this up to
> a printer port.

--
--------------------------------------------------------------
David S. Cooper
work: dco...@teletrac.com
http://www.silcom.com/~dcooper
home: dco...@rain.org

David S. Cooper

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to John McDougall

John Chris Wren

unread,
Aug 20, 1997, 3:00:00 AM8/20/97
to

Talk about unimpressed. I bought 2 of these, plus the LCD
based monitor device. The LCD works pretty well, but cannot have a
target address, nor can it source data. The "dongle" (iPort) has
never worked. I can send or receive 1 byte, and then the next byte is
0xff, and the bus is dead. Take loose the dongle and all works well
on my side of the bus.

Technical support? Hah! I've called three times, and never
got a call back. Even after mentioning it's rather urgent. So, I
would *not* recommend them in the least. They're also *way* over
priced for what you get.

If you're interested, somewhere in my bookmark file I have a
link to a paralell or serial port device you build yourself with just
less than 2 dozen parts. I haven't tried it, but it looks OK.

By the way, an interesting note if you're developing I2C code
based off of the Philips AN-430 (or AN-433?) multi-master 87c751
source code. It has some major problems if used as is. Supposedly,
there is a fix. I'm trying to track it down. The application note
states words to the effect "We've shorted the SDA and SCK to each
other, and either or both to ground and the bus always recovers".
This is not the case. I built a demo board for the "pong" demo in the
multi-master code, and it is easy to crash.

According to my local FAE, there is a one byte change that
will improve the code, but best results are by using the code they
haven't published but can be obtained from them. Alas, since Philips
is European in origin, they take the whole month of August off, even
in the US. So the guy in California who has the code can't be gotten
hold of.

Apparently, Philips is rather fragmented when it comes to I2C
support. They developed it, but since each group is like a little
company, they have a bad case of NIH (not invented here) inside each
group. There are no egineers dedicated to I2C, only what comes out of
eash group. Total lack of co-ordination. As the FAE said, "The
people who know the most about I2C are the lawyers, since they handle
the licensing".

- John


---
John "Chris" Wren, KD4DTS
jcw...@atlanta.com
770-945-8288 (H)
770-840-9200 x2417 (W)

By US Code Title 47, Sec.227(a)(2)(B), a computer/modem/printer
meets the definition of a telephone fax machine. By Sec.227(b)
(1)(C), it is unlawful to send any unsolicited advertisement to
such equipment, punishable by action to recover actual monetary
loss, or $500, whichever is greater, for EACH violation.

David R Brooks

unread,
Aug 21, 1997, 3:00:00 AM8/21/97
to

jcw...@atlanta.com (John "Chris" Wren) wrote:

[snip]
: If you're interested, somewhere in my bookmark file I have a


:link to a paralell or serial port device you build yourself with just
:less than 2 dozen parts. I haven't tried it, but it looks OK.

:
You can get such a schematic (and source code for 80x86, Z80 and
6805) from my website. URL below, follow the "free stuff" pointer.

Richard Steven Walz

unread,
Aug 22, 1997, 3:00:00 AM8/22/97
to

In article <33fcd023....@news.m.iinet.net.au>,
---------------------------------------
The Philips I2C software and their recommended pport schematic on my site's
I2C/ subdir, filenames: lpt-i2c.cct and pci2c.zip
-Steve
--
-Steve Walz rst...@armory.com ftp://ftp.armory.com:/pub/user/rstevew
-Electronics Site!! 1000 Files/50 Dirs!! http://www.armory.com/~rstevew
Europe:(Italy) ftp://ftp.cised.unina.it:/pub/electronics/ftp.armory.com
Oz:.AU ftp://ftp.peninsula.apana.org.au:/pub/electronics/ftp.armory.com

Ray Wickert

unread,
Aug 29, 1997, 3:00:00 AM8/29/97
to


On Thu, 14 Aug 1997 13:05:42 -0400, John McDougall <"johnm"@[no
spam]newbridge.com> wrote:

>Mike Yee wrote:
>>
>> Hi all,
>>
>> I'm trying to use a pc to control/test some hardware using the I2C bus.
>> Could anyone point me in the direction of a good, relatively inexpensive
>> pc card (or other solution that's fairly quick)? Thanks in advance!
>>
>> Mike
>
>If I remember correctly, is the I2C bus not just a serial interface.
>Clk, din, dout, and maybe ce. If so, you could just wire this up to
>a printer port.

You might want to refer to http://www.access.digex.net/~pha/. He has
some info on interfacing the PC parallel port and the Basic Stamp to
the I2C bus. A lot of that stuff is due to be in the 3rd manual.


David S. Cooper

unread,
Aug 29, 1997, 3:00:00 AM8/29/97
to Ray Wickert

You might also try

http://www.mcc-us.com

and look for the Model MIIC-201RS-232 to I2C Host Adapter

Ray Wickert wrote:

> You might want to refer to http://www.access.digex.net/~pha/. He has
> some info on interfacing the PC parallel port and the Basic Stamp to
> the I2C bus. A lot of that stuff is due to be in the 3rd manual.

--

Richard B Sagar

unread,
Sep 2, 1997, 3:00:00 AM9/2/97
to

> >Mike Yee wrote:
> >>
> >> Hi all,
> >>
> >> I'm trying to use a pc to control/test some hardware using the I2C bus.
> >> Could anyone point me in the direction of a good, relatively inexpensive
> >> pc card (or other solution that's fairly quick)? Thanks in advance!

The Philips Semiconductors web site has a host of useful i2c
information. Have a search on the webpage under:

http://www.semiconductors.philips.com/search/

In particular there is an FTP site which will allow you to download the
software you require (to access i2c via the parallel port). The index
can be found at:

http://www.PhilipsMCU.com/i2c.html

One of my collegues used the software and I believe it is implemented as
a windows DLL that you just link into your program. But I'm not the
expert, so go have a look for yourself :-)


> >If I remember correctly, is the I2C bus not just a serial interface.
> >Clk, din, dout, and maybe ce. If so, you could just wire this up to
> >a printer port.

Not wanting to preach, but just to clarify:
i2c is a _two_ wires bus. One line is for data (wired-OR bus), the
other wire is clock, again wired-OR, and also acts as handshake. Slower
nodes *stretch* the clock pulse to reduce the data rate to something
they can handle. Chip select and done by sending a 7-bit address word
as the first byte in the packet sent over the bus. The RD/WR signal
occupies the last bit of the byte. It's a dead cool protocol.

Cheers,

Rik.


_________________________________________________________
Opinions expressed are mailto:r...@apg.philips.com
probably not mine and http://www.philips.com
definitely not the
company's

(DNRC)
(JSAS)

0 new messages