전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN2799 데이터시트(PDF) 10 Page - STMicroelectronics

부품명 AN2799
상세설명  Measuring mains power consumption
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2799 데이터시트(HTML) 10 Page - STMicroelectronics

Back Button AN2799 Datasheet HTML 6Page - STMicroelectronics AN2799 Datasheet HTML 7Page - STMicroelectronics AN2799 Datasheet HTML 8Page - STMicroelectronics AN2799 Datasheet HTML 9Page - STMicroelectronics AN2799 Datasheet HTML 10Page - STMicroelectronics AN2799 Datasheet HTML 11Page - STMicroelectronics AN2799 Datasheet HTML 12Page - STMicroelectronics AN2799 Datasheet HTML 13Page - STMicroelectronics AN2799 Datasheet HTML 14Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 10 / 14 page
background image
Firmware description
AN2799
10/14
●
WriteConfigBit: this function writes a configuration bit of the STPM01 configuration
register formatting an 8-bit command word as the following:
The configuration word is sent to the STPM01 by the SPI interface.
●
WriteConfigRegs: this function writes the entire CFL and CFH configuration registers of
the STPM01.
●
ReadRegisters: this function reads the registers from the STPM01 and assigns the
read values to the power meter object registers attribute. The number of read registers
depends on the RegToReadNum passed parameter.
●
ReadMeasure: this function reads the RMS voltage and current registers from the
STPM01, calculates the real RMS values by multiplying the values of each register by
the calibration factors and assigns these values to the m_Voltage and m_Current
attributes of the power meter object.
●
GetVoltage: this function retrieves the last read voltage value in mV.
●
GetCurrent: this function retrieves the last read current value in mA.
●
GetEnergy: this function retrieves the last read energy value in mW.
●
OnSpiRxIrq: SPI interrupt event. Not used in this implementation. The SPI interrupt is
managed externally by the power meter object implementation.
4.1.3
Construction
The power meter object is constructed by the NewPowerMeterObj function implemented
externally by the object itself. This function allocates the memory for the object, assigns the
create method and calls it to assign the rest of the object properties.
1 bit data
6 bits configuration bits
1 bit don’t care
Figure 4.
Reset sequence
AM00079v1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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