文件名称:IWDG
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 22kb
- 下载次数:
- 0次
- 提 供 者:
- 黄*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本例程测试了独立看门狗的使用。
程序运行时,液晶屏上会显示:
STM32F10x DEMO
IWDG TEST
通过使用SysTick中断按照250ms周期性更新IWDG计数器,每次更新的时候L1闪烁一次。使用外部中断7来模拟一次软件失败,按K1将产生一次外部中断7,
因为外部中断7的优先级比EWI优先级高,所以将会导致SysTick中断没有响应,IWDG计数器没有被重载,将出现重置事件,发生重置之后如果按K5来重置程序,L3将被点亮.
-This routine tests the use of the independent watchdog. When the program is running, will be displayed on the LCD screen: The STM32F10x DEMO the IWDG, the TEST accordance with 250ms periodic update the IWDG counter, each update by using the SysTick L1 flashes once. Using an external interrupt to simulate a software failure, the K1 will produce an external interrupt 7, because the external interrupt priority level higher than the EWI priority, so will cause the SysTick interrupt no response, the IWDG, the counter is not overloaded, will appear Reset event K5 to reset the program after a reset occurs, L3 is lit.
程序运行时,液晶屏上会显示:
STM32F10x DEMO
IWDG TEST
通过使用SysTick中断按照250ms周期性更新IWDG计数器,每次更新的时候L1闪烁一次。使用外部中断7来模拟一次软件失败,按K1将产生一次外部中断7,
因为外部中断7的优先级比EWI优先级高,所以将会导致SysTick中断没有响应,IWDG计数器没有被重载,将出现重置事件,发生重置之后如果按K5来重置程序,L3将被点亮.
-This routine tests the use of the independent watchdog. When the program is running, will be displayed on the LCD screen: The STM32F10x DEMO the IWDG, the TEST accordance with 250ms periodic update the IWDG counter, each update by using the SysTick L1 flashes once. Using an external interrupt to simulate a software failure, the K1 will produce an external interrupt 7, because the external interrupt priority level higher than the EWI priority, so will cause the SysTick interrupt no response, the IWDG, the counter is not overloaded, will appear Reset event K5 to reset the program after a reset occurs, L3 is lit.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
IWDG\IWDG.opt.bak
....\IWDG.Uv2.bak
....\IWDG.uvopt
....\IWDG.uvproj
....\IWDG_uvopt.bak
....\LCD.c
....\LCD.h
....\main.c
....\output\release.plg
....\......\release.sct
....\......\release.tra
....\readme.txt
....\stm32f10x_conf.h
....\stm32f10x_it.c
....\stm32f10x_it.h
....\output
IWDG