Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3265 Datasheet(PDF) 9 Page - STMicroelectronics

Part # AN3265
Description  Handling hardware and software failures with the STM8S-DISCOVERY
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3265 Datasheet(HTML) 9 Page - STMicroelectronics

Back Button AN3265 Datasheet HTML 5Page - STMicroelectronics AN3265 Datasheet HTML 6Page - STMicroelectronics AN3265 Datasheet HTML 7Page - STMicroelectronics AN3265 Datasheet HTML 8Page - STMicroelectronics AN3265 Datasheet HTML 9Page - STMicroelectronics AN3265 Datasheet HTML 10Page - STMicroelectronics AN3265 Datasheet HTML 11Page - STMicroelectronics AN3265 Datasheet HTML 12Page - STMicroelectronics AN3265 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 19 page
background image
AN3265
Software description
Doc ID 17860 Rev 1
9/19
2
Software description
The application software does not use STM8S standard firmware library. It rather consists in
optimized code with direct register accesses to control and use the general purpose
peripherals as described in Section 2.1.
2.1
STM8S peripheral configuration
2.1.1
WWDG
The WWDG peripheral is used for software monitoring (see Figure 3). The refresh period
and the illegal refresh window duration are defined by the user. The microcontroller is reset
when the WWDG counter is not refreshed by the end of the refresh period or if it is refreshed
during the illegal refresh window.
In this particular example, the WWDG resets the STM8S because of a user simulated
software failure causing the WWDG counter not to be refreshed in time. As it depends on
the MCU clock, the WWDG is useless when a hardware failure, such as an MCU clock
failure, occurs.
Figure 3.
WWDG software monitoring
2.1.2
Clock security system (CSS)
The Clock Security System (CSS) monitors HSE crystal clock source failures. When the
HSE clock is selected as master clock (fMASTER), if the HSE clock fails because of a broken
or disconnected resonator (or for any other reason), the clock controller activates a stall safe
recovery mechanism by automatically switching the master clock to the auxiliary clock
source (fHSI/8). Once selected, the auxiliary clock source remains enabled until the
microcontroller is reset.
2.1.3
IWDG
The IWDG peripheral is used to monitor software and hardware failures. Its counter is
refreshed by the application. The microcontroller is reset if the IWDG counter is not
refreshed in time because a hardware failure occurred.
In this particular example, the IWDG monitors the HSE clock failure when the CSS is
disabled since it is clocked by the 128 kHz LSI internal RC clock source which remains
active in case of master clock failure.
time
WWDG refresh period
Refresh not
allowed
Refresh window



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