文件名称:Keyboard
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 311kb
- 下载次数:
- 0次
- 提 供 者:
- 陈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计采用P3口作为扫描键盘接口,P1.0口作为输出,P1口低4位接4X4矩阵键盘的列,高4位接行。
CPU工作在查询方式下并开放中断,且将定时器T1设为最高优先级。当程序扫描到按键时调用延时防抖后再次扫描并判断键值,并转入相应的按键处理子程序,在子程序中向定时器装入初值并启动其工作,当定时器溢出时向CPU申请中断,CPU响应中断后转入中断子程序,输出预定频率的方波并送到音频放大模块进行放大输出。
-Design uses a scanning keyboard interface port P3, P1.0 port as output, P1 port access 4X4 low 4 matrix keyboard out, the high four connected lines. CPU operating mode and open the query interrupt, and set the timer T1 the highest priority. When the scan delay to the call button again after the scan and determine the anti-shake key, and transferred to the corresponding key processing subroutine, the subroutine is loaded to the timer and start the initial work, when the timer overflows apply to the CPU interrupt, CPU interrupt to the interrupt subroutine, after the output frequency to and intended to amplify the audio amplifier module output.
CPU工作在查询方式下并开放中断,且将定时器T1设为最高优先级。当程序扫描到按键时调用延时防抖后再次扫描并判断键值,并转入相应的按键处理子程序,在子程序中向定时器装入初值并启动其工作,当定时器溢出时向CPU申请中断,CPU响应中断后转入中断子程序,输出预定频率的方波并送到音频放大模块进行放大输出。
-Design uses a scanning keyboard interface port P3, P1.0 port as output, P1 port access 4X4 low 4 matrix keyboard out, the high four connected lines. CPU operating mode and open the query interrupt, and set the timer T1 the highest priority. When the scan delay to the call button again after the scan and determine the anti-shake key, and transferred to the corresponding key processing subroutine, the subroutine is loaded to the timer and start the initial work, when the timer overflows apply to the CPU interrupt, CPU interrupt to the interrupt subroutine, after the output frequency to and intended to amplify the audio amplifier module output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Keyboard
........\000
........\...\dzq
........\...\dzq.LST
........\...\dzq.M51
........\...\dzq.OBJ
........\...\dzq.c
........\...\dzq.hex
........\...\dzq.lnp
........\...\dzq.plg
........\...\dzq.uvopt
........\...\dzq.uvproj
........\...\dzq_uvopt.bak
........\...\dzq_uvproj.bak
........\000.txt
........\123.txt
........\123456.png
........\14.png
........\159.png
........\20110606-截图 1.png
........\2468.png
........\456876.png
........\53343.png
........\56465.png
........\753.png
........\Last Loaded dzq.DBK
........\dzq.DSN
........\dzq.PWI
........\未命名文件.png
........\000
........\...\dzq
........\...\dzq.LST
........\...\dzq.M51
........\...\dzq.OBJ
........\...\dzq.c
........\...\dzq.hex
........\...\dzq.lnp
........\...\dzq.plg
........\...\dzq.uvopt
........\...\dzq.uvproj
........\...\dzq_uvopt.bak
........\...\dzq_uvproj.bak
........\000.txt
........\123.txt
........\123456.png
........\14.png
........\159.png
........\20110606-截图 1.png
........\2468.png
........\456876.png
........\53343.png
........\56465.png
........\753.png
........\Last Loaded dzq.DBK
........\dzq.DSN
........\dzq.PWI
........\未命名文件.png