Serial Host Interface
SHI Programming Considerations
MOTOROLA
DSP56009 User’s Manual
5-27
ninth clock pulse via the SDA line. Data is acknowledged bytewise, as required by
the I
2
C bus protocol, and is transferred to the HRX FIFO when the complete word
(according to HM0–HM1) is filled into IOSR. It is the responsibility of the
programmer to select the correct number of bytes in an I
2
C frame so that they fit in a
complete number of words. For this purpose, the slave device address byte does not
count as part of the data, and therefore, it is treated separately.
In a receive session, only the receive path is enabled and HTX to IOSR transfers are
inhibited. The HRX FIFO contains valid data, which may be read by the DSP if the
HRNE status bit is set. When the HRX FIFO is full and IOSR is filled, an overrun
error occurs and the HROE status bit is set. In this case, the last received byte will not
be acknowledged (ACK = 1 is sent) and the word in the IOSR will not be transferred
to the HRX FIFO. This may inform the external I
2
C master device of the occurrence of
an overrun error on the slave side. Consequently the I
2
C master device may
terminate this session by generating a Stop event.
The HREQ output pin, if enabled for receive (HRQE1–HRQE0 = 01), is asserted when
the IOSR is ready to receive and the HRX FIFO is not full; this operation guarantees
that the next received data word will be stored in the FIFO. HREQ is deasserted at the
first clock pulse of the next received word. The HREQ line may be used to interrupt
the external I
2
C master device. Connecting the HREQ line between two
SHI-equipped DSPs, one operating as an I
2
C master device and the other as an I
2
C
slave device, enables full hardware handshaking.
5.6.3.2
Transmit Data In I
2
C Slave Mode
A transmit session is initiated when the personal slave device address has been
correctly identified and the R/W bit of the received slave device address byte has
been set. Following a transmit initiation, the IOSR is loaded from HTX (assuming the
latter was not empty) and its contents are shifted out, MSB first, on the SDA line.
Following each transmitted byte, the SHI controller samples the SDA line at the ninth
clock pulse, and inspects the ACK status. If the transmitted byte was acknowledged
(ACK = 0), the SHI controller continues and transmits the next byte. However, if it
was not acknowledged (ACK = 1), the transmit session is stopped and the SDA line is
released. Consequently, the external master device may generate a Stop event in
order to terminate the session.
HTX contents are transferred to IOSR when the complete word (according to
HM0–HM1) has been shifted out. It is, therefore, the responsibility of the
programmer to select the correct number of bytes in an I
2
C frame so that they fit in a
complete number of words. For this purpose, the slave device address byte does not
count as part of the data, and therefore, it is treated separately.
Содержание 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 ...