MSC8113 Reference Manual, Rev. 0
20-34
Freescale Semiconductor
TDM Interface
The received data is stored in 256 entries of 8 bytes each located in the addresses between
0x0000–0x07FF. This memory contains 1, 2, 4, 8, 16, or 32 indexed buffers, starting at 0.
Each buffer contains multiple frames. The number of buffers used to store the received
data is indicated in the RNB field of the TDMx Receive number of Buffers Register
(TDMxRNB) (see page 20-64). Channel C in buffer B is the 8 bytes starting at
(256 / (RNB + 1)
×
B + C)
×
8. (Refer to Section 20.2.3, TDM Data Structures, on
page 20-13 for details)
4.
Fill the sync data in all the TDM transmit local memory.
Transmit data is located in the TDM local memory before it is transmitted externally. The
data is stored in 256 8-byte entries in addresses between 0x1800–0x1FFF. This memory
can contain 1, 2, 4, 8, 16, or 32 indexed buffers starting at 0. Each buffer contains multiple
frames. The number of buffers used to store the transmitted data is indicated in the TNB
field of the TDMx Transmitter Number of Buffers Register (TDMxTNB). Channel C in
buffer B is the 8 bytes starting at (256/(TNB+1)
×
B+C)
×
8.
5.
Clear the TDMxRER and TDMxTER event registers by writing a value of 0xF to each
of them.
6.
Set the TDMxRCR[REN] bit and/or the TDMxTCR[TEN] bit.
20.7
TDM Programming Model
The handshake between the TDM module and the SC140 core occurs via a set of registers, data
structures in the memory, and interrupts. All TDM registers are mapped into the IPBus address
space. See Chapter 8, Memory Map for details on IPBus addressing. There are four modules
(TDM 0–3), each with its own region in the IPBus address space. Within the module address
space, the area is divided into spaces for configuration registers, control registers, and status
registers as follows:
Configuration registers. Set the operation modes and provide indications for all channels.
They are set before the TDM is enabled and should not be changed while the TDM is
active.
Control registers. Set the channel specific parameters individually for each channel and
the threshold pointers. These registers can be changed during operation.
Status registers. Read-only registers that can be accessed any time.
This section describes the TDM module registers, which are listed as follows:
TDMx General Interface Register (TDMxGIR), page 20-36.
TDMx Receive Interface Register (TDMxRIR), page 20-43.
TDMx Transmit Interface Register (TDMxTIR), page 20-45.
TDMx Receive Frame Parameters (TDMxRFP), page 20-47.
TDMx Transmit Frame Parameters (TDMxTFP), page 20-49.
Содержание MSC8113
Страница 1: ...MSC8113 Reference Manual Tri Core 16 Bit Digital Signal Processor MSC8113RM Rev 0 May 2008 ...
Страница 20: ...MSC8113 Reference Manual Rev 0 xx Freescale Semiconductor Contents ...
Страница 28: ...MSC8113 Reference Manual Rev 0 xxviii Freescale Semiconductor ...
Страница 56: ...MSC8113 Reference Manual Rev 0 1 28 Freescale Semiconductor MSC8113 Overview ...
Страница 76: ...MSC8113 Reference Manual Rev 0 2 20 Freescale Semiconductor SC140 Core Overview ...
Страница 134: ...MSC8113 Reference Manual Rev 0 4 30 Freescale Semiconductor System Interface Unit SIU ...
Страница 168: ...MSC8113 Reference Manual Rev 0 6 18 Freescale Semiconductor Boot Program ...
Страница 180: ...MSC8113 Reference Manual Rev 0 7 12 Freescale Semiconductor Clocks ...
Страница 260: ...MSC8113 Reference Manual Rev 0 8 80 Freescale Semiconductor Memory Map ...
Страница 300: ...MSC8113 Reference Manual Rev 0 9 40 Freescale Semiconductor Extended Core ...
Страница 304: ...MSC8113 Reference Manual Rev 0 10 4 Freescale Semiconductor MQBus and M2 Memory ...
Страница 308: ...MSC8113 Reference Manual Rev 0 11 4 Freescale Semiconductor SQBus ...
Страница 544: ...MSC8113 Reference Manual Rev 0 16 46 Freescale Semiconductor Direct Memory Access DMA Controller ...
Страница 590: ...MSC8113 Reference Manual Rev 0 17 46 Freescale Semiconductor Interrupt Processing ...
Страница 614: ...MSC8113 Reference Manual Rev 0 18 24 Freescale Semiconductor Debugging ...
Страница 622: ...MSC8113 Reference Manual Rev 0 19 8 Freescale Semiconductor Internal Peripheral Bus IPBus ...
Страница 724: ...MSC8113 Reference Manual Rev 0 21 32 Freescale Semiconductor UART ...
Страница 920: ...MSC8113 Reference Manual Rev 0 25 150 Freescale Semiconductor Ethernet Controller ...
Страница 1171: ...MSC8113 Reference Manual Rev 0 Freescale Semiconductor C 61 EF wait_rts P 01077FFC 9F rts 71 ...
Страница 1172: ...MSC8113 Reference Manual Rev 0 C 62 Freescale Semiconductor MSC8113 Boot Code ...
Страница 1202: ...MSC8113 Reference Manual Rev 0 Index 30 Freescale Semiconductor Index ...