ts-7000
[Top] [All Lists]

Re: [ts-7000] 7260 SPI C Programming Example [1 Attachment]

To:
Subject: Re: [ts-7000] 7260 SPI C Programming Example [1 Attachment]
From: Razvan-Ionut Stoian <>
Date: Thu, 29 Jul 2010 19:00:07 -0700 (PDT)
[Attachment(s) from Razvan-Ionut Stoian included below]

I once interfaced an external ADC (MCP3208) via SPI, Try the files in the attachment (peekpoke.h, spi.h and ringbuffer.h and other source files were taken from TS ftp server and other sources).
The coding style would make a professional programmer pretty unhappy, but the code does the job.

R.

--- On Thu, 7/29/10, yavin229 <> wrote:

From: yavin229 <>
Subject: [ts-7000] 7260 SPI C Programming Example
To:
Date: Thursday, July 29, 2010, 3:14 AM

 

Hi, I am trying to find some samples of code that exemplifies how to access the output of a device on the SPI bus. I have everything physically connected and as I understand it, I need to set one of the DIO channels (CS?) high to signal a conversion on my slave device. That part should be simple enough but the requirement to "Force the CS low to stop the conversion and apply a clock signal at SCK to read the results at SO" have me stumped. Not sure how to set apply a clock signal and read the results. If anyone is able to point me in the right direction I would greatly appreciate it! Thanks!



Attachment(s) from Razvan-Ionut Stoian

1 of 1 File(s)


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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