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/
|