数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4062 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN4062
功能描述  STM32F0DISCOVERY peripheral firmware examples
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4062 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN4062 Datasheet HTML 5Page - STMicroelectronics AN4062 Datasheet HTML 6Page - STMicroelectronics AN4062 Datasheet HTML 7Page - STMicroelectronics AN4062 Datasheet HTML 8Page - STMicroelectronics AN4062 Datasheet HTML 9Page - STMicroelectronics AN4062 Datasheet HTML 10Page - STMicroelectronics AN4062 Datasheet HTML 11Page - STMicroelectronics AN4062 Datasheet HTML 12Page - STMicroelectronics AN4062 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 17 page
background image
DocID022897 Rev 3
9/17
AN4062
Peripheral firmware examples description
number of sectors to be used. These sectors are erased one-by-one by calling the
FLASH_EraseSector function.
The programming operation is performed by using the FLASH_ProgramWord function.
The written data is then checked and the result of the programming operation is stored
in the MemoryProgramStatus variable.
3.8
IWDG (independent watchdog) example
Purpose
This example shows how to update the IWDG reload counter at regular periods, and how to
simulate a software fault generating an MCU IWDG reset on expiry of a programmed time
period.
Description
In this example:
The independent watchdog timeout is set to 250 ms.
The system tick is configured to generate an interrupt every 250 ms.
In the system tick interrupt service routine, the independent watchdog counter is
reloaded to prevent an independent watchdog reset, and LED4 is toggled.
The EXTI line 0 connected to PA0 pin is configured to generate an interrupt on its
falling edge.
In the NVIC, this EXTI line 0 corresponding interrupt vector is enabled with a priority
equal to 0, and the systick interrupt vector priority is set to 1 (EXTI interrupt is prior to
systick interrupt).
The EXTI line is used to simulate a firmware failure: when the EXTI line event is
triggered (after pressing the User push-button on the STM32F0DISCOVERY board),
the corresponding interrupt is serviced. In the ISR, LED3 turns off and the EXTI line
pending bit is not cleared. The CPU executes the EXTI line ISR indefinitely and the
system tick interrupt routine is never entered, so the independent watchdog counter is
not reloaded. As a result, when the independent watchdog counter reaches 00, the
independent watchdog generates a reset.
When the program is running and the independent watchdog reset is generated, LED4 is
turned on after the system resumes operation.
3.9
ADC DMA example
Purpose
This example describes how to use ADC1 and DMA to transfer continuously converted data
from ADC1 to memory.



Html Pages

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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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