📄 readme.txt
字号:
===========================================================================================
4.3 中断实验
===========================================================================================
本实验参考例程包含两个源文件 main.c、int_test.c,详见4.3_int_test目录。
新建工程后,添加公共库文件以及本工程的源文件,按照ReadMe目录下的ReadMeCommon.txt说
明文件配置目标板。
本实验实现中断控制。
===========================================================================================
程序正确运行后,会在超级终端上输出如下信息:
boot success...
External Interrupt Test Example
1.L-LEVEL 2.H-LEVEL 3.F-EDGE(default here) 4.R-EDGE 5.B-EDGE
Select number to change the external interrupt type:
Press the Buttons (SB1202/SB1203) to test...
Press SPACE(PC) to exit...
在PC机键盘上输入3选择下降沿触发,并按下按钮SB1202
3.F-EDGE
EINT0 interrupt occurred.
end.
按下SB1203键,超级终端主窗口中继续显示:
External Interrupt Test Example
1.L-LEVEL 2.H-LEVEL 3.F-EDGE(default here) 4.R-EDGE 5.B-EDGE
Select number to change the external interrupt type:
Press the Buttons (SB1202/SB1203) to test...
Press SPACE(PC) to exit...
EINT11 interrupt occurred.
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -