ADE7953
Data Sheet
CHECKSUM REGISTER
The ADE7953 includes a 32-bit checksum register, CRC
1023
ARRAY OF 1024 BITS
0
LFSR
GENERATOR
(Address 0x37F), which warns the user if any of the important
configuration, control, or calibration registers are modified. The
checksum register helps to ensure that the meter configuration
Figure 75. Checksum Register Calculation
is not modified from its desired state during normal operation.
g 0
g 1
g 2
g 3
g 31
Table 12 lists the registers included in the checksum. An
additional eight internal reserved registers are also included in
b 0
b 1
b 2
b 31
FB
the checksum. The ADE7953 computes the cyclic redundancy
check (CRC) based on the IEEE 802.3 standard. The contents
of the registers are introduced one by one into a linear feedback
shift register (LFSR) based generator, starting with the least
significant bit. The 32-bit result is written to the CRC register.
Figure 75 shows how the LFSR works. The registers shown in
Table 12 and the eight 8-bit reserved internal registers form the
bits [a 1023 , a 1022 ,…, a 0 ] used by LFSR. Bit a 0 is the least significant
bit of the first register to enter LFSR; Bit a 1023 is the most signifi-
cant bit of the last register to enter LFSR.
The formulas that govern LFSR are as follows:
b i (0) = 1, i = 0, 1, 2, …, 31, the initial state of the bits that form
the CRC. Bit b 0 is the least significant bit, and Bit b 31 is the most
significant.b i (0) = 1, i = 0, 1, 2, …, 31, the initial state of the bits
that form the CRC. Bit b 0 is the least significant bit, and Bit b 31 is
the most significant.
g i , i = 0, 1, 2, …, 31 are the coefficients of the generating
polynomial defined by the IEEE802.3 standard as follows:
G ( x ) = x 32 + x 26 + x 23 + x 22 + x 16 + x 12 + x 11 + x 10 + x 8 + x 7 + x 5 +
x 4 + x 2 + x + 1.
g 0 = g 1 = g 2 = g 4 = g 5 = g 7 = 1
LFSR
a 1023 , a 1022 ,...., a 2 , a 1 , a 0
Figure 76. LFSR Generator Used in Checksum Register Calculation
The CRC is disabled by default and can be enabled by setting
the CRC_ENABLE bit (Bit 8) of the CONFIG register
(Address 0x102). When this bit is set, the CRC is computed at
a rate of 6.99 kHz. Because the CRC is disabled by default, the
default value is 0xFFFFFFFF. Once enabled, with all registers at
their default value, the CRC is 0x48739163.The checksum can
be used to ensure that the registers included in the checksum
are not inadvertently changed by periodically reading the value
in the CRC register (Address 0x37F) after the meter is
configured.
If two consecutive readings differ, it can be assumed that one
of the registers has changed value and, therefore, the configuration
of the ADE7953 has changed. Note that since the CRC updates at
a rate of 6.99 kHz, consecutive reads should be at least 143 μs
(1/6.99 kHz) apart. The recommended response is to issue a
hardware/software reset, which resets all ADE7953 registers,
including reserved registers, to their default values. The
ADE7953 should then be reconfigured with the design-specific
settings.
g 8 = g 10 = g 11 = g 12 = g 16 = g 22 = g 26 = g 31 = 1
All of the other g i coefficients are equal to 0.
FB ( j ) = a j – 1 XOR b 31 ( j – 1)
b 0 ( j ) = FB ( j ) AND g 0
b i (j) = FB ( j ) AND g i XOR b i ? 1 ( j – 1), i = 1, 2, 3, ..., 31
(50)
(51)
(52)
(53)
An interrupt associated with the checksum feature can provide
an external warning signal on the IRQ pin if the CRC register
value changes after initial configuration. This interrupt is dis-
abled by default and can be enabled by setting the CRC bit (Bit 21)
in the IRQENA register (Address 0x22C and Address 0x32C).
When this interrupt is enabled, an external interrupt is issued
if the CRC value changes from the value that it held at the time
Equation 51, Equation 52, and Equation 53 must be repeated for
that it was enabled.
j = 1, 2, …, 1024. The value written into the Checksum register
contains the Bit b i (1024) , i = 0, 1, …, 31.
Rev. B | Page 58 of 72
相关PDF资料
EVAL-ADF4002EBZ1 BOARD EVAL FOR ADF4002
EVAL-ADG788EBZ BOARD EVALUATION FOR ADG788
EVAL-ADM1021AEB BOARD EVAL FOR ADM1021
EVAL-ADM1023EB BOARD EVAL FOR ADM1023
EVAL-ADM1031EB BOARD EVAL FOR ADM1031
EVAL-ADM1062TQEBZ BOARD EVALUATION FOR ADM1062TQ
EVAL-ADM1075CEBZ BOARD EVAL FOR ADM1075
EVAL-ADM1087EBZ BOARD EVALUATION FOR ADM1087
相关代理商/技术参数
EVAL-ADF4001EBZ2 制造商:Analog Devices 功能描述:Evaluation Board For Pll Frequency Synthesizer 制造商:Analog Devices 功能描述:ADF4001 PLL SYNTHESIZER EVAL BOARD
EVAL-ADF4002EB1 制造商:Analog Devices 功能描述:EVAL BOARD - Bulk
EVAL-ADF4002EBZ1 功能描述:BOARD EVAL FOR ADF4002 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 产品培训模块:Obsolescence Mitigation Program 标准包装:1 系列:- 主要目的:电源管理,电池充电器 嵌入式:否 已用 IC / 零件:MAX8903A 主要属性:1 芯锂离子电池 次要属性:状态 LED 已供物品:板
EVAL-ADF4007EBZ1 功能描述:BOARD EVALUATION FOR ADF4007EB1 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:PSoC® 主要目的:电源管理,热管理 嵌入式:- 已用 IC / 零件:- 主要属性:- 次要属性:- 已供物品:板,CD,电源
EVAL-ADF4106EB1 制造商:Analog Devices 功能描述:PLL, Frequency Synthesizer
EVAL-ADF4106EBZ1 功能描述:BOARD EVAL FOR ADF4106 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:PSoC® 主要目的:电源管理,热管理 嵌入式:- 已用 IC / 零件:- 主要属性:- 次要属性:- 已供物品:板,CD,电源
EVAL-ADF4108EB1 制造商:AD 制造商全称:Analog Devices 功能描述:PLL Frequency Synthesizer
EVAL-ADF4108EBZ1 制造商:Analog Devices 功能描述:Evaluation Board For ADF4108 制造商:Analog Devices 功能描述:ADF4108 Evaluation Board 制造商:Analog Devices 功能描述:ADF4108, PLL FREQUENCY SYNTHESIZER, EVAL BOARD; Silicon Manufacturer:Analog Devices; Silicon Core Number:ADF4108; Kit Application Type:Clock & Timing; Application Sub Type:PLL Frequency Synthesizer; MCU Supported Families:ADF4108 ;RoHS Compliant: Yes