Synchronous Serial Interface (SSI)
MCF52277 Reference Manual, Rev. 1
25-34
Freescale Semiconductor
In network mode, data can be transmitted in any time slot. The distinction of network mode is each time
slot is identified with respect to the frame sync (data word time). This time slot identification allows the
option of transmitting data during the time slot by writing to the SSI_TX registers or ignoring the time slot
as determined by the SSI_TMASK register bits. The receiver is treated in the same manner and received
data is only transferred to the receive data register/FIFO if the corresponding time slot is enabled through
SSI_RMASK.
By using the SSI_TMASK and SSI_RMASK registers, software only has to service the SSI during valid
time slots. This eliminates any overhead associated with unused time slots. Refer to
Transmit Time Slot Mask Register (SSI_TMASK),”
Section 25.3.19, “SSI Receive Time Slot Mask
for more information on the SSI_TMASK and SSI_RMASK registers.
In two channel mode (SSI_CR[TCH] = 1), the second set of transmit and receive FIFOs and data registers
create two separate channels (for example, left and right channels for a stereo codec). These channels are
completely independent with their own set of interrupts and DMA requests identical to the ones available
for the default channel. In this mode, data is transmitted/received in enabled time slots alternately from/to
FIFO 0 and FIFO 1, starting from FIFO 0. The first data word is taken from FIFO 0 and transmitted in the
first enabled time slot and subsequently, data is loaded from FIFO 1 and FIFO 0 alternately and
transmitted. Similarly, the first received data is sent to FIFO 0 and subsequent data is sent to FIFO 1 and
FIFO 0 alternately. Time slots are selected through the transmit and receive time slot mask registers
(SSI_TMASK and SSI_RMASK).
25.4.1.2.1
Network Mode Transmit
The transmit portion of SSI is enabled when the SSI_CR[SSI_EN and TE] bits are set. However, for
continuous clock when the TE bit is set, the transmitter is enabled only after detection of a new frame sync
(transmission starts from the next frame boundary).
Normal start-up sequence for transmission:
•
Write the data to be transmitted to the SSI_TX register. This clears the TDE flag.
•
Set the SSI_CR[TE] bit to enable the transmitter on the next word boundary (for continuous clock).
•
Enable transmit interrupts.
Alternately, the user may decide not to transmit in a time slot by writing to the SSI_TMASK. The TDE
flag is not cleared, but the SSI_TXD port remains disabled during the time slot. When the frame sync is
detected or generated (continuous clock), the first enabled data word is transferred from the SSI_TX
register to the TXSR and is shifted out (transmitted). When the SSI_TX register is empty, the TDE bit is
set, which causes a transmitter interrupt (if the FIFO is disabled) to be sent if the TIE bit is set. Software
can poll the TDE bit or use interrupts to reload the SSI_TX register with new data for the next time slot.
Failing to reload the SSI_TX register before the TXSR is finished shifting (empty) causes a transmitter
underrun error (the TUE bit is set). If the FIFO is enabled, the TFE flag is set in accordance with the
watermark setting and this flag causes a transmitter interrupt to occur.
Clearing the TE bit disables the transmitter after completion of transmission of the current frame. Setting
the TE bit enables transmission from the next frame. During that time the SSI_TXD port is disabled. The
TE bit should be cleared after the TDE bit is set to ensure that all pending data is transmitted.
Содержание MCF52277
Страница 1: ...MCF52277 Reference Manual Devices Supported MCF52274 MCF52277 Document Number MCF52277RM Rev 1 04 2008...
Страница 22: ...MCF52277 Reference Manual Rev 1 Freescale Semiconductor xxii...
Страница 32: ...MCF52277 Reference Manual Rev 0 xxxii Freescale Semiconductor...
Страница 60: ...Signal Descriptions MCF52277 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Страница 112: ...Enhanced Multiply Accumulate Unit EMAC MCF52277 Reference Manual Rev 1 4 20 Freescale Semiconductor...
Страница 128: ...Static RAM SRAM MCF52277 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Страница 140: ...Clock Module MCF52277 Reference Manual Rev 1 7 12 Freescale Semiconductor...
Страница 172: ...Chip Configuration Module CCM MCF52277 Reference Manual Rev 1 9 16 Freescale Semiconductor...
Страница 180: ...Serial Boot Facility SBF MCF52277 Reference Manual Rev 1 10 8 Freescale Semiconductor...
Страница 188: ...Reset Controller Module MCF52277 Reference Manual Rev 1 11 8 Freescale Semiconductor...
Страница 210: ...Crossbar Switch XBS MCF52277 Reference Manual Rev 1 13 8 Freescale Semiconductor...
Страница 480: ...Liquid Crystal Display Controller LCDC MCF52277 Reference Manual Rev 1 21 44 Freescale Semiconductor...
Страница 510: ...Touchscreen Controller Analog to Digital Converter MCF52277 Reference Manual Rev 1 22 30 Freescale Semiconductor...
Страница 542: ...FlexCAN MCF52277 Reference Manual Rev 1 23 32 Freescale Semiconductor...
Страница 568: ...Pulse Width Modulation PWM Module MCF52277 Reference Manual Rev 1 24 26 Freescale Semiconductor...
Страница 640: ...Programmable Interrupt Timers PIT0 PIT1 MCF52277 Reference Manual Rev 1 27 8 Freescale Semiconductor...
Страница 690: ...DMA Serial Peripheral Interface DSPI MCF52277 Reference Manual Rev 1 29 40 Freescale Semiconductor...
Страница 724: ...UART Modules MCF52277 Reference Manual Rev 1 30 34 Freescale Semiconductor...
Страница 740: ...I2 C Interface MCF52277 Reference Manual Rev 1 31 16 Freescale Semiconductor...
Страница 790: ...Debug Module MCF52277 Reference Manual Rev 1 32 50 Freescale Semiconductor...