Electronic Components Datasheet Search
  English  ▼

X  

AN1015 Datasheet(PDF) 12 Page - STMicroelectronics

Part # AN1015
Description  Software techniques for improving microcontrollers EMC performance
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1015 Datasheet(HTML) 12 Page - STMicroelectronics

Back Button AN1015 Datasheet HTML 8Page - STMicroelectronics AN1015 Datasheet HTML 9Page - STMicroelectronics AN1015 Datasheet HTML 10Page - STMicroelectronics AN1015 Datasheet HTML 11Page - STMicroelectronics AN1015 Datasheet HTML 12Page - STMicroelectronics AN1015 Datasheet HTML 13Page - STMicroelectronics AN1015 Datasheet HTML 14Page - STMicroelectronics AN1015 Datasheet HTML 15Page - STMicroelectronics AN1015 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 19 page
background image
Auto-recovery techniques
AN1015
12/19
DocID5833 Rev 2
3
Auto-recovery techniques
This section gives some techniques for quickly recovering your application context after an
EMC failure.
Unexpected resets, Program Counter jumps and parasitic interrupts are the most common
EMC failures observed in the MCU whatever the source of the disturbance.
In any of these cases the RAM (or EEPROM data memory when available) remains
unchanged and can be used as very efficient way to save the application context and
parameters.
Note that the RAM will lose its contents if the device is powered-off. The EEPROM data
keeps its content at power-off but the write time is much longer.
3.1
Saving your context in RAM
Figure 3 shows an example of a software auto-recovery implementation: the critical
software sequences (door OPEN or CLOSE commands, high speed motor controls) are
memorized in a RAM byte ("RAM(SEQ)").
This allows us on the one hand to recover the context if an EMC event leads to an MCU
reset, and on the other hand we can check the source before a executing a critical
subroutine. In this case the high speed motor activation is allowed only if RAM(SEQ)=03).
The application parameters (T1&T2 timing values) are also stored in RAM when they are
changed.
This means if a software runaway event occurred or the MCU is reset (by the LVD or the
watchdog), the recovery routine (CRR) will restore the last door command, reload the timing
parameters and resume the program execution without any external intervention.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


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