| 数据搜索系统,热门电子元器件搜索 |
|
AN3307 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3307 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 37 page ![]() AN3307 Class B solution structure Doc ID 18186 Rev 4 21/37 5 Class B solution structure 5.1 Integrating the software into the user application Class B routines are divided into two main processes: startup and periodic runtime self tests. The periodic runtime test must be initialized by a set-up block before it is applied. All the processes are covered by adequate caller-called controls checked at a number of flow check points. All class B variables are kept redundantly in duplicate control registers stored in user-defined Class B variable space. This space is split into two separate RAM regions which are under permanent control of a transparent test which is part of the runtime tests. Figure 5 shows the basic principle of how to integrate the Class B software package into a user software solution. The reset vector should be forced by the user to jump to the STL_StartUp() procedure which contains all the system self tests to be performed at startup. If all these tests pass sucessfully then the standard startup procedure __iar_program_start() for IAR or Reset_Handler() for the KEIL solution is performed. Figure 5. Integration of startup and periodic runtime self-tests into the application While the application is running, periodic tests are performed at certain intervals. To run them, users must execute an initialization block by calling STL_InitRunTimeChecks() routine in the initialization phase and then insert a periodic call to STL_DoRunTimeChecks() at the main level, preferably in the main loop. Periodic system interrupts are configured by initializing the SysTick clock frequency and themain time base measurement in the initial routine. The RTC is also reset and synchronized to allow RESET Start up self-test (STL _StartUp ()) Application startup Periodic runtime self-test init (STL_InitRunTimeChecks()) Main loop Task 1 Task 2 Task 3 Timebase ISR ISR 1 ISR 2 Fail Safe routine (FailSafePOR()) MS18592V2 Periodic runtime self-test (STL_DoRunTimeChecks()) (SysTick_Handler()) |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |