Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2288 Datasheet(PDF) 22 Page - STMicroelectronics

Part # AN2288
Description  Single-phase energy meter with tamper detection based on ST7FLITE2x
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2288 Datasheet(HTML) 22 Page - STMicroelectronics

Back Button 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 AN2288 Datasheet HTML 25Page - STMicroelectronics AN2288 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 29 page
background image
Software routines
AN2288
22/29
5.4
SPI interrupt routine
This routine is called just after power up of the application. This routine is used to initialize
the EEPROM if the meter is used for the first time or to get the previous accumulated kWh
and tampering information. The one pulse comparison factors and display constants are
also received from EEPROM.
Figure 19. SPI interrupt routine
SPI_IT_Routine_INIT
Is
temp!=init_EEPROM
[0]?
no
Disable SPI interrupt
Clears SPI interrupt flag
Read first byte from EEPROM
from address 0x00
temp = Read byte from EEPROM
yes
Write new values of different calibra-
tion factors and display factors
Read stored calibration fac-
tors and display factors
Set the Lite timer timebase2 for 200us
interrupt and enable interrupt, ADC on
end



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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