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

X  

AN2799 데이터시트(PDF) 12 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) 12 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
 12 / 14 page
background image
Conclusion
AN2799
12/14
4.3.1
Application interface functions
The application interface functions are described as follows:
●
PM_HwMetersCommonInit: this function configures the SPI peripheral (including the
interrupt controller), the STM32 MCO pin to provide the clock to both STPM01 and a
GPIO as input, useful to select two different operational modes:
–
Normal Mode: typical operational mode.
–
Calibration Mode: used to calibrate the STPM01 devices by an external tool. In
this mode the STM32 provides only the clock to the STPM01 devices.
These configurations are common to both STPM01 devices.
●
M_HwMeterSignalsInit: this function initializes the signals specific for an STPM01. In
detail, the STM32 GPIO is used as the SCS for the specific device. The specific
STPM01 device is selected by an enumerator as already stated.
●
ActivateMeter: this function includes all the operations to be done using the power
meter object for the STPM01 initialization.
All the initialization operations have been included in a single initialization procedure: Init,
establishing a power meter object and the STPM01 device identifier as parameters.
5
Conclusion
Summarizing, this document explains how to interface the STPM01 energy meter device to
the STM32x microcontroller including an easy-to-use firmware library. The firmware library
also includes the file ExampleApp.c which shows how to use the library itself. The user
application has to perform the standard STM32 configuration and simply call the
NewPowerObj for each STPM01 device to allocate the object, call the Init to perform the
power meters related initializations and configurations, call the ReadMeasure method to get
the data from STPM01 device and call GetVoltage and/or GetCurrent to get the last
measurement data.



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