ts-7000
[Top] [All Lists]

[ts-7000] 24 bit SPI

To:
Subject: [ts-7000] 24 bit SPI
From: "mailorder_va" <>
Date: Mon, 10 May 2010 17:47:57 -0000
Hello:

I need to control a SPI slave that needs to be written with 24 bits of data. It 
also requires that exactly 24 bits be written before the sync bus is toggled. I 
have thought of ways I could do this, but not sure if these will work. If 
anyone has tried any of these, let me know:

1. 
a. Prime the SPI register with 8 bit data length
b. disable SPI 
c. write 3 8 bit values
d. make the chip select line (DIO) low
e. enable SPI (should start the write process)
f. Wait until write is complete (look for busy bit) 
g. make chip select (DIO) high
h. go to set b.

2.
a. Prime the SPI register with 8 bit data length
b. make the chip select line (DIO) low
 c1. write 8 bit value
 d1. Wait until write is complete (look for busy bit) 
 c2. write 8 bit value
 d2. Wait until write is complete (look for busy bit) 
 c3. write 8 bit value
 d3. Wait until write is complete (look for busy bit) 
e. make chip select (DIO) high
f. go to set b.

Which of these work? If I want to write multiple data values before enabling 
SPI, which address should be used?

Thanks





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

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>
  • [ts-7000] 24 bit SPI, mailorder_va <=
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