XRT72L50
SINGLE CHANNEL DS3/E3 FRAMER WITH HDLC CONTROLLER
REV. 1.2.1
á
209
Once the LAPD Receiver has been enabled, it will begin searching for the Flag Sequence octets (0x7E), in the
DL bit-fields, within the incoming DS3 frames. When the LAPD Receiver finds the flag sequence byte, it will
assert the Flag Present bit (Bit 0) within the Rx DS3 LAPD Status Register, as depicted below.
The receipt of the Flag Sequence octet can mean one of two things.
1.
The Flag Sequence byte marks the beginning or end of an incoming LAPD Message.
2.
The received Flag Sequence octet could be just one of many Flag Sequence octets that are transmitted via
the DS3 Transport Medium, during idle periods between the transmission of LAPD Messages.
The LAPD Receiver will clear the Flag Present bit as soon as it has received an octet that is something other
than the Flag Sequence octet. At this point, the LAPD Receiver should be receiving either octet #2 of the
incoming LAPD Message, or an Abort Sequence (e.g., a string of seven or more consecutive 1s). If this next
set of data is an abort sequence, then the LAPD Receiver will assert the RxAbort bit (Bit 6) within the Rx DS3
LAPD Status Register. However, if this next octet is Octet #2 of an incoming LAPD Message, then the Rx DS3
LAPD Status Register will start de-stuffing “zeros” after any consecutive 5 “Ones” and will begin to present
some additional status information on this incoming message. Each of these indicators is presented below in
sequential order.
Bit 3 - RxCR Type - C/R (Command/Response) Type
This bit-field reflects the contents of the C/R bit-field within octet #2 of the LAPD Frame Header. When this bit
is "0" it means that this message is originating from a customer installation. When this bit is "1" it means that
this message is originating from a network terminal.
Bit 4,5 - RxLAPD Type[1, 0] - LAPD Message Type
The combination of these two bit fields indicate the Message Type and the Message Size of the incoming
LAPD Message frame.
Table 37
relates the values of Bits 4 and 5 to the Incoming LAPD Message Type/Size.
Rx DS3 LAPD Control Register (Address = 0x18)
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
Not Used
Not Used
Not Used
Not Used
RxLAPD
Enable
RxLAPD
Interrupt
Enable
RxLAPD
Interrupt
Status
RO
0
RO
0
RO
0
RO
0
RO
0
R/W
1
R/W
X
RUR
X
Rx DS3 LAPD Status Register (Address = 0x19)
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
RxAbort
RxLAPD Type[1:0]
RxCR Type
RxFCS Error
End of
Message
Flag
Present
RO
RO
RO
RO
RO
RO
RO
RO
X
X
X
X
X
X
X
1
T
ABLE
37: T
HE
R
ELATIONSHIP
BETWEEN
R
X
LAPDT
YPE
[1:0]
AND
THE
RESULTING
LAPD M
ESSAGE
TYPE
AND
SIZE
R
X
LAPD T
YPE
[1, 0]
M
ESSAGE
T
YPE
M
ESSAGE
S
IZE
00
CL Path Identification
76 bytes
01
Idle Signal Identification
76 bytes