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.
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.
--- In walter marvin <> wrote:
>
> The 7500 has sample code for a TCP server for its spiflash device
>
>
>
>
> ________________________________
> From: Blair <>
> To:
> Sent: Sun, September 5, 2010 11:20:24 AM
> Subject: [ts-7000] Re: SPI kernel driver sample code?
>
> Â
> I'm trying to talk to a Microchip MCP3204 ADC. I started with the MCP3208 code
> posted earlier but it's not working right. I am getting values back but I'm
> clearly missing data bits. This is my first attempt at rolling my own SPI
> device
> so I have a lot to learn.
>
> --- In Mika Westerberg <mika.westerberg@> wrote:
> >
> > Hi,
> >
> > On Wed, Sep 01, 2010 at 04:58:03PM -0000, Blair wrote:
> > > Anyone know where I can find sample code that uses the EP93XX SPI kernel
> >driver? This would be on a 7350. I'm hoping to run this thing faster than
> >using
> >/dev/mem.
> >
> > There's a sample code in Documentation/spi/spidev_test.c maybe you can adapt
> > it suitable for you needs. BTW, what are you hooking into the bus?
> >
> > Regards,
> > 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/
|