3-17
Copyright 2008 Cirrus Logic, Inc.
DS732UM7
SPI Port
CS4953xx Hardware Users Manual
3.3.3.1 Performing a Serial SPI Write
Information provided in this section is intended as a functional description indicating how to perform an SPI write
from an external device (master) to the CS4953xx DSP (slave). The system designer must ensure that all timing
constraints of the SPI Write Cycle are met (see the CS4953xx datasheet for timing specifications). When performing
an SPI write, the same protocol is used whether writing single-word messages to the boot firmware, writing
multiple-word overlay images to the boot firmware, or writing multiple-word messages to the application firmware.
The example shown in this section can be generalized to fit any SPI write situation.
The flow diagram shown in
illustrates the sequence of events that define the SPI write protocol.
describes the Serial SPI Write protocol.
Figure 3-16. SPI Write Flow Diagram
3.3.3.2 SPI Write Protocol
1.
A SPI transfer is initiated when the chip select SCP1_CS is driven low. SCP1_CS driven low indicates that
CS4953xx is in SPI slave mode.
2.
This is followed by a 7-bit address and the read/write bit set low for a write. So, the master should send 0x80.
The 0x80 byte represents the 7-bit SPI address 1000000b, and the least significant bit set to ‘0’, designates a
write.
3.
The master should then clock the 4-byte data word into the slave device, most-significant bit first, one byte at a
time. The data byte is transferred to the CS4953xx DSP (slave) on the falling edge of the eighth serial clock. For
this reason, the serial clock should be held low so that eight transitions from low-to-high-to-low will occur for
each byte.
4.
If the master has no more data words to write to the CS4953xx, then proceed to Step 6. If the master has more
data words to write to the CS4953xx, then proceed to Step 5.
5.
The master should poll the SCP1_BSY signal until it goes high. If the SCP1_BSY signal is low, it indicates that
the CS4953xx is busy performing some task that requires halting the serial control port. Once the CS4953xx is
SPI START: SCP1_CS
(LOW)
WRITE ADDRESS BYTE
0x80
MORE DATA?
Y
N
WRITE 4 DATA BYTES
SPI STOP: SCP1_CS
(HIGH)
SCP1_BSY
(LOW)?
N
Y
Figure 3-15. SPI Write Flow Diagram
Summary of Contents for CS4953xx
Page 34: ...Softboot CS4953xx Hardware Users Manual DS732UM7 Copyright 2008 Cirrus Logic Inc 2 18 ...
Page 56: ...SPI Port CS4953xx Hardware Users Manual DS732UM7 Copyright 2008 Cirrus Logic Inc 3 22 ...
Page 58: ...CS4953xx Hardware Users Manual DS732UM7 Copyright 2008 Cirrus Logic Inc 4 2 ...
Page 118: ...Revision History CS4953xx Hardware Users Manual DS732UM7 Copyright 2008 Cirrus Logic Inc 9 30 ...