DS2152
5.1 Line Code Violation Count Register (LCVCR)
Line Code Violation Count Register 1 High (LCVCR1) is the most significant word and LCVCR2 is the
least significant word of a 16-bit counter that records code violations (CVs). CVs are defined as Bipolar
Violations (BPVs) or excessive 0s. See Table 5.1 for details of exactly what the LCVCRs count. If the
B8ZS mode is set for the receive side via CCR2.2, then B8ZS code words are not counted. This counter is
always enabled; it is not disabled during receive loss of synchronization (RLOS=1) conditions.
LCVCR1: LINE CODE VIOLATION COUNT REGISTER 1 (Address=23 Hex)
LCVCR2: LINE CODE VIOLATION COUNT REGISTER 2 (Address=24 Hex)
(MSB)
LCV15
LCV7
(LSB)
LCV8
LCV0
LCV14
LCV6
LCV13 LCV12 LCV11
LCV5 LCV4 LCV3
LCV10
LCV2
LCV9
LCV1
LCVCR1
LCVCR2
SYMBOL
POSITION NAME AND DESCRIPTION
LCV15
LCV0
LCVCR1.7
LCVCR2.0
MSB of the 16-bit code violation count
LSB of the 16-bit code violation count
LINE CODE VIOLATION COUNTING ARRANGEMENTS Table 5-1
COUNT EXCESSIVE 0S?
B8ZS ENABLED?
WHAT IS COUNTED
IN THE LCVCRs
(RCR1.7)
(CCR2.2)
no
yes
no
no
no
yes
yes
BPVs
BPVs + 16 consecutive 0s
BPVs (B8ZS code words not counted)
BPVs + 8 consecutive 0s
yes
5.2 Path Code Violation Count Register (PCVCR)
When the receive side of the DS2152 is set to operate in the ESF framing mode (CCR2.3=1), PCVCR
will automatically be set as a 12-bit counter that will record errors in the CRC6 code words. When set to
operate in the D4 framing mode (CCR2.3=0), PCVCR will automatically count errors in the Ft framing
bit position. Via the RCR2.1 bit, the DS2152 can be programmed to also report errors in the Fs framing
bit position. The PCVCR will be disabled during receive loss of synchronization (RLOS=1) conditions.
See Table 5-2 for a detailed description of exactly what errors the PCVCR counts.
PCVCR1: PATH VIOLATION COUNT REGISTER 1 (Address=25 Hex)
PCVCR2: PATH VIOLATION COUNT REGISTER 2 (Address=26 Hex)
(MSB)
(note 1)
CRC/FB7
(LSB)
CRC/FB8
CRC/FB0
(note 1)
CRC/FB6
(note 1)
CRC/FB5
(note 1)
CRC/FB4
CRC/FB11 CRC/FB10 CRC/FB9
CRC/FB3 CRC/FB2 CRC/FB1
PCVCR1
PCVCR2
SYMBOL
POSITION NAME AND DESCRIPTION
CRC/FB11
CRC/FB0
PCVCR1.3
PCVCR2.0
MSB of the 12-Bit CRC6 Error or Frame Bit Error Count
(note #2)
LSB of the 12-Bit CRC6 Error or Frame Bit Error Count
(note #2)
39 of 93