Translated from Chinese (Simplified) to English - www.onlinedoctranslator.
com
BL0942 Built-in clock calibration-free measurement chip
Version Information
Change time Modifier content
2020-04-11 HCJ create,V1.0: External release version;
BL0942Application Guide
Table of contents
Version Information................................................ ................................................................. ........................................1
Chip functional features:................................................ ................................................................. .............................1
Chip pin description:................................................ ................................................................. ............................2
About electrical parameter conversion........................................ ................................................................. .............................3
About the active power anti-sneak threshold setting...................................... ................................................................. ...4
PCBDesign considerations................................................ ................................................................. .....................5
BL0942It is a special chip developed by Shanghai Belling Co., Ltd. for power measurement in the
field of Internet of Things. Has a small size (SSOP10L/TSSOP14package), simple peripheral circuit, and
low cost.
Chip features:
⚫ Two independentSigma-Delta ADC, one current and one voltage.
⚫ Current effective value range (10mA~35A)@1mohm
⚫ Active electrical energy (1w~7700w)@1mohm
⚫ Can measure current and voltage effective value, fast current effective value, active power, current and voltage waveform
⚫ The factory gain error of the batch is less than1%, peripheral components can be exempted from calibration if they meet certain conditions.
⚫ The current channel has overcurrent monitoring function, and the monitoring threshold and response time can be set
⚫ Voltage/current zero-crossing signal output
⚫ Built-in waveform register, can output waveform data for load type analysis
⚫ integratedSPI(The fastest speed supported900KHz)/UART(4800-38400bps)way of communication
⚫ Power failure monitoring, below2.7VWhen, the chip enters the reset state
⚫ built-in1.218VReference voltage source
⚫ Built-in oscillator circuit, clock approx.4MHz
⚫ Chip single working power supply3.3V, low power consumption10mW(Typical value)
bySOP10LEncapsulation as an example
Shanghai Belling Co., Ltd. 1/5 V1.0
Yishan Road, Shanghai810Number021-24261000
www.belling.com.cn
BL0942 Built-in clock calibration-free measurement chip
Chip pin description:
VDD 1 10 TX/SDO
Current sampling signal IP 2 9 RX/SDI UART/SPI communication interface
BL0942
35mVrms IN 3 8 SCLK_BPS
Voltage sampling signal VP 4 7 SEL
70mVrms GND 5 6 CF1 Power pulse output or configuration output
SSOP10L
Pin number symbol illustrate
1 VDD Power supply (+3.3V)
2,3 IP,IN Analog input of current channel, maximum differential voltage of pin ±50mV (35mV rms)
4 VP Voltage signal input terminal, maximum differential voltage ±100mV (70mV rms)
5 GND chip ground
6 CF1 Power status output, which can be configured by the OT_FUNX register, outputs a variety of power information
7 SEL UART/SPI communication mode selection (0: UART 1: SPI), there is an internal pull-down resistor, if it is left
floating, it is 0 level (UART), and if the pin is directly connected to VDD, it is high level (SPI)
8 SCLK_BPS SPI mode clock input, in UART mode, the baud rate can be selected
9 RX/SDI UART/SPI multiplexed pin, UART RX/SPI DIN
10 TX/SDO UART/SPI multiplexed pin, UART TX/SPI DOUT, requires external pull-up resistor
Application circuit diagram:
Taking resistance sampling as an example, sampling can also be done using a transformer;
L N
220V -3.3V
AC -DC
-
510
VDD
RL 68nF IN
RX/SDI
BL 0 9 4 2
Alloy resistance
IP Uart/SPI
1mΩ 510 68nF
TX/SDO
MCU
CF1
CF2/ZX
VP
GND
R1
68nF
390K
510
load
390K
390K
390K
390K
R2
Notice:
Shanghai Belling Co., Ltd. 2/5 V1.0
Yishan Road, Shanghai810Number021-24261000
www.belling.com.cn
BL0942 Built-in clock calibration-free measurement chip
1)CF1,CF2The pin can be configured as overcurrent alarm output;ZXUsed to output voltage zero-crossing signal; if only the electrical parameter detection
function is needed, these two pins do not need to be connected.MCU;
2)SPI,UARTThe interface rate and communication protocol are described in "BL0942 datasheet v1.0.pdf”;
3)BL0920Gain correction has been done at the factory. If calibration is not required, the accuracy of the peripheral components is guaranteed to be within1%within; 4)Tx
The pin needs an external pull-up resistor;
Consider that smart home products generally have a maximum current not exceeding16A, the current adopts alloy resistor1milliohm, the
voltage sampling channel uses resistor voltage dividing method to220Vvoltage drops to57.52mVrmsby chipVPpin for sampling.
BL0942andMCUThe connection circuit is very simple. When the system levels are consistent, you only need to connectTx,RX,UART way of
communication4800Bps,N,8,1.MCUObtain power, voltage, current, power frequency, and active energy pulse count through communication
frames.
About electrical parameter conversion
BL0942When defining products, we take into account that smart home product manufacturers are not professional measuring instrument manufacturers, do not have professional
calibration equipment, and have relatively low requirements for energy measurement accuracy. They only provide electricity reference information and do not use billing standards. The smart
device only needs to read the power, voltage, current, and calculate the power consumption based on the active energy pulse count, soBL0942When the circuit leaves the factory, it is guaranteed
that the gain deviation of the chip itself is less than1%.
If the customer's peripheral device accuracy1%, the accuracy of the whole machine can reach2%within;
Take the parameters in the application circuit diagram as an example:
Current sampling resistorRLfor1milliohms, the voltage channel passesR2(390K*5)+R1(0.51K) Resistor voltage
divider turns the AC220Vvoltage drops tomVlevel signal toVPpin;MCUpassUartinterface obtainedBL0942register data;
Actual current value =Current RMS register value*Vref
ampere
305978*RL
Actual voltage value =Voltage RMS register value*Vref*(R2+R1)volt
73989* 1*1000
Actual active power value =Active power register value*Vref2∗(R2+R1)watt
3537*RL*R1*1000
CF_CNTThe register stores the number of electric energy pulses;
The amount of electricity corresponding to each electrical energy pulse =1638.4*256*Vref2∗(R2+R1)Spend
3600000*3537*RL*R1*1000
RLThe unit is milliohms,R2,R1Unit isKEurope;Vref=1.218volt;
example:I_RMSThe register value is251213,V_RMSThe register value is3494335,WATTThe register value is137146,
CF_CNTRegister value1200; Convert according to formula:
Actual current value =251213*1.218≈ 1
305978*1
Actual voltage value =3494335*1.218*(390*5+0.51)≈ 219.999volt
73989*0.51*1000
Actual active power =137146*1.218*1.218*(390*5+0.51)≈ 220watt
3537*1*0.51*1000
After power onBL0942Accumulated electric energy =1638.4*256*1.218*1.218*(390*5+0.51)∗ 1200 ≈ 0.224Spend
3600000*3537*1*0.51*1000
Notice:
1)A_WATTThe register is in complement mode. If it is negative power, it needs to be converted;
Shanghai Belling Co., Ltd. 3/5 V1.0
Yishan Road, Shanghai810Number021-24261000
www.belling.com.cn
BL0942 Built-in clock calibration-free measurement chip
If a current transformer is used (CT), voltage transformer (PT) for sampling, the typical front-end circuit is as follows:
Assume that the current transformerCT1The transformation ratio isRt=2000(2000:1),Load ResistanceR5(3.3Europe);Voltage transformer (PT1)
for1:1current voltage transformer; load resistorR7=24.9Europe
Actual current value =Current RMS register value*Vref=Current RMS register value∗1.218
ampere
305978*(R5*1000)/Rt 305978*(3.3*1000)/2000
Actual voltage value =Voltage RMS register value*Vref*(R8+R9+R10+R11+R12)=Voltage RMS register value*1.218*(20*5)
73978* 7*1000 73978*0.0249*1000
volt
Actual active power value =Active power register value*Vref2∗(R8+R9+R10+R11+R12)=Active power register value∗1.2182∗(20*5)
3537*(R5*1000)*R7*1000 3537*(3.3*1000)*0.0249*1000
Rt 2000
watt
CF_CNTThe register stores the number of electric energy pulses;
The amount of electricity corresponding to each electrical energy pulse
=1638.4*256*Vref2∗(R8+R9+R10+R11+R12)= 1638.4*256*1.2182∗(20*5)
Spend
3600000*3537*(R5*1000)*R7*1000 3600000*3537*(3.3*1000)*0.0249*1000
Rt 2000
R5The unit is Euro,R7,R8,R9,R10,R11,R12Unit isKEurope;Vref=1.218volt;
About the active power anti-creep threshold setting
usually inPCBDuring wiring, it may be due to board wiring or external electromagnetic interference. When there is no load, due to the
influence of noise signals, the chip detects noise power, resulting in positive or negative power in the active power register.
BL0942It has a patented power anti-submarine function to ensure that the board-level noise power will not accumulate power when there is no current
input. Active power anti-creep threshold register (WA_CREEP) ,for8bitunsigned number, default is0BH. The value is the same as the merit
The corresponding relationship between the power register values is shown in the following formula. When the absolute value of the input active
power signal is less than this value, the output active power register is zero. This allows the value output to the active power register to be0.
external internal
address name bit width default value describe
read/write read/write
0x14 WA_CREEP R/W R 8 0x0B Active power anti-submarine register
can be based on the power registerWATTvalue settingWA_CREEP,Their corresponding relationship
WA_CREEP =WATT*256;
3125
When the current channel is in the anti-submarine state, the effective value of the channel is not measured and is also cut off to0.
Shanghai Belling Co., Ltd. 4/5 V1.0
Yishan Road, Shanghai810Number021-24261000
www.belling.com.cn
BL0942 Built-in clock calibration-free measurement chip
WA_CREEPThe default value is0x0B;correspondingWATTActive power register value =11*3125/256≈134; If adopted1
Milliohm sampling resistor, the voltage is divided by resistor390K*5+0.51K;Corresponding actual power
=134/623.4=0.215watt.
In actual applications, the setting of the active power anti-scratch threshold register can be increased according to the application requirements, such as1No
measurement is required below watts. The threshold is set to1WCorresponding parameters: =623.4/(3125/256)≈51,WA_CREEP=0x33;
PCBDesign considerations
existPCBThings to note when wiring:
1) The resistors and capacitors for current sampling should be as close as possibleBL0942pins to prevent the leads from being too long,PCBInterference from other signal
lines on the board; (The current sampling signal is approximately5uV~16mV) In order to reduce interference to the current sampling signal, the ground wire of the
2) sampling resistor is routed separately from the power supply ground; the current channel is differential sampling,IP,INThe signal traces are parallel and close together,
PCBKeep traces on the board as short as possible. Current samplingIP,INThe external circuit parameters should be balanced as much as possible, and the traces should
3) be kept parallel and as short as possible; since the load current flows through the alloy resistor, it is necessary to pay attention to the maximum possible load current.
4) 16A,existPCB The wiring connecting the alloy sampling resistor on the board should be as thick as possible (high current wiring)
Current Sampling Differential Traces
Come out from the inside of the sampling resistor
The sampling resistor is connected to GND
The pads are routed separately and connected to the electrical
separated from place of origin
The power ground is pulled from the terminal,
Separate from current sampling
5) Since the resistor voltage dividing network for voltage sampling converts AC220Vvoltage drops to57.52mVleft and right, pay attention to whether the withstand voltage of
the voltage dividing resistor meets the requirements, and consider the creepage distance; keep a distance from the current sampling trace to prevent signal crosstalk.
6) BL0942power supply3.3Vdecoupling capacitorC5Get as close to the chip as possibleVDDpin;
references:BL0942_Datasheet_V1.0.pdf
Shanghai Belling Co., Ltd. 5/5 V1.0
Yishan Road, Shanghai810Number021-24261000
www.belling.com.cn