Att7053bu N
Att7053bu N
Att7053bu N
ATT7053BU
User Manual
1/50
ATT7053BU User Manual(210-SD-139)
Table of Contents
1. General Description ........................................................................................................................................... 5
2. Block Diagram................................................................................................................................................... 6
3. Pins Description................................................................................................................................................. 6
3.1. PIN CONFIGURATION.................................................................................................................... 6
3.2. PIN Function Descriptions................................................................................................................. 7
3.3. PIN status when be reset.................................................................................................................... 8
3.4. The definition of I/O high or low level.............................................................................................. 8
3.5. Electric Specification....................................................................................................................... 10
4. ATT7053BUModule Description .................................................................................................................... 11
4.1. ADC module.................................................................................................................................... 11
4.2. VREF Parameter.............................................................................................................................. 11
4.3. System power check ........................................................................................................................ 11
4.4. EMU module function ..................................................................................................................... 12
4.4.1. wave sampling function ........................................................................................................... 12
4.4.2. Power\RMS\Frequency ............................................................................................................ 12
4.4.3. Power\Rapid pulse................................................................................................................... 13
4.4.4. EMU state instruction.............................................................................................................. 14
4.4.5. Current channel 2 gain calibration ......................................................................................... 14
4.4.6. Interruption output................................................................................................................... 14
5. SPI communication function ........................................................................................................................... 14
5.1. General description .......................................................................................................................... 14
5.2. ATT7053BU SPI interface introduction .......................................................................................... 14
5.3. ATT7053BU SPI interface communication definition..................................................................... 14
5.4. SPI communication waveform......................................................................................................... 15
5.5. The example of ATT7053BU SPI communication .......................................................................... 16
5.6. ATT7053BU communication interface error definition................................................................... 17
5.7. ATT7051A/53A/59 checksum ......................................................................................................... 17
5.8. ATT7053BU SPI I/O status ............................................................................................................. 17
5.9. Communication CS pull-down mode............................................................................................... 17
6. Register function.............................................................................................................................................. 18
6.1. Measurement Parameter Registers List ........................................................................................... 18
6.2. Measurement Parameter Registers Explain ..................................................................................... 18
6.2.1. ADC waveform register(SPLI1,SPLI2,SPLU) ......................................................................... 18
6.2.2. RMS value output((I1Rms, I2Rms, URms) ......................................................................... 19
6.2.3. Voltage frequency measurement: ............................................................................................. 20
2/50
ATT7053BU User Manual(210-SD-139)
3/50
ATT7053BU User Manual(210-SD-139)
4/50
ATT7053BU User Manual(210-SD-139)
1. General Description
The ATT7053BU is a single-phase multi-function energy measurement chip with SPI serial interface .
Wide supply voltage operation :4.5V-5.5V.
Recommends 6MHz crystal oscillator.
Feature:
z Three 19 bit sigma-delta ADCs
z Over Dynamic range of 3000:1.
z Supply active power and reactive power of two channels simultaneously.
z Support active, reactive, apparent power measurement and energy pulse output.
z Simultaneously supply RMS measurement of three ADC channels, and the frequency of voltage channel
z Support SPI communication manner
z Support zero-crossing interrupt, sampling interrupt, energy pulse interrupt and calibration interrupt.
z Less than 4.5 mA current supply in normal mode, less than 2mA current supply in burglar-proof electricity
and voltage-depreciation mode.
z Support the power supply monitoring and battery monitoring.
z LBOR
z SSOP 24(ATT7053BU)
5/50
ATT7053BU User Manual(210-SD-139)
2. Block Diagram
VIN+ PF
PGA
I1IN+
PGA
Power Clock
Monitor Unit Generator
3. Pins Description
6/50
ATT7053BU User Manual(210-SD-139)
7/50
ATT7053BU User Manual(210-SD-139)
Input/Output Characteristics
Parameter Symbol Min Type Max
High-level Input All Pins VIH 0.7Vcc
voltage Except Reset
8/50
ATT7053BU User Manual(210-SD-139)
9/50
ATT7053BU User Manual(210-SD-139)
10/50
ATT7053BU User Manual(210-SD-139)
4. ATT7053BUModule Description
11/50
ATT7053BU User Manual(210-SD-139)
4.4.2. Power\RMS\Frequency
(1) Support RMS measurement of three ADCs, support RMS offset calibration of two current channel
(2) Support two-channel active, reactive, apparent power measurement and two-channel small signal power
offset calibration at
12/50
ATT7053BU User Manual(210-SD-139)
13/50
ATT7053BU User Manual(210-SD-139)
This register makes the current RMS of the two channels keep consistent , because the outside of the two
channels can not be utterly same.
The definition of the SPI interface is the same as the standard SPI interface
(4)SPICS: As the select signal of the ATT7053BU,it is effected when the power is low .Customer can start
or terminate the SPI one time transmission by the SPICS’s high and low, Customer also can judge the
reading and writing fulfill of the register according to the fixed 8bits communication address,24bits
communication data mode in the situation when SPICS is always being pulled low.
14/50
ATT7053BU User Manual(210-SD-139)
ATT7053BU . When transfer, the MSB is transmitted firstly, the LSB is transmitted lately.
(3)The interior SPI data register will be cleared after the receiving operation of command register.
(4) SPI communication frame structure:
Command register: +7 bits(Read/Write bit) register address (receive master commands)
Data register: 3 bytes (24bit) (receive master data)
CS: SPI select signal(INPUT),the control line of allowing accessing SPI.CS switches from high level to low
level denotes SPI communications starting, CS switches from low level to high level denotes SPI
communications is over.
DIN:serial data input(INPUT),used to transmit data to ATT7053BU
DOUT:serial data output(OUTPUT),used to read data from ATT7053BU
SCLK:serial clock(INPUT),control data transmission rate. Latch the data of register in DOUT at the rising
edge of SCLK, and sample the data of the DIN to the ATT7053BU at the falling edge of the SCLK.
CS
SCLK
DIN
76543210
Command Data
CS
SCLK
DIN
7 6 5 4 3 2 1 023 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
15/50
ATT7053BU User Manual(210-SD-139)
Instructing the read/write bit of the register to be “0” when reading the register, Instructing the read/write bit of the
register to be “1” when writing the register,
For example: If the customer want to read form register EMUIE(30H),it should be sent the data as below:
If the customer want to write into register EMUIE(30H),it should be sent the data as below:
16/50
ATT7053BU User Manual(210-SD-139)
(1)If the CS signal was pulled up in communication, a corresponding error flags will be given ,simultaneously
the SPIWrongIE will be set and be released through the IRQ.
(2) If the written data is less than 24 bytes, the result is invalid and an error flag will be given.
(3) Setting 8bit(1byte) as 1unit.So CS is pulled up once after customer only write into 1byte+4bits data, it will
cause write-into fault and show the error flag. If customer only give 1byte+4bits clock, then want to read and get
the register data, it will cause read&write fault, and show the error flag at the same time.
(4)All error flags can generate/ IRQ to inform master. Register enable controls whether to issue the interrupt and
simultaneously this error will not affect the next data transfer.
(1) BCKREG: Save the last BUFF data values in SPI communication.
(2) ComChecksum: The check of SPI transmit data frames and the read of register will result in the recalculation
of the checksum register.
(3) In communication user can select one of the two register: BCKREG and ComChecksum.
(4) SumChecksum: Accumulate all the calibration registers and the result will be put into the 3-byte
SumChecksum. This registers updates in fixed time so users can judge error by check ing the data of the register.
(1)In normal mode , the SPIDO pin is high impendence state and the SPIDI pin is input state when ATT7053BU
is not be slaved.
(2) When ATT7053BU goes to Reset , the output pin SPIDO is in high impedence state and the input pins
SPIDI,SPICLK,SPICSCS are in input state .
CS be keeping in pull-down mode and CS be in pull-up&pull-down mode are the same on time sequence.
17/50
ATT7053BU User Manual(210-SD-139)
6. Register function
18/50
ATT7053BU User Manual(210-SD-139)
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Note: The update speed of waveform register is controlled by 3bit of time configuration register FreqCFG.
[2:0],these 3 registers have 19 effected bit,bit18 is flag bit, and this flag bit is extend to 24bits.In other
words,bitt18-bit23 are all the flag bits of the reading data from SPI.
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
19/50
ATT7053BU User Manual(210-SD-139)
Bit23 22 21 20 … 3 2 1 Bit0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Note: RMS value is 24-bit unsigned data, its highest bit is always set as 0.The parameter updating frequency
is 1.9Hz(EMU clock frequency is 1M)
Bit15 14 13 12 … 3 2 1 Bit0
Write: X X X X X X X
Reset: 1 1 1 1 1 1 1
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
20/50
ATT7053BU User Manual(210-SD-139)
Bit23 22 21 20 … 3 2 1 Bit0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Note: All the power format are set as binary complement, the msb is sign bit. Parameter updated frequency is
1.9Hz
Channel 1 power parameter PowerP1 and PowerQ1 are binary complement, 24 bit data, thereinto, the msb is
sign bit. PowerS output the apparent power of Channel 1 or Channel 2 according to user's choice.
Assume the data in register is PowerP1, then the Preg for calculation is
Preg=PowerP1 if PowerP1<2^23
Preg=PowerP1-2^24 if PowerP1>=2^23
Assume the displayed active power is P, and conversion coefficiency is Kpqs
then P=Preg×Kpqs
Kpqs is calculated when basic input.
The coefficient of reactive power and apparent power is equal to active power coefficient Kpqs.
Example: When inputing 1000w active power, the average value of PowerP1 is 0x00C9D9(51673), then
Kpqs=1000/51673=0.01935
When the value is 0xFF4534, the representative power value is:
P=Kpqs*Preg=0.01935*(-47820)= -925.3 w
(Preg=PowerP1-2^24=-47820)
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Note: This energy accumulated register default configuration is set to non-cleaning “0” after reading.It can be
allocated to cleaning “0” by register EMUCFG13(EnergyClr). The energy minimum unit of the register is 1/EC
kWh.
Reactive Energy Register (EnergyQ 0x0EH)
Reactive Energy Register(EnergyQ) Address: 0EH
Bit23 22 21 20 … 3 2 1 Bit0
Write: X X X X X X X
21/50
ATT7053BU User Manual(210-SD-139)
Reset: 0 0 0 0 0 0 0
Note: This energy accumulated register default config is set to non-cleaning “0” after reading .It can be allocated
to cleaning “0” by register EMUCFG13(EnergyClr). The energy minimum unit of the register is 1/EC kWh.
Apparent Energy Register (EnergyS 0x0FH)
Apparent Energy Register(EnergyS) Address: 0FH
Bit23 22 21 20 … 3 2 1 Bit0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Note: This energy accumulated register default configuration is set to non-cleaning “0” after reading . The
energy minimum unit of the register is 1/EC kWh. Energy register’s default configuration is set to non-cleaning
“0” after reading ,but it can be set to cleaning “0” after reading through modifying EnergyClr to 1.
Example: pulse costant is 3200imp/kWh, when the register’s value is 0x001000(4096), then the representive
energy is
E=4096/3200=1.28 kWh
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
22/50
ATT7053BU User Manual(210-SD-139)
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
Backup Data Register saved the last SPI transmission data. The 3 bytes represent high, medium and low byte of
the data.
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
ComChecksum Register:Every time the SPI communication commands and data is accumulated into the low two
bytes of ComChecksum register, Bit16 .... bit23 of ComChecksum will save the last SPI communication
command.
SPI communication data adopts single byte addition.
Write: X X X X X X X
Reset: 0 0 0 0 0 0 0
SumChecksum Register is the sum of all calibration parameter registers, from 40H to 6EH (not include 46H ---
4FH).
All calibration registers adopt three bytes unsigned addition ,the high byte of the two / single-byte registers will
be filled 0.
23/50
ATT7053BU User Manual(210-SD-139)
Write: X X X X X X X X
Reset: 0 0 0 0 0 0 0 0
Write: X X X X X X X X
Reset: 0 0 0 0 0 0 1 0
24/50
ATT7053BU User Manual(210-SD-139)
Note: BOR resetting is owing the highest priority ,LBOR’s resetting will cause TEST_RST and E_RST flag to clean
0,but conversely, TEST_RST ‘s and E_RST’s working will not cause LBOR flag to clear 0.The flag only clear 0
after reading.
Read:
Code23 Code22 Code21 Code20 Code19 Code18 Code17 Code16
Write:
Reset: 0 1 1 1 0 0 0 0
Bit15 14 13 12 11 10 9 Bit8
Read:
Code15 Code14 Code13 Code12 Code11 Code10 Code9 Code8
Write:
Reset: 0 1 0 1 0 0 1 1
Bit7 6 5 4 3 2 1 Bit0
Read:
Code7 Code6 Code5 Code4 Code3 Code2 Code1 Code0
Write:
Reset: 1 0 1 1 0 0 0 0
Note:
The register default value is HEX data: ATT7053B0
25/50
ATT7053BU User Manual(210-SD-139)
26/50
ATT7053BU User Manual(210-SD-139)
Read: PRms
CZCROS2_IE CZCROS1_IE PEOFIE QEOFIE SEOFIE
Write: UpdatesIE
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
TampIE PFIE QFIE SFIE SPLIE ZXIE SPIWrongIE
Write:
Reset: 0 0 0 0 0 0 0 0
27/50
ATT7053BU User Manual(210-SD-139)
Read: PRms
RSTIF CZCROS2_IF CZCROS1_IF PEOFIF QEOFIF SEOFIF
Write: UpdatesIF
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Write: X X X X X X X X
Reset: 0 0 0 0 0 0 0 0
28/50
ATT7053BU User Manual(210-SD-139)
after reading
PEOFIF Active power register overflows,the flag is set, clears after reading
QEOFIF Reactive power register overflows, the flag is set, clears after
reading
SEOFIF Apparent power register overflows, the flag is set, clears after
reading
TampIF Tamper occurs, the flag is set, clears after reading
PFIF PF sends pulse, the flag is set, clears after reading
QFIF QF sends pulse, the flag is set, clears after reading
SFIF QF sends pulse, the flag is set, clears after reading
SPLIF Waveform register updates, the flag is set, clears after reading
ZXIF Voltage overflows, the flag is set, clears after reading
SPIWrongIF SPI communication error interruption signal flag , clears after
reading
Read:
WPCFG7* WPCFG6 WPCFG5 WPCFG4 WPCFG3 WPCFG2 WPCFG1 WPCFG0
Write:
Reset: 0 0 0 0 0 0 0 0
Note:
WPCFG = 0xA6: Written-protect enabled, only operate 50H to 71H of calibration parameter register but can not
operate 40H to 45H of calibration parameter register
WPCFG = 0xBC:Written-protect enabled, only operate 40H to 45H of calibration parameter register but can not
operate 50H to 71H of calibration parameter register
WPCFG = other values: Written-protect disabled, invalidly operate to calibration parameter register.
As long as the register WPCFG value does not change , Written-protect will be continuously effectively after being
enabled.
Read:
SRST7* SRST 6 SRST 5 SRST 4 SRST 3 SRST 2 SRST 1 SRST 0
Write:
29/50
ATT7053BU User Manual(210-SD-139)
Reset: 0 0 0 0 0 0 0 0
Note:SRSTREG will reset the chip and then the register will be cleared.
Read:
EnergyClr QMOD1 QMOD0 PMOD1 PMOD0 QSSelect
Write:
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
Zxd1 Zxd0 FLTON CHNSEL* CIADD* TampSel
Write:
Reset: 0 0 0 0 0 0 0 0
30/50
ATT7053BU User Manual(210-SD-139)
ZXD1 ZXD0 Selection for voltage zero-crossing out put and interruption
0 0 Positive zero-crossing interruption produces, when ZXCFG=1,the pin
outputs negative zero-crossing waveform
0 1 Negative zero-crossing interruption produces, when ZXCFG=1,the pin
31/50
ATT7053BU User Manual(210-SD-139)
Read:
CFP1
Write:
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
CFP0 Emuclk_ctrl1 Emuclk_ctrl0 SPL2 SPL1 SPL0
Write:
Reset: 1 0 0 0 1 0 0 0
32/50
ATT7053BU User Manual(210-SD-139)
0 0 2M
0 1 1M
1 X 1M
Form 7-5
Read:
AUTO Rosi_i2_en Rosi_i1_en WDTEN
Write:
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
SRun QRun PRun HPFONU HPFONI2 HPFONI1
Write:
Reset: 0 1 1 1 1 1 1 0
33/50
ATT7053BU User Manual(210-SD-139)
Read:
Adc_i2on Adc_i1on Adc_uon
Write:
Reset: 0 0 0 0 0 0 1 1
34/50
ATT7053BU User Manual(210-SD-139)
Read:
Write:
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
POS IRQCFG
Write:
Reset: 0 0 0 0 0 0 0 0
Read:
GP1_15 GP1_14 GP1_13 GP1_12…GP1_3 GP1_2 GP1_1 GP1_0
Write:
Reset: 0 0 0 0 0 0 0
Note:
The register is 16 bit signed, the highest bit is sign bit.
When Power factor is 1, the calibration error is Err%
Pgain = -Err /(1+Err)
If Pgain is positive, then the GP1 written value: Pgain * 32768
If Pgain is negative, then the GP1 written value: 65536 - Pgain * 32768
Read:
GQ1_15 GQ1_14 GQ1_13 GQ1_12…GQ1_3 GQ1_2 GQ1_1 GQ1_0
Write:
Reset: 0 0 0 0 0 0 0
35/50
ATT7053BU User Manual(210-SD-139)
Bit15 14 13 12 … 3 2 1 Bit0
Read:
GS1_15 GS1_14 GS1_13 GS1_12…GS1_3 GS1_2 GS1_1 GS1_0
Write:
Reset: 0 0 0 0 0 0 0
Read:
GP2_15 GP2_14 GP2_13 GP2_12…GP2_3 GP2_2 GP2_1 GP2_0
Write:
Reset: 0 0 0 0 0 0 0
Bit15 14 13 12 … 3 2 1 Bit0
Read:
GQ2_15 GQ2_14 GQ2_13 GQ2_12…GQ2_3 GQ2_2 GQ2_1 GQ2_0
Write:
Reset: 0 0 0 0 0 0 0
36/50
ATT7053BU User Manual(210-SD-139)
Bit15 14 13 12 … 3 2 1 Bit0
Read:
GS2_15 GS2_14 GS2_13 GS2_12…GS2_3 GS2_2 GS2_1 GS2_0
Write:
Reset: 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
Phase 1_7 Phase 1_6 Phase 1_5 Phase1_4 Phase 1_3 Phase1_2 Phase 1_1 Phase 1_0
Write:
Reset: 0 0 0 0 0 0 0 0
Note:
The register is in binary complement form, the highest bit is sign bit.
The default value of the register is FF00H
Default value corresponds to the case when femu = 1M,it is no need to calibration under 50Hz signal frequency.
It is need to calibrate according to below formula:
Reactive power0.5L,calibrates when the U and I angle is 30 degree, power Q error value is Err%
QphasCal calculation formula is as below:
Result = Err%*32768/1.732-256
If Result is positive ,then QphsCal = Result;
If Result is negative ,then QphsCal = 65536+Result;
37/50
ATT7053BU User Manual(210-SD-139)
Read:
PGA242 PGA241 DGI3 DGI2 DGI1 DGI0
Write:
Reset: 0 0 0 0 0 0 0 0
Bit7 6 5 4 3 2 1 Bit0
Read:
DGU1 DGU0 PGA3 PGA2 PGA1 PGA0 UPGA1 UPGA0
Write:
Reset: 0 0 0 0 0 0 0 0
PGA242 PGA3 PGA2 I2Gain PGA241 PGA1 PGA0 I1Gain UPGA1 UPGA0 UGAIN
1 X X PGA=24 1 X X PGA=24
Note: the I1Gain,I2Gain,UGain mentioned here is the channel gain of ADC anolog part.
Read:
I2G15 I2G14 I2G13 I2G12…I2G3 I2G2 I2G1 I2G0
Write:
Reset: 0 0 0 0 0 0 0
Note: The register is in binary complement form, the highest bit is character bit.
38/50
ATT7053BU User Manual(210-SD-139)
Calibrate the output value of the two-way current RMS to be consistent when the input is the same.
Read:
I1OS15 I1OS14 I1OS13 I1OS12…I1OS3 I1OS2 I1OS1 I1OS0
Write:
Reset: 0 0 0 0 0 0 0
Note:
Use it under the situation when HFP is closed.
When the input channel signal is 0,we can get the values of I1Off,I2Off,UOff registers through automatically
calculating AUTODC. Users can obtain these values and save them.
In later , AUTODC function is not used and user just need to re-write the last stored values of I1Off,I2Off,UOff
registers in the case of disabling high-pass filter.
Read:
I2OS15 I2OS14 I2OS13 I2OS12…I2OS3 I2OS2 I2OS1 I2OS0
Write:
Reset: 0 0 0 0 0 0 0
Read:
UOS15 UOS14 UOS13 UOS12…UOS3 UOS2 UOS1 UOS0
Write:
Reset: 0 0 0 0 0 0 0
Note: The minimum unit is identical with the minimum unit of the ADC output 16 bit data. Offset calibration
is only active when high-pass filter is disenabled.
I1/I2/U is need to disabled with high-pass filter together, otherwise it will cause phase error.
39/50
ATT7053BU User Manual(210-SD-139)
Read:
PQS15 PQS 14 PQS 13 PQS 12…PQS 7 PQS 6 PQS 5…PQS 2 PQS 1 PQS 0
Write:
Reset: 0 0 0 0 1 0 0 0
Note: PQStart is 16 bits unsigned data. The low 16 bit of the absolute value of P/Q ((PowerP 0x0AH /
PowerQ 0x0BH, 24-bit signed) compare with PQStart [15:0]:
|P|<PQStart, PF does not output pulse.
|Q|<PQStart, QF does not output pulse.
|P|&|Q|<PQStart, SF does not output pulse.
Application:
1, Input Ib,Un after calibration.
2, Read the 24bit complement x1of PowerP value, get the original code x2.
3, Setting the written PQStart value is Y, if the required input for starting is 0.4% Ib ,then:
Y = x 2 * 0.2%
Read: 0
HFC14 HFC13 HFC12…HFC7 HFC6 HFC5….HFC2 HFC1 HFC0
Write: X
Reset: 0 0 0 0 1 0 0 0
Note: HFConst is 15-bit unsigned data. Using its lowest 15bits to compare with the absolute value of fast
pulse counter register 0x6FH~0x71H. If it is lager than or equal to HFConst, then the corresponding PF/QF/SF
will output a pulse.
The default value of HFConst is 0x0080。
6.4.24. Tampering threshold value |P| or IRMS range setting up among channels (Chk):
40/50
ATT7053BU User Manual(210-SD-139)
Bit7 6 5 4 3 2 1 Bit0
Read:
CHK7 CHK6 CHK5 CHK4 CHK3 CHK2 CHK1 CHK0
Write:
Reset: 0 0 0 1 0 0 0 0
Note: Tampering threshold current register adopts binary complement format, the range is [0, +1).
ICHK=ICK7*21+ ICK6*22+ ICK5*23+ …+ ICK2*26+ ICK1*27+ ICK0*28
Default value: 0.0625, namely 6.25%.
After starting automatic anti-tampering.When choose IRMS as judgment of anti-tamper,if the relative
difference between current 1 and 2 larger than IChk, then larger current channel will be selected automatically to
measure power and energe, and set TAMP to 1 at the meantime. If current 2 is larger than current 1, then set
I2GTI1 to 1.
When choose Active Power(PowerP)as judgment of anti-tamper, if the relative difference between PowerP1
and PowerP2 larger than IChk, then larger power will be selected automatically to measure power and energe,
and set TAMP to 1 at the meantime.
Read: IPTAMP15
IPTAMP14 IPTAMP13 IPTAMP12…IPTAMP3 IPTAMP2 IPTAMP1 IPTAMP0
Write: X
Reset: 0 0 0 0 0 0 0
Note: The register default value is 0x0020.The format is the same as current RMS register or power register,
ITAMP[15:0] is the high 16 bits current rms register or power register.
Note: The highest bit15 of IPtamp is 0 and can be written ineffectively. The maximum written value is
0x7FFF.
After enable auto anti-tampering scheme:
When choose RMS as judgment of anti-tamper ,if the rms current value of channel 1 and 2 is both lower than
IPTAMP, constantly select channel 1 as effective input, bit TAMP, I2PPXGTI1P and CHNSEL all are 0.
When choose Active Power(PowerP)as judgment of anti-tamper, if the value of PowerP1 and PowerP2 is
both lower than IPTamp, constantly select channel 1 as effective input, bit TAMP, I2PPXGTI1P and CHNSEL all
are 0.
41/50
ATT7053BU User Manual(210-SD-139)
Bit7 6 5 4 3 2 1 Bit0
Read:
P1OFF7 P1OFF6 P1OFF5 P1OFF4 P1OFF3 P1OFF2 P1OFF1 P1OFF0
Write:
Reset: 0 0 0 0 0 0 0 0
Read:
P2OFF7 P2OFF6 P2OFF5 P2OFF4 P2OFF3 P2OFF2 P2OFF1 P2OFF0
Write:
Reset: 0 0 0 0 0 0 0 0
Read:
Q1OFF7 Q1OFF6 Q1OFF5 Q1OFF4 Q1OFF3 Q1OFF2 Q1OFF1 Q1OFF0
Write:
Reset: 0 0 0 0 0 0 0 0
Read:
Q2OFF7 Q2OFF6 Q2OFF5 Q2OFF4 Q2OFF3 Q2OFF2 Q2OFF1 Q2OFF0
Write:
42/50
ATT7053BU User Manual(210-SD-139)
Reset: 0 0 0 0 0 0 0 0
Reset: 0 0 0 0 0 0 0 0
Reset: 0 0 0 0 0 0 0 0
Read:
ZC15 ZC154 ZC13 ZC12…ZC3 ZC2 ZC1 ZC0
Write:
Reset: 0 0 0 0 0 0 0
Note: The RMS value of current is compared with ZCrossCurrent. ZCrossCurrent is corresponding to the low
43/50
ATT7053BU User Manual(210-SD-139)
Bit15 14 13 12 … 3 2 1 Bit0
Read:
GPS1_15 GPS1_14 GPS1_13 GPS1_12…GPS1_3 GPS1_2 GPS1_1 GPS1_0
Write:
Reset: 0 0 0 0 0 0 0
Note:
Computational formula of PQ mode’s phase calibration is as below
When the input signal is in high-impedence status ,the user corrects the output error near 0 through PGain
register.
Adjust the input signal to 0.5L ,now the observable error is Err%
If Err is negative: Gphs1 =-Err * 32768/1.732
If Err is positive:Gphs1 = 65536 - Err * 32768/1.732
Bit15 14 13 12 … 3 2 1 Bit0
Read:
GPS2_15 GPS2_14 GPS2_13 GPS2_12…GPS2_3 GPS2_2 GPS2_1 GPS2_0
Write:
Reset: 0 0 0 0 0 0 0
44/50
ATT7053BU User Manual(210-SD-139)
Bit15 14 13 12 … 3 2 1 Bit0
Read:
PFC15 PFC14 PFC13 PFC12…PFC3 PFC2 PFC1 PFC0
Write:
Reset: 0 0 0 0 0 0 0
Bit15 14 13 12 … 3 2 1 Bit0
Read:
QFC15 QFC14 QFC13 QFC12…QFC3 QFC2 QFC1 QFC0
Write:
Reset: 0 0 0 0 0 0 0
Bit15 14 13 12 … 3 2 1 Bit0
Read:
SFC15 SFC14 SFC13 SFC12…SFC3 SFC2 SFC1 SFC0
Write:
Reset: 0 0 0 0 0 0 0
Note:
In order to prevent losing energy when power is down, MCU reads register FCnt/QFCnt/SFCnt’s values back
and saves them when power is down, then rewrites these values in register PFCnt/QFCnt/SFCnt when power is up
next time
When the value of fast pulse counter register PFCnt/QFCnt/SFCnt is greater than /equal to HFconst, the related
PF/QF/SF will overflow a pulse and the value of energy register 0x0DH~0x0FH will accordingly add 1.
45/50
ATT7053BU User Manual(210-SD-139)
46/50
ATT7053BU User Manual(210-SD-139)
− err
θ=
1.732 =-0.00323
47/50
ATT7053BU User Manual(210-SD-139)
48/50
ATT7053BU User Manual(210-SD-139)
7. Application Schematic
49/50
ATT7053BU User Manual(210-SD-139)
8. Package Diagrams
SSOP24:
50/50