文件名称:AVR_timer_scan
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- sur****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
程序共定义了6个键的功能:K1、K2、K3、K4以及K5、K8组成的一对复合键,其中K2,K3为
*连击键,K5为上档键。在正常工作模式下按K1则切换至状态,在设定模式下按K1键循环选
*择4个数码管中的某个,被选中的数码管闪烁,此时单按K2键显示数值加1;常按K2显示数
*值以一定速度递增,同时数码管停止闪烁,当K2松开,数码管恢复闪烁,显示数值停留在
*K2松开前的值上。K3完成的功能和K2类似。其完成减操作。这2个键只有在设定状态才有
*效,可以有效防止误操作。K4为确认键,按下该键回到正常显示状态,所有指示灯熄灭,
*数码管显示刚刚设定的数值。K5+K8这对复合键执行复位操作,任何情况下同时按下K5和K8
*或先按下K5再按下K8,所有数码管的显示全为0,指示灯全灭,进入正常显示状态。同时程
*序还对如下几个异常操作进行了处理:
* 2个或多个功能键同时按下
* 一个功能键按下未释放,又按另一个功能键,然后再松开其中一个功能键
* 先按下功能键再按下上档键
* 多个上档键和一个功能键同时按下,此时不做处理。等到松开其他上档键,只剩下一个上
* 档键和一个功能键时才执行这对复合键;或松开所有上档键,处理单一功能键。-Procedures were defined six key functions: K1, K2, K3, K4 and K5, K8 form a composite key, where K2, K3 is
* Even keystrokes, K5 is the shift. In normal operation mode, press the switch to the state of K1, K1 in the setting mode, press the button to cycle
* Optional four digital control of a, the selected LED flashes, then click the button to display the value of K2+ 1 often shown by the number of K2
* Values ??to a certain rate of increase, and flashing LED stop, when the K2 release, the digital restoration flashing to indicate values ??remain in the
* K2 values ??before release. K2 K3 complete function and similar. The complete reduction operation. This two keys only in the state have set
* Effect, can effectively prevent misuse. K4 for the Enter key, press the button to return to normal display state, all the lights off,
* Digital display just to set the value. K5+ K8 perform this reset operation of the composite key, pressing under any circumstances and K8 K5
* Or th
*连击键,K5为上档键。在正常工作模式下按K1则切换至状态,在设定模式下按K1键循环选
*择4个数码管中的某个,被选中的数码管闪烁,此时单按K2键显示数值加1;常按K2显示数
*值以一定速度递增,同时数码管停止闪烁,当K2松开,数码管恢复闪烁,显示数值停留在
*K2松开前的值上。K3完成的功能和K2类似。其完成减操作。这2个键只有在设定状态才有
*效,可以有效防止误操作。K4为确认键,按下该键回到正常显示状态,所有指示灯熄灭,
*数码管显示刚刚设定的数值。K5+K8这对复合键执行复位操作,任何情况下同时按下K5和K8
*或先按下K5再按下K8,所有数码管的显示全为0,指示灯全灭,进入正常显示状态。同时程
*序还对如下几个异常操作进行了处理:
* 2个或多个功能键同时按下
* 一个功能键按下未释放,又按另一个功能键,然后再松开其中一个功能键
* 先按下功能键再按下上档键
* 多个上档键和一个功能键同时按下,此时不做处理。等到松开其他上档键,只剩下一个上
* 档键和一个功能键时才执行这对复合键;或松开所有上档键,处理单一功能键。-Procedures were defined six key functions: K1, K2, K3, K4 and K5, K8 form a composite key, where K2, K3 is
* Even keystrokes, K5 is the shift. In normal operation mode, press the switch to the state of K1, K1 in the setting mode, press the button to cycle
* Optional four digital control of a, the selected LED flashes, then click the button to display the value of K2+ 1 often shown by the number of K2
* Values ??to a certain rate of increase, and flashing LED stop, when the K2 release, the digital restoration flashing to indicate values ??remain in the
* K2 values ??before release. K2 K3 complete function and similar. The complete reduction operation. This two keys only in the state have set
* Effect, can effectively prevent misuse. K4 for the Enter key, press the button to return to normal display state, all the lights off,
* Digital display just to set the value. K5+ K8 perform this reset operation of the composite key, pressing under any circumstances and K8 K5
* Or th
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AVR_timer_scan.txt