ts-7000
[Top] [All Lists]

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

To: "" <>
Subject: Re: Re: [ts-7000] 7260 SPI C Programming Example [1 Attachment]
From: Wouter Simons <>
Date: Thu, 29 Jul 2010 13:49:29 +0200
<*>[Attachment(s) from Wouter Simons included below]

ïSounds like you are trying to use a technique called bit banging. The
communication works like this:

:start-loop
- Clock signal set to logical 1
- Slave starts to do do the work it was built for and makes data
available for sending.
- Clock signal set to logical 0
- Master receives and processes data
goto start-loop

The explanation here is a bit too simplistic, but you can read more
about it at:
 http://en.wikipedia.org/wiki/Bit-banging

and about how the clock works on a serial interface like SPI:
 http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
Note the pictures about the clock signals and the different options that
may exist. It sounds like you need: CPOL=0 and CPHA=0

All the best,

Wouter

On Thu, 2010-07-29 at 07:14 +0000, yavin229 wrote:
>   
> 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 Wouter Simons:


<*> 1 of 1 File(s) 
http://groups.yahoo.com/group/ts-7000/attachments/folder/844538010/item/list 
  <*> winmail.dat

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

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