Serial Host Interface
SHI Programming Considerations
MOTOROLA
DSP56367
9-27
9.7.4
I
2
C MASTER MODE
The I
2
C master mode is entered by enabling the SHI (HEN=1), selecting the I
2
C mode
(HI
2
C=1) and selecting the master mode of operation (HMST=1). Before enabling the SHI as
an I
2
C master, the programmer should program the appropriate clock rate in HCKR.
When configured in the I
2
C master mode, the SHI external pins operate as follows:
•
SCK/SCL is the SCL open drain serial clock output.
•
MISO/SDA is the SDA open drain serial data line.
•
MOSI/HA0 is the HA0 slave device address input.
•
SS/HA2 is the HA2 slave device address input.
•
HREQ is the Host Request input.
In the I
2
C master mode, a data transfer session is always initiated by the DSP by writing to the
HTX register when HIDLE is set. This condition ensures that the data byte written to HTX is
interpreted as being a slave address byte. This data byte must specify the slave device address
to be selected and the requested data transfer direction.
Note:
The slave address byte should be located in the high portion of the data word,
whereas the middle and low portions are ignored. Only one byte (the slave address
byte) is shifted out, independent of the word length defined by the HM[1:0] bits.
In order for the DSP to initiate a data transfer the following actions are to be performed:
•
The DSP tests the HIDLE status bit.
•
If the HIDLE status bit is set, the DSP writes the slave device address and the R/W bit
to the most significant byte of HTX.
•
The SHI generates a start event.
•
The SHI transmits one byte only, internally samples the R/W direction bit (last bit),
and accordingly initiates a receive or transmit session.
•
The SHI inspects the SDA level at the ninth clock pulse to determine the ACK value.
If acknowledged (ACK = 0), it starts its receive or transmit session according to the
sampled R/W value. If not acknowledged (ACK = 1), the HBER status bit in HCSR is
set, which causes an SHI Bus Error interrupt request if HBIE is set, and a stop event is
generated.
The HREQ input pin is ignored by the I
2
C master device if HRQE[1:0] are cleared, and
considered if either of them is set. When asserted, HREQ indicates that the external slave
device is ready for the next data transfer. As a result, the I
2
C master device sends clock pulses
Summary of Contents for DSP56367
Page 16: ...xvi MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Page 22: ...xxii MOTOROLA List of Figures Figure Number Title Page Number ...
Page 26: ...xxvi MOTOROLA List of Tables Table Number Title Page Number ...
Page 148: ...4 6 DSP56367 MOTOROLA Design Considerations PLL Performance Issues ...
Page 248: ...9 30 DSP56367 MOTOROLA Serial Host Interface SHI Programming Considerations ...
Page 306: ...10 58 DSP56367 MOTOROLA Enhanced Serial Audio Interface ESAI ESAI Initialization Examples ...
Page 389: ...Bootstrap ROM Contents MOTOROLA DSP56367 A 15 end ...
Page 390: ...A 16 DSP56367 MOTOROLA Bootstrap ROM Contents ...
Page 432: ...C 8 DSP56367 MOTOROLA JTAG BSDL ...
Page 484: ...D 52 DSP56367 MOTOROLA Programmer s Reference ...
Page 490: ...E 6 DSP56367 MOTOROLA Power Consumption Benchmark ...
Page 516: ...F 26 DSP56367 MOTOROLA IBIS Model ...
Page 522: ...Index 6 MOTOROLA Index ...
Page 523: ......