Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
09-13-2004, 12:07 AM
|
#1
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Vehicle: 2004 Toyota 4Runner
Posts: 1,969
|
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.
|
|
|
09-13-2004, 12:26 AM
|
#2
|
|
Jesus Freak
Join Date: Jan 2004
Location: California
Vehicle: 2006 Mazda Mazdaspeed 6 GT
Posts: 4,275
|
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
|
|
|
09-13-2004, 12:36 AM
|
#3
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Vehicle: 2004 Toyota 4Runner
Posts: 1,969
|
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.
|
|
|
09-13-2004, 01:37 AM
|
#4
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
http://www.devasys.com/usbi2cio.htm
You can pick one of these up to test with.
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
|
|
|
09-13-2004, 01:46 AM
|
#5
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
|
|
|
09-13-2004, 01:49 AM
|
#6
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
|
|
|
09-13-2004, 01:51 AM
|
#7
|
|
Maximum Bitrate
Join Date: Jul 2004
Location: Northern Virginia, USA
Vehicle: 2001 Dodge Durango RT
Posts: 683
|
Quote: Originally Posted by frodobaggins
That looks nice, kinda pricey though!
__________________
[color=Navy][size=1][font=Comic Sans MS] Tektility
|
|
|
09-13-2004, 01:53 AM
|
#8
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
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.
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
|
|
|
09-13-2004, 02:16 AM
|
#9
|
|
Maximum Bitrate
Join Date: Jul 2004
Location: Northern Virginia, USA
Vehicle: 2001 Dodge Durango RT
Posts: 683
|
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
|
|
|
09-13-2004, 07:51 AM
|
#10
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Vehicle: 2004 Toyota 4Runner
Posts: 1,969
|
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?
|
|
|
09-13-2004, 08:18 AM
|
#11
|
|
Low Bitrate
Join Date: Apr 2004
Location: Genova, I
Vehicle: 1998 Honda Integra TypeR
Posts: 92
|
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.
__________________
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
|
|
|
09-13-2004, 08:43 AM
|
#12
|
|
Maximum Bitrate
Join Date: Jun 2004
Location: Athens Greece
Posts: 841
|
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. 
|
|
|
09-13-2004, 10:09 AM
|
#13
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Vehicle: 2004 Toyota 4Runner
Posts: 1,969
|
@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.
Last edited by rando : 09-13-2004 at 10:12 AM.
|
|
|
09-13-2004, 10:23 AM
|
#14
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
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
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
|
|
|
09-13-2004, 10:56 AM
|
#15
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Vehicle: 2004 Toyota 4Runner
Posts: 1,969
|
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. 
Last edited by rando : 09-13-2004 at 10:58 AM.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:21 PM.
|
|