Shi Control/Status Register (Hcsr)—Dsp Side - Motorola DSP56367 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

9.5.6
SHI CONTROL/STATUS REGISTER (HCSR)—DSP SIDE
The HCSR is a 24-bit register that controls the SHI operation and reflects its status. The
control bits are read/write. The status bits are read-only. The bits are described in the
following paragraphs. When in the stop state or during individual reset, the HCSR status bits
are reset to their hardware-reset state, while the control bits are not affected.
9.5.6.1
HCSR Host Enable (HEN)—Bit 0
The read/write control bit HEN, when set, enables the SHI. When HEN is cleared, the SHI is
disabled (that is, it is in the individual reset state, see below). The HCKR and the HCSR
control bits are not affected when HEN is cleared. When operating in master mode, HEN
should be cleared only when the SHI is idle (HBUSY = 0). HEN is cleared during hardware
reset and software reset.
9.5.6.1.1
SHI Individual Reset
While the SHI is in the individual reset state, SHI input pins are inhibited, output and
bidirectional pins are disabled (high impedance), the HCSR status bits and the
transmit/receive paths are reset to the same state produced by hardware reset or software reset.
The individual reset state is entered following a one-instruction-cycle delay after clearing
HEN.
9.5.6.2
HCSR I
The read/write control bit HI
2
When HI
C is cleared, the SHI operates in the SPI mode. When HI
2
2
in the I
C mode. HI
C affects the functionality of the SHI pins as described in Section 2,
Signal/Connection Descriptions. It is recommended that an SHI individual reset be generated
(HEN cleared) before changing HI
reset.
9.5.6.3
HCSR Serial Host Interface Mode (HM[1:0])—Bits 3–2
The read/write control bits HM[1:0] select the size of the data words to be transferred, as
shown in Table 9-4. HM[1:0] should be modified only when the SHI is idle (HBUSY = 0).
HM[1:0] are cleared during hardware reset and software reset.
HM1
0
0
1
1
MOTOROLA
2
C/SPI Selection (HI
2
C selects whether the SHI operates in the I
2
2
C. HI
C is cleared during hardware reset and software
Table 9-4 SHI Data Size
HMO
0
1
0
1
DSP56367
Serial Host Interface Programming Model
2
C)—Bit 1
2
C is set, the SHI operates
Serial Host Interface
2
C or SPI modes.
Description
8-bit data
16-bit data
24-bit data
Reserved
9-13

Advertisement

Table of Contents
loading

Table of Contents