文件名称:STM32-waibuzhongduanshiyan
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-02-24
- 文件大小:
- 122kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
本实验,利用外部中断,实现与实验3类似的效果,即:通过开发板上载有的4个按
钮(KEY_UP、KEY0、KEY1和KEY2),来控制板上的2个LED(DS0和DS1)和蜂鸣器
,其中WK_UP控制蜂鸣器,按一次叫,再按一次停;KEY2控制DS0,按一次亮,再按
一次灭;KEY1控制DS1,效果同KEY2;KEY0则同时控制DS0和DS1,按一次,他们的
状态就翻转一次。-In this study, the use of external interrupts, achieve a similar effect with Experiment 3, namely: The development board contained four buttons (KEY_UP, KEY0, KEY1 and KEY2), to control two LED board (DS0 and DS1) and buzzer, which WK_UP control the buzzer, press the call, press the stop KEY2 control DS0, press on, press off KEY1 control DS1, the same effect as KEY2 KEY0 the simultaneous control of DS0 and DS1, press once, their status will flip once.
钮(KEY_UP、KEY0、KEY1和KEY2),来控制板上的2个LED(DS0和DS1)和蜂鸣器
,其中WK_UP控制蜂鸣器,按一次叫,再按一次停;KEY2控制DS0,按一次亮,再按
一次灭;KEY1控制DS1,效果同KEY2;KEY0则同时控制DS0和DS1,按一次,他们的
状态就翻转一次。-In this study, the use of external interrupts, achieve a similar effect with Experiment 3, namely: The development board contained four buttons (KEY_UP, KEY0, KEY1 and KEY2), to control two LED board (DS0 and DS1) and buzzer, which WK_UP control the buzzer, press the call, press the stop KEY2 control DS0, press on, press off KEY1 control DS1, the same effect as KEY2 KEY0 the simultaneous control of DS0 and DS1, press once, their status will flip once.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验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
..................\......\readme.txt
..................\......\sys\core_cm4.h
..................\......\...\core_cm4_simd.h
..................\......\...\core_cmFunc.h
..................\......\...\core_cmInstr.h
..................\......\...\stm32f4xx.h
..................\......\...\sys.c
..................\......\...\sys.h
..................\......\...\system_stm32f4xx.h
..................\......\usart\usart.c
..................\......\.....\usart.h
..................\USER\JLinkSettings.ini
..................\....\startup_stm32f40_41xxx.s
..................\....\test.c
..................\....\TEST.uvguix.Administrator
..................\....\TEST.uvoptx
..................\....\TEST.uvprojx
..................\HARDWARE\BEEP
..................\........\EXTI
..................\........\KEY
..................\........\LED
..................\SYSTEM\delay
..................\......\sys
..................\......\usart
..................\HARDWARE
..................\OBJ
..................\SYSTEM
..................\USER
实验5 外部中断实验