Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN2288 Scheda tecnica(PDF) 20 Page - STMicroelectronics

Il numero della parte AN2288
Spiegazioni elettronici  Single-phase energy meter with tamper detection based on ST7FLITE2x
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2288 Scheda tecnica(HTML) 20 Page - STMicroelectronics

Back Button AN2288 Datasheet HTML 16Page - STMicroelectronics AN2288 Datasheet HTML 17Page - STMicroelectronics AN2288 Datasheet HTML 18Page - STMicroelectronics AN2288 Datasheet HTML 19Page - STMicroelectronics AN2288 Datasheet HTML 20Page - STMicroelectronics AN2288 Datasheet HTML 21Page - STMicroelectronics AN2288 Datasheet HTML 22Page - STMicroelectronics AN2288 Datasheet HTML 23Page - STMicroelectronics AN2288 Datasheet HTML 24Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 29 page
background image
Software routines
AN2288
20/29
5.3
Lite timer time base2 interrupt routine
This routine is the heart of the MCU, which is generated after every 200µs. This means with
a 50Hz sinewave the number of samples per cycle is 100. In this interrupt routine, the
voltage and current samples are taken by changing the active channel for ADC. One current
sample is taken in between the two voltage sample. The two voltage samples are taken to
minimize the error due to a shift in sampling time for voltage and current sample.
Multiplication and accumulation of V*I is done separately for each current gain.
Figure 17. Lite timer interrupt routine
LT_TB2_IT_Routine
Is AVDF flag=0 &
AVD_INTERRUPT =
Disabled?
yes
Enable AVD interrupt
no
Clear TimeBase2
interrupt Flag
EnableInterrupts
Read first Voltage Sample
Read Curent Sample
Read Second Voltage Sample
Average V1 and V2
A



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 24 25 26 27 28 29


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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