поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN2159 датащи(PDF) 16 Page - STMicroelectronics

номер детали AN2159
подробное описание детали  SPI protocol for STPM01/STPM10 metering devices
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2159 датащи(HTML) 16 Page - STMicroelectronics

Back Button AN2159 Datasheet HTML 12Page - STMicroelectronics AN2159 Datasheet HTML 13Page - STMicroelectronics AN2159 Datasheet HTML 14Page - STMicroelectronics AN2159 Datasheet HTML 15Page - STMicroelectronics AN2159 Datasheet HTML 16Page - STMicroelectronics AN2159 Datasheet HTML 17Page - STMicroelectronics AN2159 Datasheet HTML 18Page - STMicroelectronics AN2159 Datasheet HTML 19Page - STMicroelectronics AN2159 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 23 page
background image
Converting readings into measured values
AN2159
16/23
Doc ID 11400 Rev 3
6
Converting readings into measured values
6.1
Energies
The first four registers contain 20 bit value of internal energy up/down counters.
The value of least significant bit of every energy counter is related to power meter constant
P, which is the number of pulses per kWh that the meter, through calibration, is configured to
provide to LED pin.
This means that this value changes with the application and relative calibration.
Given P, the value of the LSB of the source energy registers is indicated below:
KAW = 1000 / (2
11 * P) [Wh] (active energy);
KAWFund = 4 * KAW [Wh] (active fundamental energy);
KRW = 2 * KAW [VARh] (reactive energy);
KSW = KAW [VAh] (apparent energy).
For example, if P = 64000 imp/kWh:
KAW = 7.63 * 10
-6 Wh
KAWFund = 3.05 * 10
-5 Wh
KRW = 1.52 * 10
-5 VARh
KSW = 7.63 * 10
-6 VAh
This also means that the STPMxx energy counters hold a very small energy value (in the
example above, the active energy register stores about 8 Wh), and further energy
integration has to be performed inside the application.
To accomplish this task, the below procedure should be followed.
Because all energy counters rollover in approximately 1 s when they are integrating maximal
power, the reading must be done frequently enough. Our suggestion is to read the registers
at least 32 times per second.
For each energy type a variable
e should be allocated, having the following structure (below,
the variable definition for an ST7 microcontroller):
typedef struct energ {
unsigned long old;
/* previous energy value - 32 bits */
unsigned int quot;
/* quant/16 - 16 bits */
signed int quant;
/* new - old, measure of power - 16 bits */
signed long frac;
/* fractional part of energy integrator - 32 bits */
signed long integ;
/* integer part of energy integrator - 32 bits */
} ENERG;
The application should keep previous value of each energy counter in order to evaluate the
difference of readings, from which also a direction of energy flow can be obtained. This
value should be stored in
e
→ old before a reading. After the reading, the new energy
register reading should be stored in
e
→ new.
To calculate consummated energy the software should implement a 32-bit integrator. The
suggested integrator is two stages, with
e
→ frac and e → integ 32-bit signed integer
variables. Into
e
→ frac is added the value e → quant, obtained as difference between e →



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com