mt90502ag2 Zarlink Semiconductor, mt90502ag2 Datasheet - Page 43

no-image

mt90502ag2

Manufacturer Part Number
mt90502ag2
Description
Multi-channel Aal2 Sar
Manufacturer
Zarlink Semiconductor
Datasheet
2.2.4.1
The TX TDM module allows the generation of CPU sourced CPS-Packets. When the CPU requires to transmit an
AAL2 CPS-Packet onto a certain VC, it programs the VC number in register 520h, and writes the CPS-Packet's
descriptor structure in registers 522h to 526h. The format of the CPS-Packet descriptor structure is given in Figure
17. Word 0 must be written into register 522h, Bytes +2 and +5 to register 524h and Bytes +4 and +5 to register
526h. Finally, it writes a '1' to the cps_packet_request bit in register 520h, which begins the request. When the bit
clears, the process has concluded and the CPS-Packet has been added to the TX VC's queue.
The following process is used to send a CPU CPS-Packet:
1) The payload of the CPS-Packet must be written into some unused portion of the external SSRAM (bank A). The
format for writing the payload to memory is shown in the following example. In the example, the CPS-Packet
payload is 25-bytes.
Fields in Italic are used by hardware only. Fields in Plain are
written to by the CPU/Software.
CPS-Packet Final Assembly structures are fixed and are located in
TX SSRAM memory at addresses +1000h to +1FE0h, +2000h to
+3FE0h, +4000h to +7FE0h and +8000h to +FFE0h for 128, 256,
512 and 1023 channels respectively.
+1Ch
+1Ah
+1Eh
+12h
+14h
+16h
+18h
Each structure is 32-bytes in size.
+Ah
+Ch
+Eh
+0h
+2h
+4h
+6h
+8h
+1h
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2
CPS-Packet Final Assembly Structure (HDLC Channel)
CPU CPS-Packets
VC Number [9:0]
CID
CPS-Packet Byte Count [31:16]
CPS-Packet Byte Count [15:0]
CPS-Packet Count [31:16]
Figure 16 - CPS-Packet Final Assembly Structure (HDLC Channel)
CPS-Packet Count [15:0]
Table 19 - Format for writing CPS-Packet payload to memory
cpsp_base + 24 (word 12):
cpsp_base + 0 (word 0):
cpsp_base + 2 (word 1):
address
...
SUI
Pack Del Cnt[3:0]
Send UUI [3:0]
Zarlink Semiconductor Inc.
MT90502
b1 b0
43
payload 24
bits [15:8]
payload 0
payload 2
VC Number: Number of the VC in which the CPS-Packets of
this AAL2 Channel will be routed.
Packet Delete Count: Indicates the number of packets that
must be deleted (not sent) before the AAL2 Channel starts. 0
means send immediately. 15 means never send. 1 to 14
mean delete the first 1 to 14 first CPS-Packets generated. At
start-up, this field may be set to 1 or more in order to never
send garbage on an AAL2 Channel.
CID: Channel ID on AAL2 VCs that will be annexed to the
CPS-Packets.
Send UUI: Send this UUI value. These are the four lower bits
of the UUI that will be sent in all AAL2 CPS-Packets. The 0 to
4 lower bits of this field can be substituted by the 0 to 4 lower
bits of the CPS-Packet Count, depending on the Send UUI
Increment Field.
SUI: Send UUI Increment. When “000” = 4 bits used as
counter, “001” = 3 bits used as counter, “010” = 2 bits used as
counter, “011” = 1 bit used as counter, “100” = 0 bits used as
counter, “101” = send the UUI value contained in the HDLC
CPS-Packet control byte. Others = reserved. Once in “raw”
CPS-Packet mode, Send UUI and SUI are ignored.
CPS-Packet Byte Count: Byte counter of all payload bytes
sent (payload is defined as the LI+1 in each CPS-Packet).
CPS-Packet Count: CPS-Packet counter of all sent packets.
...
payload 1
payload 3
xxxxxxxx
bits[7:0]
...
Data Sheet

Related parts for mt90502ag2