16 t1 programmable in-band loop code detection, T1 programmable in-band loop code detection – Rainbow Electronics DS26519 User Manual
Page 82

DS26519 16-Port T1/E1/J1 Transceiver
82 of 310
9.9.16 T1 Programmable In-Band Loop Code Detection
The DS26519 can generate and detect a repeating bit pattern from one to eight bits or 16 bits in length. This
function is available only in T1 mode.
Table 9-34. Registers Related to T1 In-Band Loop Code Detection
REGISTER
FRAMER 1
ADDRESSES
FUNCTION
Receive In-Band Code Control Register
(
)
082h
Used for selecting length of receive in-
band loop code register.
Receive Up Code Definition Register 1
(
0ACh
Receive up code definition register 1.
Receive Up Code Definition Register 2
(
0ADh
Receive up code definition register 2.
Receive Down Code Definition Register 1
(
)
0AEh
Receive down code definition register 1.
Receive Down Code Definition Register 2
(
)
0AFh
Receive up code definition register 2.
Receive Spare Code Register 1 (
09Ch
Receive spare code register 1.
Receive Spare Code Register 2 (
09Dh
Receive spare code register 2.
Receive Real-Time Status Register 3 (
)
0B2h
Real-time loop code detect.
Receive Latched Status Register 3 (
092h
Latched loop code detect bits.
Receive Interrupt Mask Register 3 (
0A2h
Mask for latched loop code detect bits.
Note: The addresses shown above are for Framer 1.
The framer has three programmable pattern detectors. Typically, two of the detectors are used for “loop-up” and
“loop-down” code detection. The user will program the codes to be detected in the Receive Up Code Definition
Registers 1 and 2 (
) and the Receive Down Code Definition Registers 1 and 2
) registers and the length of each pattern will be selected via the
register.
There is a third detector (spare) and it is defined and controlled via the
registers. When detecting a 16-bit pattern both receive code definition registers are used together to form a 16-bit
register. For 8-bit patterns, both receive code definition registers will be filled with the same value. Detection of a
1-, 2-, 3-, 4-, 5-, 6-, and 7-bit pattern only requires the first receive code definition register to be filled. The framer
will detect repeating pattern codes in both framed and unframed circumstances with bit error rates as high as
10E–2. The detectors can handle both F-bit inserted and F-bit overwrite patterns. Writing the least significant byte
of receive code definition register resets the integration period for that detector. The code detector has a nominal
integration period of 48ms. Hence, after about 48ms of receiving a valid code, the proper status bit (LUP, LDN, and
LSP) will be set to a one. Note that real-time status bits, as well as latched set and clear bits are available for LUP,
LDN and LSP (
). Normally codes are sent for a period of 5 seconds. It is recommend that the
software poll the framer every 50ms to 100ms until 5 seconds has elapsed to ensure that the code is continuously
present.