文件名称:sy5
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-07-08
- 文件大小:
- 57kb
- 下载次数:
- 0次
- 提 供 者:
- c**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本实验将实现如下功能:利用外部中断,实现与实验3类似的效果,即:通过ALIENTEK战舰STM32开发板上载有的4个按钮(WK_UP、KEY0、KEY1和KEY2),来控制板上的2个LED(DS0和DS1)和蜂鸣器,其中WK_UP控制蜂鸣器,按一次叫,再按一次停;KEY2控制DS0,按一次亮,再按一次灭;KEY1控制DS1,效果同KEY2;KEY0则同时控制DS0和DS1,按一次,他们的状态就翻转一次。
-The experiment will achieve the following functions: the use of an external interrupt, to achieve a similar effect with the experimental three, namely: STM32 development board warships through ALIENTEK contained four buttons (WK_UP, KEY0, KEY1 and KEY2), to the control board 2 LED (DS0 and DS1) and a buzzer, which WK_UP control the buzzer, press once called, and then a stop KEY2 control DS0, press on, press off KEY1 control DS1, the same effect as KEY2 KEY0 then while controlling DS0 and DS1, press once, their status will toggle each time.
-The experiment will achieve the following functions: the use of an external interrupt, to achieve a similar effect with the experimental three, namely: STM32 development board warships through ALIENTEK contained four buttons (WK_UP, KEY0, KEY1 and KEY2), to the control board 2 LED (DS0 and DS1) and a buzzer, which WK_UP control the buzzer, press once called, and then a stop KEY2 control DS0, press on, press off KEY1 control DS1, the same effect as KEY2 KEY0 then while controlling DS0 and DS1, press once, their status will toggle each time.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验5 外部中断实验
..................\HARDWARE
..................\........\BEEP
..................\........\....\beep.c
..................\........\....\beep.h
..................\........\EXTI
..................\........\....\exti.c
..................\........\....\exti.h
..................\........\KEY
..................\........\...\key.c
..................\........\...\key.h
..................\........\LED
..................\........\...\led.c
..................\........\...\led.h
..................\keilkill.bat
..................\OBJ
..................\...\test.hex
..................\README.TXT
..................\SYSTEM
..................\......\delay
..................\......\.....\delay.c
..................\......\.....\delay.h
..................\......\sys
..................\......\...\cortexm3_macro.h
..................\......\...\stm32f10x_conf.h
..................\......\...\stm32f10x_it.h
..................\......\...\stm32f10x_map.h
..................\......\...\stm32f10x_nvic.h
..................\......\...\stm32f10x_type.h
..................\......\...\sys.c
..................\......\...\sys.h
..................\......\usart
..................\......\.....\usart.c
..................\......\.....\usart.h
..................\USER
..................\....\JLinkSettings.ini
..................\....\startup_stm32f10x_hd.s
..................\....\test.c
..................\....\test.Opt
..................\....\test.Uv2
..................\....\test.uvgui.Administrator
..................\....\test.uvopt
..................\....\test.uvproj