LED16点阵显示屏设计与代码 #include 《intrins.h》 #include 《reg51.h》 #include 《stdio.h》 #define ulong unsigned long #define uint unsigned int #define uchar unsigned char uchar k,i,j; float l; sbit sw=P3^0; //159选通开关
MAIN:MOV A,R0 MOV R2,#00H MOV SP,#60H MOV R3,A MOV R4,#16 MOV DPTR,#WORDTAB START:JNB P1.0,SLOW JNB P1.1,SOON MOV R1,#00H SCAN8:MOV A,R1 SWAP A MOV P3,A SWAP A INC A MOV R1,A MOV A,R2 MOVC A,@A+DPTR CJNE A, #0DDH,NEXT AJMP MAIN NEXT:MOV P2...