ts-7000
[Top] [All Lists]

[ts-7000] Re: I2C interface on TS-7500

To:
Subject: [ts-7000] Re: I2C interface on TS-7500
From: "jonatan_olofsson" <>
Date: Thu, 16 Dec 2010 20:13:36 -0000
I'm still trying to figure out a few things about I2C communication.. Long 
story short, i can't get it to work.

First off, does anyone know what actually happens when data is read/sent 
through the registers? What acks/nacks are sent?
>From what i gathered from taking my TS-7500 to a logic analyzer today in 
>school, it sends start/stop conditions (and it appears to send data..)

Part of why i'm asking is, when receiving or sending data, i read/write from/to 
32 byte registers. The device i need to interface sends data a 6 byte format, 
so i would need to be able to read that, and i'm not quite sure what happens if 
the TS sends stop conditions after just four bytes..

I really can't find any documentation on this.. I have the cavium datasheet 
with some register addresses, but still this says nothing of what actually 
happens on the bus, or how i can actually use the I2C interface..

I would be tremendously grateful for hints on this, or documentation. Or code, 
for that matter.

Best regards,
Jonatan Olofsson

--- In  "Kris" <> wrote:
>
> The i2ctemp.c example on our FTP site 
> (ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7500-linux/samples/i2ctemp.c) will 
> not work on the TS-7500 as the temp sensor on the TS-752 is SPI.  It is 
> however a generic example of using the I2C hardware in the Cavium CPU.  We 
> attempted to use the Linux kernel interface to I2C however it will not even 
> communicate correctly with our I2C temp sensor.  
> 
> This sample code is going to be the most efficient way of interfacing with 
> I2C unless you want to bit-bang the data out of DIOs which will be much 
> slower since you have to go through the SBUS to access the DIO pins.
> 
> -Kris Bahnsen
> Technologic Systems
> 
> 
> --- In  "jonatan_olofsson" <jonatan.olofsson@> wrote:
> >
> > Hi,
> > 
> > First of all, thanks for the interesting discussions going on on this forum.
> > 
> > I'm trying to get the I2C interface working on my TS-7500. There is a 
> > simple example available on the TS ftp, which unfortunately seems a bit 
> > (way) too simple. So my question is, is there anyone who has written code 
> > for using the TWI interface, or do i have to write my own implementation?
> > 
> > Anyone got I2C working already who can give any pointers or hints?
> > 
> > Best regards,
> > Jonatan Olofsson
> >
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU