文档简介
基于51单片机,对4*4矩阵键盘扫描,并用7段数码管显示按键信息。
文档内容节选
平台: Keil U3 STC89C52 名称:44键盘检测程序按下键后相应的代码显示在数码管上includereg51hsbit beepP23sbit dulaP26sbit welaP27unsigned char i100unsigned char jktempkeyvoid delayunsigned char i forjij0j fork125k0kunsigned char code table0x3f0x060x5b0x4f0x660x6d0x7d 0x070x7f0x6f0x770x7c0x390x5e0x790x71displayunsigned char num P0tablenum dula1 dula0 P00x00 wela1 wela0void main dula0 wela0 while1 P30xfe tempP3 temptemp0xf0 iftemp0xf0 delay10 iftemp0xf0 tempP3 switchtemp ......
评论
加载更多
推荐下载
查看更多
精选文集
推荐帖子