
4 CHANNEL, ATM UNI/PPP DS3/E3 FRAMING CONTROLLER
ADVANCED CONFIDENTIAL
XRT74L74
REV. P1.1.1
227
The 16 bit FCS (Frame Check Sequence) is calculat-
ed over the LAPD Message Header and Information
Payload bytes, by using the CRC-16 polynomial, x
16
+ x
12
+ x
5
+ 1.
Operation of the LAPD Transmitter
If a message is to be transmitted via the LAPD Trans-
mitter, the information portion (or the body) of the
message must be written into the Transmit LAPD
Message Buffer, which is located at 0x86 through
0xDD in on-chip RAM via the Microprocessor Inter-
face. Afterwards, three things must be done:
1.
Specify the length of LAPD message to be trans-
mitted.
2.
Enable the LAPD Transmitter.
3.
Initiate the Transmission of the PMDL Message.
Each of these steps will be discussed in detail.
STEP 1 - Specifying the Length of the LAPD Mes-
sage
One of two different sizes of LAPD Messages can be
transmitted. This is accomplish by writing the appro-
priate data to bit 1 within the Tx DS3 LAPD Configu-
ration Register. The bit-format of this register is pre-
sented below.
The relationship between the contents of bit-fields 1
and the LAPD Message size is given in Table 41.
N
OTE
:
The Message Type selected must correspond with
the contents of the first byte of the Information (Payload)
portion, as presented in Table 40.
STEP 2 - Enabling the LAPD Transmitter
Prior to the transmission of any data via the LAPD
Transmitter the LAPD Transmitter must be enabled.
This is accomplished this by writing a 1 to bit 0 of the
Tx DS3 LAPD Configuration Register, as depicted be-
low.
Bit 0 - TxLAPD Enable
This bit-field allows the user to enable or disable the
LAPD Transmitter in accordance with Table 42.
TRANSMIT DS3 LAPD CONFIGURATION REGISTER (ADDRESS = 0X33)
B
IT
7
B
IT
6
B
IT
5
B
IT
4
B
IT
3
B
IT
2
B
IT
1
B
IT
0
Not Used
Auto
Retransmit
R/W
X
Not Used
TxLAPD
Msg Length
R/W
X
TxLAPD
Enable
R/W
X
R/O
0
R/O
0
R/O
0
R/O
0
R/O
0
T
ABLE
41: R
ELATIONSHIP
BETWEEN
T
X
LAPD M
SG
L
ENGTH
AND
THE
LAPD M
ESSAGE
S
IZE
T
X
LAPD M
SG
L
ENGTH
LAPD M
ESSAGE
L
ENGTH
0
1
LAPD Message size is 76 bytes
LAPD Message size is 82 bytes
TRANSMIT DS3 LAPD CONFIGURATION REGISTER (ADDRESS = 0X33)
B
IT
7
B
IT
6
B
IT
5
B
IT
4
B
IT
3
B
IT
2
B
IT
1
B
IT
0
Not Used
Auto
Retransmit
R/W
X
Not Used
TxLAPD
Msg Length
R/W
X
TxLAPD
Enable
R/W
1
R/O
0
R/O
0
R/O
0
R/O
0
R/O
0
T
ABLE
42: R
ELATIONSHIP
BETWEEN
T
X
LAPD M
SG
L
ENGTH
AND
THE
LAPD M
ESSAGE
S
IZE
T
X
LAPD E
NABLE
R
ESULTING
A
CTION
OF
THE
LAPD T
RANSMITTER
0
The LAPD Transmitter is disabled and the DL bits, in the DS3 frame,
are transmitted as all 1s.
1
The LAPD Transmitter is enabled and is transmitting a continuous
stream of Flag Sequence octets (0x7E).