5-24
DSP56009 User’s Manual
MOTOROLA
Serial Host Interface
SHI Programming Considerations
5.6.1
SPI Slave Mode
The SPI Slave mode is entered by enabling the SHI (HEN = 1), selecting the SPI mode
(HI
2
C = 0), and selecting the Slave mode of operation (HMST = 0). The programmer
should verify that the CPHA and CPOL bits (in the HCKR) correspond to the
external host clock phase and polarity. Other HCKR bits are ignored. When
configured in the SPI Slave mode, the SHI external pins operate as follows:
• SCK/SCL is the SCK serial clock input.
• MISO/SDA is the MISO serial data output.
• MOSI/HA0 is the MOSI serial data input.
• SS/HA2 is the SS Slave Select input.
• HREQ is the Host Request output.
In the SPI Slave mode, a receive, transmit, or full-duplex data transfer may be
performed. Actually, the interface simultaneously performs both data receive and
transmit. The status bits of both receive and transmit paths are active, however, the
programmer may disable undesired interrupts and ignore non-relevant status bits. It
is recommended that an SHI individual reset (HEN cleared) be generated before
beginning data reception in order to reset the HRX FIFO to its initial (empty) state
(e.g., when switching from transmit to receive data).
If a write to HTX occurs, its contents are transferred to IOSR between data word
transfers. The IOSR data is shifted out (via MISO) and received data is shifted in (via
MOSI). The DSP may write HTX if the HTDE status bit is set. If no writes to HTX
occurred, the contents of HTX are not transferred to IOSR, so the data that is shifted
out when receiving is the same as the data present in the IOSR shift register at the
time. The HRX FIFO contains valid receive data, which may be read by the DSP, if
the HRNE status bit is set.
The HREQ output pin, if enabled for receive (HRQE1–HRQE0 = 01), is asserted when
the IOSR is ready for receive and the HRX FIFO is not full; this operation guarantees
that the next received data word will be stored in the FIFO. The HREQ output pin, if
enabled for transmit (HRQE1–HRQE0 = 10), is asserted when the IOSR is loaded
from HTX with a new data word to transfer. If HREQ is enabled for both transmit
and receive (HRQE1–HRQE0 = 11), it is asserted when the receive and transmit
conditions are true simultaneously. HREQ is deasserted at the first clock pulse of the
next data word transfer. The HREQ line may be used to interrupt the external master
device. Connecting the HREQ line between two SHI-equipped DSPs, one operating
as an SPI master device and the other as an SPI slave device, enables full hardware
handshaking if operating with CPHA = 1.
Содержание DSP56009
Страница 19: ...MOTOROLA DSP56009 User s Manual 1 1 SECTION 1 OVERVIEW ...
Страница 38: ...1 20 DSP56009 User s Manual MOTOROLA Overview DSP56009 Architectural Overview ...
Страница 39: ...MOTOROLA DSP56009 User s Manual 2 1 SECTION 2 SIGNAL DESCRIPTIONS ...
Страница 64: ...2 26 DSP56009 User s Manual MOTOROLA Signal Descriptions On Chip Emulation OnCETM Port ...
Страница 65: ...SECTION 3 MEMORY OPERATING MODES AND INTERRUPTS ...
Страница 84: ...3 20 DSP56009 User s Manual MOTOROLA Memory Operating Modes and Interrupts Hardware Reset Operation ...
Страница 85: ...MOTOROLA DSP56009 User s Manual 4 1 SECTION 4 EXTERNAL MEMORY INTERFACE ...
Страница 149: ...MOTOROLA DSP56009 User s Manual 5 1 SECTION 5 SERIAL HOST INTERFACE ...
Страница 154: ...5 6 DSP56009 User s Manual MOTOROLA Serial Host Interface Serial Host Interface Programming Model ...
Страница 180: ...5 32 DSP56009 User s Manual MOTOROLA Serial Host Interface SHI Programming Considerations ...
Страница 181: ...MOTOROLA DSP56009 User s Manual 6 1 SECTION 6 SERIAL AUDIO INTERFACE ...
Страница 207: ...MOTOROLA DSP56009 User s Manual 7 1 SECTION 7 GENERAL PURPOSE INPUT OUTPUT ...
Страница 212: ...7 6 DSP56009 User s Manual MOTOROLA General Purpose Input Output GPIO Register GPIOR ...
Страница 220: ...A 8 DSP56009 User s Manual MOTOROLA Bootstrap ROM Contents ...
Страница 221: ...MOTOROLA DSP56009 User s Manual B 1 APPENDIX B PROGRAMMING REFERENCE ...
Страница 250: ...B 30 DSP56009 User s Manual MOTOROLA Programming Reference ...
Страница 251: ...MOTOROLA DSP56009 User s Manual C 1 APPENDIX C APPLICATION EXAMPLES ...
Страница 262: ...C 12 DSP56009 User s Manual MOTOROLA Application Examples ...
Страница 269: ...MOTOROLA DSP56009 User s Manual C 1 APPENDIX C APPLICATION EXAMPLES ...
Страница 280: ...C 12 DSP56009 User s Manual MOTOROLA Application Examples ...