AN2313 Freescale Semiconductor / Motorola, AN2313 Datasheet - Page 4

no-image

AN2313

Manufacturer Part Number
AN2313
Description
Connecting an MSC8102 TDM to an MSC8101 Device
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Configuring the MSC8102 TDMs
4
• Receive Channel Data Base Address. TDMxRCPRn[8–31]:RCDBA field.
The transmit data buffer base address is a function of the following:
• Transmit Global Base Address. TDMxTGBA[16–31]:TGBA field.
• Transmit Channel Data Base Address. TDMxTCPRn[8–31]:TCDBA field.
Note:
For example, if the transmit data buffer of channel n is located at the first byte of M2 (address at the local
bus space = 0x2000000), then the following is true:
• Transmit Global Base Address. TDMxTGBA[16–31]:TGBA = 0x200.
• Transmit Channel Data Base Address. TDMxTCPRn[8–31] = 0x0.
TDM0RDBS[8–31]:RDBS =
0x00007F
TDM0TDBS[8–31]:TDBS =
0x00007F
TDM0RGBA[16–31]:RGBA =
0x0208
TDM0TGBA[16–31]:TGBA =
0x0208
TDM0RCPR0 = 0x80000000
TDM0RCPR1 = 0x80000080
TDM0RCPR2 = 0x80000100
TDM0RCPR3 = 0x80000180
TDM0TCPR0 = 0x80000200
TDM0TCPR1 = 0x80000280
Receive data buffer n =RGBA >> 16 + RCDBA
Transmit data buffer n =TGBA >> 16 + TCDBA
Register Setting Summary:
The data buffer base address is in the local bus address space.
Bit Setting
Bit Setting
Freescale Semiconductor, Inc.
For More Information On This Product,
Table 4. Receive/Transmit Channel Parameter Register Settings
Go to: www.freescale.com
Table 3. TDM0 Data Buffer Register Settings
The receive data buffer of channel 0 is located at an offset of 0 bytes (refer to
the TDMx Receive Global Base Address Register, TDMxRGBA[16–31]:RGBA
field). The data buffer address is 0x2080000 (local memory address space).
The receive data buffer of channel 1 is located at an offset of 128 bytes (refer
to the TDMxRGBA[16–31]:RGBA field). The data buffer address is
0x2080080 (local memory address space).
The receive data buffer of channel 2 is located at an offset of 256 bytes (refer
to the TDMxRGBA[16–31]:RGBA field). the data buffer address is 0x2080100
(local memory address space).
The receive data buffer of channel 3locate at an offset of 384 bytes (refer to
the TDMxRGBA[16–31]:RGBA field). The data buffer address is 0x2080180
(local memory address space).
The transmit data buffer of channel 0 is located at an offset of 512 bytes (refer
to the TDMxTGBA[16–31]:TGBA field). The address of transmit channel 0 is
0x2080200 (local memory address space).
The transmit data buffer of channel 1 is located at an offset of 640 bytes (refer
to the TDMxTGBA[16–31]:TGBA field). The address of transmit channel 1 is
0x2080280 (local memory address space).
The receive data buffer size is 128 bytes.
The transmit data buffer size is 128 bytes.
The receive global base address points to the first byte of the L1 memory,
SC140 core 0.
The transmit global base address points to the first byte of the L1 memory,
SC140 core 0.
TDM0RDBS = 0x0000007F, TDM0TDBS = 0x0000007F,
TDM0RGBA = 0x00000208,TDM0TGBA = 0x00000208
Description
Description

Related parts for AN2313