ts-7000
[Top] [All Lists]

[ts-7000] SPI interface observation

To:
Subject: [ts-7000] SPI interface observation
From: "Blair" <>
Date: Mon, 11 Oct 2010 15:54:08 -0000
In wrestling with the SPI interface (on a 7350 but it's really the Cirrus 
processor) talking to a Microchip ADC (MCP3202, MCP3204, MCP3208) I have 
observed that the Cirrus processor won't generate clock pulses needed by the 
ADC device to transmit its data unless there is something in the processor's 
transmit buffer.  I didn't see this fact documented in the Cirrus documentation 
anywhere.

The Microchip devices say they want commands right-justified which is partially 
true.  The device will work if the data isn't but the trailing bits will cause 
SPI clock pulses to be generated but not enough to complete the receiving word 
so you end up with a few MSB bits.

In addition, the timing of the device is a little funky in that fully 
right-justified data results in the bit 11 of the ADC sample value to be 
missed.  My hackish solution is to right-justify the command value and shift it 
left one bit.

But then things get weird.  Even though I can see the ADC sample value being 
clocked on a logic analyzer, I don't get the data in the SPI data buffer right 
away.  I have to wait until the receive buffer is not empty (via the SPI status 
register), peek the value (which is 0), wait until the receive buffer is not 
empty again and peek the value again.




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

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