Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 09-13-2004, 01:07 AM   #1
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
I2C (not SMBus) SW interface for M10k?

Can anyone tell me if there is a true I2C host adapter on board the M10k and, more importantly, point me to some reference information and/or code that describes it?

As part of Seth's AM/FM RDS radio project, I've been working on the basic I2C interface driver. Some of you are aware, we were planning to hook the boards up to the M10k I2C header for development/testing, before we waste any time developing a USB to I2C bridge.

Based on my weekend of research, the only public control interface for the M10K I2C port implements the SMBus protocols only. Basically all the code or discussion threads I've found point back to the Linux i2c-viapro.c driver. That driver and the underlying control interface is essentially a clone of the Intel PIIX4 SMBus. I have a port of the Linux driver in Windows running in user space. It communicates with the underlying hardware through the Numega portio.sys sample driver from the MS DDK. This code works fine and correctly issues SMBus commands on the bus without any problems.

SMBus is unfortunately only a subset of the full I2C bus. While it's possible to implement SMBus on top of the general I2C interface, the reverse is not possible. In the case of our tuner and signal processor ICs, the commands required cannot be contructed from the SMBus protocol primitives. We need native I2C (Start, Stop, Ack, Nack, Set/Clear Data, Set/Clear Clock), or at least something lower level than what SMBus offers.
__________________
2004 4runner
rando is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-13-2004, 01:26 AM   #2
Jesus Freak
 
antimatter's Avatar
 
Join Date: Jan 2004
Location: California
Posts: 4,273
antimatter is on a distinguished road
Crapola.... I knew there was some funky business with the via's implimentation of the I2C.

Good luck in finding what you need Rando
__________________
-Jesus- King of Kings Lord of Lords
antimatter is offline   Reply With Quote
Old 09-13-2004, 01:36 AM   #3
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Well don't lose sleep over it or anything dude.

We can always bitbang over the parallel port for initial testing. It doesn't look impossible to implement though performance will surely suck -- not that performance will be an issue in this case. The I/O interface sits idle except when you issue a command to change something. Even then, it's only a handful of bytes.
__________________
2004 4runner
rando is offline   Reply With Quote
Old 09-13-2004, 02:37 AM   #4
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
http://www.devasys.com/usbi2cio.htm

You can pick one of these up to test with.
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-13-2004, 02:46 AM   #5
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
Or rs232 to i2c
http://www.emicros.com/i2c232.htm
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-13-2004, 02:49 AM   #6
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
http://www.ftdichip.com/FTProject.htm
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-13-2004, 02:51 AM   #7
Maximum Bitrate
 
GruvThang's Avatar
 
Join Date: Jul 2004
Location: Northern Virginia, USA
Posts: 683
GruvThang is on a distinguished road
Quote: Originally Posted by frodobaggins
http://www.devasys.com/usbi2cio.htm

You can pick one of these up to test with.

That looks nice, kinda pricey though!
__________________
[COLOR=Navy][SIZE=1][FONT=Comic Sans MS]Tektility
GruvThang is offline   Reply With Quote
Old 09-13-2004, 02:53 AM   #8
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
Quote: Originally Posted by GruvThang
That looks nice, kinda pricey though!

I'm not suggesting things for production, just so he can have something
to test his chips out with.
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-13-2004, 03:16 AM   #9
Maximum Bitrate
 
GruvThang's Avatar
 
Join Date: Jul 2004
Location: Northern Virginia, USA
Posts: 683
GruvThang is on a distinguished road
I am not thinking that it would be for production, it is just pricey for what the unit actually does, the rs232 is not any cheaper, they do offer "ease" of testing though!
__________________
[COLOR=Navy][SIZE=1][FONT=Comic Sans MS]Tektility
GruvThang is offline   Reply With Quote
Old 09-13-2004, 08:51 AM   #10
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
OK, maybe I wasn't clear in the original post. I'm not looking for an alternate interface -- I'm aware that there are many options. The question is the M10K. Does it or doesn't it support native I2C over its (supposed) I2C header?
__________________
2004 4runner
rando is offline   Reply With Quote
Old 09-13-2004, 09:18 AM   #11
Low Bitrate
 
BeamRider's Avatar
 
Join Date: Apr 2004
Location: Genova, I
Posts: 92
BeamRider is on a distinguished road
I was interested in playing with EPIA I2C sometime ago. Looking for windows support (MS I2C APIs are used for video DDC only) I've found this package but I haven't tested it. Hope this helps.
Attached Files
File Type: zip M1000I2C.zip (51.8 KB, 245 views)
__________________

Installation: 90% complete - fiberglassing
EPIA M10000 - 512Mb - 20GB
Lilliput 7" TS - Opus 150W PCB - DLink USB Radio - slim CD-ROM - SoundBlaster MP3+ - not so crappy 40x4 Amp - BU303 GPS (waiting for) - BT support
BeamRider is offline   Reply With Quote
Old 09-13-2004, 09:43 AM   #12
Maximum Bitrate
 
Seth's Avatar
 
Join Date: Jun 2004
Location: Athens Greece
Posts: 836
Seth is on a distinguished road
Thanks BeamRider but rando has already looked into that. It's not exactly what we are looking for. We tend to belive that VIA is misleading when using the name "I2C" for that port and that the underlying controller (VT1211) supports only the SMBus command subset.
We're investigating though and we could use all the help we can get. That means that if someone has an "inside" VIA connection we could use his/hers help.
Seth is offline   Reply With Quote
Old 09-13-2004, 11:09 AM   #13
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
@Beamrider: That code is essentially a port of the i2c-viapro driver from the Linux LM-Sensors project (now integrated with most Linux Kernel distros). It implements an SMBus client library on top of the SMBus host controller inside the M10k. It's basically the code I was referring to in the original post #1.

What we're looking for is some code or documents that describe the I2C host controller -- if it exists at all.

@Seth: If I understand things correctly, the VT1211 is not the underlying I2C host adapter. Rather it's an I2C sensor client. At least in the SMBus case, the Southbridge implements the host adapter. I guess it's possible the VT1211 also implements a I2C host adapter but perusing the Linux drivers for that chip doesn't suggest that's the case.
__________________
2004 4runner

Last edited by rando; 09-13-2004 at 11:12 AM.
rando is offline   Reply With Quote
Old 09-13-2004, 11:23 AM   #14
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
Quote: Originally Posted by rando
OK, maybe I wasn't clear in the original post. I'm not looking for an alternate interface -- I'm aware that there are many options. The question is the M10K. Does it or doesn't it support native I2C over its (supposed) I2C header?

I realize what you are doing. But I believe from the literature that I've read
that you will not be able to use the i2c port on the M10K. Thus to test your
chips you will need an alternate interface to work with during initial test.
I was trying to help you find the most efficient route for doing so.

Frodo
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-13-2004, 11:56 AM   #15
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by frodobaggins
.. I believe from the literature that I've read
that you will not be able to use the i2c port on the M10K.

From what I've seen so far, I agree. But I cannot be certain without additional information. Can you provide a reference to this literature? Thanks for the help ... post whore.
__________________
2004 4runner

Last edited by rando; 09-13-2004 at 11:58 AM.
rando is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 03:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics