ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: SPI kernel driver sample code?

To:
Subject: Re: [ts-7000] Re: SPI kernel driver sample code?
From: Mika Westerberg <>
Date: Mon, 6 Sep 2010 09:21:29 +0300
On Mon, Sep 06, 2010 at 02:55:21AM -0000, Blair wrote:
> The optional temp sensor on the 7350 is also an SPI device and the source is 
> available at the TS ftp site but clearly there is more than meets the eye 
> with SPI.
> 
> On the surface it sounds simple enough.  Write configuration data.  
> Manipulate the chip select GPIO line, read back the data.  Not working right.

Yeah, having oscilloscope or logic analyzer helps a lot here.

> The ADC chip is 12 bits so I would think you's configure the interface for 12 
> bits but the gentleman who posted the code has it set up for 8 bits and does 
> MSB and LSB reads.  Plus there's some other weird writes I don't understand 
> going on there.
> 
> And the spitest code found in the kernel docs doesn't run.  Someone else had 
> the same problem on linuxquestions.org but didn't get an answer.

Are you using ep93xx_spi driver and spidev on top of that or what
kind of setup you have? How the spitest code fails to run?

MW


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

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