按键与数码管C语言例程
#includereg52.h>//头文件#define uchar unsigned char//宏定义#define uint unsigned intuchar code table[]={0x3f,0x06,0x5b,//数码管显示的数值0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x7...
按键与数码管汇编例程
ORG 0000H LJMP START ORG 0030HSTART: MOV 30H,#00 //赋初值 MOV 31H,#00 MOV 32H,#00 MOV 33H,#00 MOV 34H,#00 MOV 35H,#00 MOV 36H,#00 MOV 37H,#00 MOV P1,#0FFH //打开最右边的数码管 MOV P2,#00 //给P2口送0...
按键弹跳消除模块的原理及应用