CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 嵌入式/单片机编程 单片机(51,AVR,MSP430等)

文件名称:STC12C5A60S2_KEY

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2016-05-04
  • 文件大小:
    37.59kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

单个按键扫描程序

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单个按键延时扫描实验

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com