XRT7245
DS3 UNI FOR ATM
á
PRELIMINARY
REV. 1.03
198
Note:
Upon power up or reset, the LAPD Transmitter is
disabled. Therefore, the user must set this bit to “1” in order
to enable the LAPD Transmitter.
Initiate the Transmission
At this point, the LAPD Transmitter is ready to begin
transmission. The user has written the “information
portion” of the message into the on-chip Transmit
LAPD buffer, specified the type of LAPD message
that he/she wishes to transmit, and has enabled the
LAPD Transmitter. The only thing remaining to do is
to initiate the transmission of this message. The user
initiates this process by writing a “1” to Bit 3 of the Tx
DS3 LAPD Status/Interrupt Register (TxDL Start).
The bit format of this register is presented below.
A “0” to “1” transition of Bit 3 (TxDL Start) in this reg-
ister, initiates the transmission of the data link mes-
sage. While the LAPD transmitter is transmitting the
message, the ‘TxDL Busy’ (bit 2) bit will be set to “1”.
This bit-field allows the user to “poll” the status of the
LAPD Transmitter. Once the message transfer is com-
pleted, this bit-field will toggle back to ‘0’.
The user can configure the LAPD Transmitter to inter-
rupt the local μC/μP upon completion of transmission
of the LAPD Message, by setting bit-field 1 (TxLAPD
Interrupt Enable) of the “Tx DS3 LAPD Status/Interrupt”
register to “1”. The purpose of this interrupt is to let
the local μC/μP know that the LAPD Transmitter is
available and ready to transmit a new message. Bit 0
will reflect the status for the LAPD Transmitter interrupt.
Note:
this bit-field will be reset on reading this register.
Once the user has invoked the “TxDL Start” com-
mand, the LAPD Transmitter will do the following.
Generate the four octets of LAPD frame header
(e.g., Flag Sequence, SAPI, TEI, Control, etc.) and
insert it into the LAPD Message, prior to the user’s
information (see the LAPD Message Frame Format
in Figure 52).
Compute the 16 bit “Frame Check Sum” (FCS) of
the LAPD Message Frame (e.g., of the LAPD
Message header and information payload) and
append this value to the LAPD Message.
Append a “trailer” Flag Sequence octet to the end
of the message LAPD (following the 16 bit FCS
value).
Serialize the composite LAPD message and begin
inserting the LAPD message into the “DL” bit fields
of each outgoing DS3 Frame.
Complete the transmission of the frame overhead,
payload, FCS value, and trailer Flag Sequence
octet via the Transmit DS3 Framer.
Once the LAPD Transmitter has completed its trans-
mission of the LAPD Message, the UNI will generate
an interrupt to the local μC/μP (if enabled). Afterwards,
the LAPD Transmitter will proceed to retransmit the
LAPD Message, repeatedly at one second intervals. In
between these transmissions of the LAPD Message,
the LAPD Transmitter will be sending a continuous
stream of “Flag Sequence Bytes”. The LAPD Trans-
mitter will continue this behavior until the user has
disabled the LAPD Transmitter by writing a “0” to bit 0
(TxLAPD Enable) within the Tx DS3 LAPD Configu-
ration Register. If the LAPD Transmitter is inactive,
then it will continuously send the Flag Sequence
octets (via the “DL” bits of each outbound DS3
Frame) to the Far-End Receiver.
Note:
In order to prevent the user’s data (the payload por-
tion of the LAPD Message Frame) from mimicking the “Flag
Sequence” byte, the LAPD Transmitter will insert a “0” into
the LAPD data stream immediately following the detection
of five (5) consecutive “1s” (this “stuffing” occurs only while
the information payload is being transmitted). The ‘Far End’
LAPD Receiver (see Section 7.1.2.6) will have the respon-
sibility of detecting the 5 consecutive “1s” and removing the
subsequent “0” from the payload portion of the incoming
LAPD message.
Figure 52 presents a flow chart depicting the proce-
dure (in ‘white boxes’) that the user should use in
order to transmit a LAPD message. This figure also
indicates (via the “shaded” boxes) what the LAPD
Transmitter circuitry will do before and during
message transmission.
Tx DS3 LAPD Status/Interrupt Register (Address = 1Fh)
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
Tx DL Start
Tx DL Busy
TxLAPD
Interrupt Enable
TxLAPD
Interrupt Status
R/W
R/O
R/W
RUR