
IDT82P5088
UNIVERSAL OCTAL T1/E1/J1 LIU WITH INTEGRATED CLOCK ADAPTER
FUNCTIONAL DESCRIPTION
33
February 5, 2009
3.5.4
INBAND LOOPBACK
When PATT[1:0] bits (MAINT1, 2CH...) are set to ‘11’, the correspond-
ing channel is configured in Inband Loopback mode. In this mode, an acti-
vate/Deactivate Loopback Code is generated repeatedly in transmit
direction per ANSI T1. 403 which overwrite the transmit signals. In receive
direction, the code is detected per ANSI T1. 403, even in the presence of
10-2 bit error rate.
If the Automatic Remote Loopback is enabled by setting ARLP bit
(MAINT0, 2BH...) to ‘1’, the chip will establish/demolish the Remote Loop-
back based on the reception of the Activate Loopback Code/Deactivate
Loopback Code for 5.1 s. If the ARLP bit (MAINT0, 2BH...) is set to ‘0’, the
Remote Loopback can also be demolished forcedly.
3.5.4.1 Transmit Activate/Deactivate Loopback Code
The pattern of the transmit Activate/Deactivate Loopback Code is
defined by the TNLP[7:0] bits (MAINT3, 2EH...). Whether the code repre-
sentsanActivateLoopbackCodeoraDeactivateLoopbackCodeisjudged
by the far end receiver. The length of the pattern ranges from 5 bits to 8 bits,
as selected by the TNLP_L[1:0] bits (MAINT2, 2DH...). The pattern can be
programmed to 6-bit-long or 8-bit-long respectively by repeating itself if it
is 3-bit-long or 4-bit-long. When the PATT[1:0] bits (MAINT1, 2CH...) are
set to ‘11’, the transmission of the Activate/Deactivate Loopback Code is
initiated. If the PATT_CLK bit (MAINT1, 2CH...) is set to ‘0’ and the
PATT[1:0]bits(MAINT1,2CH...)areset to‘00’,thetransmissionofthe Acti-
vate/Deactivate Loopback Code will stop.
The local transmit activate/deactivate code setting should be the same
as the receive code setting in the remote end. It is the same thing for the
other way round.
3.5.4.2 Receive Activate/Deactivate Loopback Code
The pattern of the receive Activate Loopback Code is defined by the
RNLPA[7:0] bits (MAINT4, 2FH...). The length of this pattern ranges from
5 bits to 8 bits, as selected by the RNLPA_L [1:0] bits (MAINT2, 2DH...).
The pattern can be programmed to 6-bit-long or 8-bit-long respectively by
The pattern of the receive Deactivate Loopback Code is defined by the
RNLPD[7:0] bits (MAINT5, 30H...). The length of the receive Deactivate
Loopback Code ranges from 5 bits to 8 bits, as selected by the
RNLPD_L[1:0] bits (MAINT2, 2DH...). The pattern can be programmed to
6-bit-long or 8-bit-long respectively by repeating itself if it is 3-bit-long or 4-
bit-long.
After the Activate Loopback Code has been detected in the receive data
for more than 30 ms (in E1 mode) / 40 ms (in T1/J1 mode), the NLPA_S bit
(STAT0, 36H...) will be set to ‘1’ to declare the reception of the Activate
Loopback Code.
After the Deactivate Loopback Code has been detected in the receive
dataformorethan30ms(InE1mode)/40ms(InT1/J1mode),theNLPD_S
bit(STAT0,36H...)willbesetto‘1’todeclarethereceptionoftheDeactivate
Loopback Code.
When the NLPA_IES bit (INTES, 35H...) is set to ‘0’, only the ‘0’ to ‘1’
transition of the NLPA_S bit will generate an interrupt and set the NLPA_IS
bit (INTS0, 3AH...) to ‘1’. When the NLPA_IES bit is set to ‘1’, any changes
oftheNLPA_SbitwillgenerateaninterruptandsettheNLPA_ISbit(INTS0,
3AH...) to ‘1’. The NLPA_IS bit will be reset to ‘0’ after being read.
When the NLPD_IES bit (INTES, 35H...) is set to ‘0’, only the ‘0’ to ‘1’
transition of the NLPD_S bit will generate an interrupt and set the NLPD_IS
bit (INTS0, 3AH...) to ‘1’. When the NLPD_IES bit is set to ‘1’, any changes
oftheNLPD_SbitwillgenerateaninterruptandsettheNLPD_ISbit(INTS0,
3AH...) to ‘1’. The NLPD_IS bit will be reset to ‘0’ after being read.
3.5.4.3 Automatic Remote Loopback
When ARLP bit (MAINT0, 2BH...) is set to ‘1’, the corresponding chan-
nel is configured into the Automatic Remote Loopback mode. In this mode,
if the Activate Loopback Code has been detected in the receive data for
more than 5.1 s, the Remote Loopback (shown as
Figure-16) will be estab-
lished automatically, and the ARLP_S bit (STAT0, 36H...) will be set to ‘1’
to indicate the establishment of the Remote Loopback. The NLPA_S bit
(STAT0,36H...)issetto‘1’togenerateaninterrupt.Inthiscase,theRemote
Loopback mode will still be kept even if the receiver stop receiving the Acti-
vate Loopback Code.
If the Deactivate Loopback Code has been detected in the receive data
formorethan5.1s,theRemoteLoopbackwillbedemolishedautomatically,
and the ARLP_S bit (STAT0, 36H...) will set to ‘0’ to indicate the demolish-
ment of the Remote Loopback. The NLPD_S bit (STAT0, 36H...) is set to
‘1’ to generate an interrupt.
The Remote Loopback can also be demolished forcedly by setting
ARLP bit (MAINT0, 2BH...) to ‘0’.