Texas Instruments TMS320C6A816 Series Technical Reference Manual page 1245

C6-integra dsp+arm processors
Table of Contents

Advertisement

www.ti.com
12.2.5.1 Interrupt-Driven Operation
Alternatively, an interrupt enable bit, in the MCSPI_IRQENABLE register, can be set to enable each of
the events to generate interrupt requests when the corresponding event occurs. Status bits are
automatically set by hardware logic conditions.
When an event occurs (the single interrupt line is asserted), the CPU must:
Read the MCSPI_IRQSTATUS register to identify which event occurred,
Read the receiver register that corresponds to the event, to remove the source of an RX_full event,
or Write into the transmitter register that corresponds to the event, to remove the source of a
TX_empty event. No action is needed to remove the source of the events TX_underflow and
RX_overflow.
Write a 1 into the corresponding bit of MCSPI_IRQSTATUS register to clear the interrupt status, and
release the interrupt line.
The interrupt status bit should always be reset after channel enabling and before event are enabled as
interrupt source.
12.2.5.2 Polling
When the interrupt capability of an event is disabled in the MCSPI_IRQENABLE register, the interrupt
line is not asserted and:
The status bits in the MCSPI_IRQSTATUS register can be polled by software to detect when the
corresponding event occurs.
Once the expected event occurs, CPU must: Read the receiver register that corresponds to the
event, to remove the source of an RX_full event, or write into the transmitter register that
corresponds to the event, to remove the source of a TX_empty event. No action is needed to
remove the source of the events TX_underflow and RX_overflow.
Writing a 1 into the corresponding bit of MCSPI_IRQSTATUS register clears the interrupt status and
does not affect the interrupt line state.
12.2.6 DMA Requests
McSPI can be interfaced with a DMA controller. At system level, the advantage is to discharge the local
host of the data transfers.
According to its transmitter register state, its receiver register state or FIFO level (if use of buffer for the
channel) each channel can issue DMA requests if they are enabled.
The DMA requests need to be disabled in order to get TX and RX interrupts, in order to define either
the end of the transfer or the transfer of the last words for the modes listed below:
Master Transmit On
Master normal receive only mode
Master turbo receive only m
Slave Transmit Only
There are 2 DMA request lines per channel. The management of DMA requests differ according to use
of FIFO buffer or not:
12.2.6.1 FIFO Buffer Disabled
The DMA Read request line is asserted when the channel is enabled and a new data is available in the
receive register of the channel. DMA Read request can be individually masked with the bit DMAR of the
register MCSPI_CH(I)CONF. The DMA Read request line is de-asserted (OCP compliant as defined in
[1]) on read completion of the receive register of the channel.
The DMA Write request line is asserted when the channel is enabled and the transmitter register of the
channel is empty. DMA Write request can be individually masked with the bit DMAW of the register
MCSPI_CH(I)CONF. The DMA Write request line is deasserted (OCP compliant as defined in [1]) on
load completion of the transmitter register of the channel.
SPRUGX9 – 15 April 2011
Submit Documentation Feedback
Preliminary
© 2011, Texas Instruments Incorporated
Multichannel Serial Port Interface (McSPI)
Architecture
1245

Advertisement

Table of Contents
loading

Table of Contents