XRT7245
DS3 UNI FOR ATM
á
PRELIMINARY
REV. 1.03
232
Operation of the LAPD Receiver
The LAPD Receiver, once enabled, will begin searching
for the boundaries of the incoming LAPD message.
The LAPD Message Frame boundaries are
delineated via the “Flag Sequence” octets (7Eh), as
depicted in Table 49.
Where: Flag Sequence = 7Eh
SAPI + CR + EA = 3Ch or 3Eh
TEI + EA = 01h
Control = 03h
The 16 bit FCS is calculated using CRC-16, x
16
+ x
12
+ x
5
+ 1
The local μP (at the “Far End” Terminal), while as-
sembling the LAPD Message frame, will insert an ad-
ditional byte at the beginning of the information (pay-
load) field. This first byte of the information field indi-
cates the type and size of the message being trans-
ferred. The value of this information field and the
corresponding message type/size follow:
CL Path Identification = 38h (76 bytes)
IDLE Signal Identification = 34h (76 bytes)
Test Signal Identification = 32h (76 bytes)
ITU-T Path Identification = 3Fh (82 bytes)
The LAPD Receiver must be enabled before it can
begin receiving any LAPD messages. The LAPD
Receiver can be enabled by writing a “1” to Bit 2
(RxLAPD Enable) of the Rx DS3 LAPD Control Reg-
ister. The bit format of this register is depicted below.
Once the LAPD Receiver has been enabled, it will
begin searching for the Flag Sequence octets (7Eh),
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 of
an incoming LAPD Message.
T
ABLE
49: LAPD M
ESSAGE
F
RAME
F
ORMAT
F
LAG
S
EQUENCE
(8
BITS
)
SAPI (6-bits)
C/R
EA
TEI (7 bits)
EA
Control (8 bits)
76 or 82 Bytes of Information (Payload)
FCS—MSB
FCS—LSB
Flag Sequence (8 bits)
Rx DS3 LAPD Control Register (Address = 14h)
B
IT
7
B
IT
6
B
IT
5
B
IT
4
B
IT
3
B
IT
2
B
IT
1
B
IT
0
Enable5F(4)
Enable5F(3)
Enable5 F(2)
Enable5 F(1)
Enable5 F(0)
RxLAPD
Enable
RxLAPD
Interrupt
Enable
RxLAPD
Interrupt
Status
R/W
R/W
R/W
R/W
R/W
R/W
R/W
RUR
Rx DS3 LAPD Status Register (Address = 15h)
B
IT
7
B
IT
6
B
IT
5
B
IT
4
B
IT
3
B
IT
2
B
IT
1
B
IT
0
Unused
RxAbort
RxLAPD
Type[0]
RxLAPD
Type[1]
RxCR Type
RxFCS
Error
End Of
Message
Flag
Present
x
x
x
x
x
x
x
1