ts-7000
[Top] [All Lists]

[ts-7000] SPI - TS7500

To:
Subject: [ts-7000] SPI - TS7500
From: Ferrug <>
Date: Thu, 28 Oct 2010 22:30:08 -0200


Hello, I'm making a statement of my ts7500 "kit" with an ADC by SPI.
Someone tell me if I'm doing something wrong? He always returns the same three characters. The code is below. The ADC is the AD7193.

//part 1:
sbuslock();
setdiopin(33, 0); ////out 1 down  'CS on'
sbusunlock();
system("spictl -c 10000 -e 1 -w 10:040110:08:280001");

sbuslock();
setdiopin(33, 1); ////out 1 up  'CS off'
sbusunlock();


//part 2
sbuslock();
setdiopin(33, 0); ////out 1 down  'CS on'
sbusunlock();
system("spictl -c 10000 -e 1 -w 58");  // Request to read the data recorder
system("spictl -c 10000 -e 1 -r 3");  // Reading

sbuslock();
setdiopin(33, 1); ////out 1 up  'CS off'
sbusunlock();


The first part I use to parameterize it. The second I make an application to read and read. I'm using the output 1 as a CS.

Thanks ..
Fabio

--
"Dê-me uma alavanca e um bom ponto de apoio que moverei o mundo." Archimedes


__._,_.___


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