Hcsr Host Transmit Underrun Error (Htue)—Bit 14 - Motorola DSP56367 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Table 9-6 HCSR Receive Interrupt Enable Bits
HRIE[1:0]
11
Note:
Clearing HRIE[1:0] masks a pending receive interrupt only after a one instruction
cycle delay. If HRIE[1:0] are cleared in a long interrupt service routine, it is
recommended that at least one other instruction separate the instruction that clears
HRIE[1:0] and the RTI instruction at the end of the interrupt service routine.
9.5.6.12
HCSR Host Transmit Underrun Error (HTUE)—Bit 14
The read-only status bit HTUE indicates whether a transmit-underrun error occurred.
Transmit-underrun errors can occur only when operating in the SPI slave mode or the I
slave mode when HCKFR is cleared. In a master mode, transmission takes place on demand
and no underrun can occur. HTUE is set when both the shift register and the HTX register are
empty and the external master begins reading the next word:
When operating in the I
this case, the SHI retransmits the previously transmitted word.
When operating in the SPI mode, HTUE is set at the first clock edge if CPHA = 1; it is
set at the assertion of SS if CPHA = 0.
If a transmit interrupt occurs with HTUE set, the transmit-underrun interrupt vector is
generated. If a transmit interrupt occurs with HTUE cleared, the regular transmit-data
interrupt vector is generated. HTUE is cleared by reading the HCSR and then writing to the
HTX register. HTUE is cleared by hardware reset, software reset, SHI individual reset, and
during the stop state.
9.5.6.13
HCSR Host Transmit Data Empty (HTDE)—Bit 15
The read-only status bit HTDE indicates whether the HTX register is empty and can be
written by the DSP. HTDE is set when the data word is transferred from HTX to the shift
register, except in SPI master mode when CPHA = 0 (see HCKR). When in the SPI master
mode with CPHA = 0, HTDE is set after the end of the data word transmission. HTDE is
cleared when the DSP writes the HTX either with write instructions or DMA transfers. HTDE
is set by hardware reset, software reset, SHI individual reset, and during the stop state.
9.5.6.14
HCSR Reserved Bits—Bits 23, 18 and 16
These bits are reserved. They read as zero and should be written with zero for future
compatibility.
MOTOROLA
Interrupt
Receive FIFO full
Receive Overrun Error
2
C mode, HTUE is set in the falling edge of the ACK bit. In
DSP56367
Serial Host Interface Programming Model
HRFF = 1 and HROE = 0
HROE = 1
Serial Host Interface
Condition
2
C
9-17

Advertisement

Table of Contents
loading

Table of Contents