| Electronic Components Datasheet Search |
|
AN2863 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2863 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 13 page ![]() 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 |
|
|
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 |
| 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 |