Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2863 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN2863
Description  Smart inductive proximity switch with SPT01-335DEE
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2863 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN2863 Datasheet HTML 5Page - STMicroelectronics AN2863 Datasheet HTML 6Page - STMicroelectronics AN2863 Datasheet HTML 7Page - STMicroelectronics AN2863 Datasheet HTML 8Page - STMicroelectronics AN2863 Datasheet HTML 9Page - STMicroelectronics AN2863 Datasheet HTML 10Page - STMicroelectronics AN2863 Datasheet HTML 11Page - STMicroelectronics AN2863 Datasheet HTML 12Page - STMicroelectronics AN2863 Datasheet HTML 13Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 10 / 13 page
background image
Software implementation
AN2863
10/13
Doc ID 15277 Rev 1
4
Software implementation
After the first startup following the firmware upload, the ST7 MCU performs a simple board
self test. It reads the oscillator amplitude level and voltage across the temperature sensing
diode D2 and checks whether these values are in a specific range (this state is indicated by
diagnostic LED D3 blinking, see Table 2). The oscillator amplitude level detected during this
test is also considered as an initial oscillator level when no metal object approaches the
sensing inductor L1 and its value is recorded in the Flash memory (address 0xfc00) using
the in-application programming (IAP) method. This value is later used for amplitude
reduction comparisons caused by metal objects.
Note:
The initial board self test procedure can be induced anytime by placing a jumper on the ICC
connector (pins 3-4, see Figure 5) and powering up the application.
Figure 5.
Demonstration board self test inducing
During normal operation the MCU controls the sensor output based on the information
regarding the oscillator amplitude and the actual temperature. The main sensor part of the
firmware is realized in an auto-reload timer interrupt service routine. In equi-distant time
intervals the oscillator amplitude is sampled and its value is compared with two system
variables (ucUpperCompThreshold and ucLowerCompThreshold). One of these defines on-
to-off transition while the other defines off-to-on transition of the sensor state. The distance
between them determines the hysteresis. These threshold variable values are defined as a
percentage of the initial oscillator level recorded in the Flash memory and are further
modified depending on the temperature by a co-efficient from a lookup table.
Table 3.
Diagnostic LED blinking modes
(normal operation)
Table 2.
Diagnostic LED blinking modes (power up self test)
LED status
Meaning
Blinking
Input values within limits
Constant
Error
Flashing style
Meaning
❋ ❋ ❋ ❋ ❋ ❋
Undertemperature
❋❋
❋❋
❋❋
❋❋
Overtemperature
❋❋❋
❋❋❋
❋❋❋
Ferrite approaching the coil



Html Pages

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


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