文件名称:STC12C5A60S2_KEY
介绍说明--下载内容来自于网络,使用问题请自行百度
单个按键扫描程序
1、程序说明:
该例程演示了接在单片机P1端口上的五个按键。
通过程序扫描对应按键端口的电平状态来确定是否该键按下,
通过机械按键按下和松开时有抖动现象,需在程序中适当延时消除抖动,
避免识别到错误信息,该程序同时具有等待按键释放的功能。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。将程序下载到开发板中运行后,
依次按下S2到S6任意一个键,将在数码管上显示相应的键值-Single key scanner
1, program instructions:
This routine demonstrates the five buttons connected to the P1 port on the microcontroller.
Determines whether the key is pressed by the program scan corresponding to the level state of the key port,
By mechanical press and release the button when the jitter phenomenon, the need for appropriate delay in the process of eliminating jitter,
Avoid identifying the error message, and the program has the function of waiting for the release of the key.
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results. After the program is downloaded to the development board to run,
In order to press S2 to S6 any key, the corresponding key will display in the digital tube
1、程序说明:
该例程演示了接在单片机P1端口上的五个按键。
通过程序扫描对应按键端口的电平状态来确定是否该键按下,
通过机械按键按下和松开时有抖动现象,需在程序中适当延时消除抖动,
避免识别到错误信息,该程序同时具有等待按键释放的功能。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。将程序下载到开发板中运行后,
依次按下S2到S6任意一个键,将在数码管上显示相应的键值-Single key scanner
1, program instructions:
This routine demonstrates the five buttons connected to the P1 port on the microcontroller.
Determines whether the key is pressed by the program scan corresponding to the level state of the key port,
By mechanical press and release the button when the jitter phenomenon, the need for appropriate delay in the process of eliminating jitter,
Avoid identifying the error message, and the program has the function of waiting for the release of the key.
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results. After the program is downloaded to the development board to run,
In order to press S2 to S6 any key, the corresponding key will display in the digital tube
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3、Key单个按键延时扫描实验/Application/Doc/readme.txt
3、Key单个按键延时扫描实验/Application/Header/STC12C5A60S2.H
3、Key单个按键延时扫描实验/Application/Source/main.c
3、Key单个按键延时扫描实验/Application/Startup/STARTUP.A51
3、Key单个按键延时扫描实验/Key.plg
3、Key单个按键延时扫描实验/Key.uvopt
3、Key单个按键延时扫描实验/Key.uvproj
3、Key单个按键延时扫描实验/Key_uvopt.bak
3、Key单个按键延时扫描实验/Key_uvproj.bak
3、Key单个按键延时扫描实验/Lis/Key.m51
3、Key单个按键延时扫描实验/Lis/main.lst
3、Key单个按键延时扫描实验/Lis/STARTUP.lst
3、Key单个按键延时扫描实验/Obj/Key
3、Key单个按键延时扫描实验/Obj/Key.hex
3、Key单个按键延时扫描实验/Obj/Key.lnp
3、Key单个按键延时扫描实验/Obj/Key.plg
3、Key单个按键延时扫描实验/Obj/main.obj
3、Key单个按键延时扫描实验/Obj/STARTUP.obj
3、Key单个按键延时扫描实验/Obj/STARTUP._ia
3、Key单个按键延时扫描实验/Application/Doc
3、Key单个按键延时扫描实验/Application/Header
3、Key单个按键延时扫描实验/Application/Source
3、Key单个按键延时扫描实验/Application/Startup
3、Key单个按键延时扫描实验/Application
3、Key单个按键延时扫描实验/Lis
3、Key单个按键延时扫描实验/Obj
3、Key单个按键延时扫描实验
3、Key单个按键延时扫描实验/Application/Header/STC12C5A60S2.H
3、Key单个按键延时扫描实验/Application/Source/main.c
3、Key单个按键延时扫描实验/Application/Startup/STARTUP.A51
3、Key单个按键延时扫描实验/Key.plg
3、Key单个按键延时扫描实验/Key.uvopt
3、Key单个按键延时扫描实验/Key.uvproj
3、Key单个按键延时扫描实验/Key_uvopt.bak
3、Key单个按键延时扫描实验/Key_uvproj.bak
3、Key单个按键延时扫描实验/Lis/Key.m51
3、Key单个按键延时扫描实验/Lis/main.lst
3、Key单个按键延时扫描实验/Lis/STARTUP.lst
3、Key单个按键延时扫描实验/Obj/Key
3、Key单个按键延时扫描实验/Obj/Key.hex
3、Key单个按键延时扫描实验/Obj/Key.lnp
3、Key单个按键延时扫描实验/Obj/Key.plg
3、Key单个按键延时扫描实验/Obj/main.obj
3、Key单个按键延时扫描实验/Obj/STARTUP.obj
3、Key单个按键延时扫描实验/Obj/STARTUP._ia
3、Key单个按键延时扫描实验/Application/Doc
3、Key单个按键延时扫描实验/Application/Header
3、Key单个按键延时扫描实验/Application/Source
3、Key单个按键延时扫描实验/Application/Startup
3、Key单个按键延时扫描实验/Application
3、Key单个按键延时扫描实验/Lis
3、Key单个按键延时扫描实验/Obj
3、Key单个按键延时扫描实验
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
