单片机 数码管加流水灯 电路图答:MAIN:mov dptr,tab mov p0,#0 mov r0,#1 mov r1,#8 setb c loop:mov a,p0 nop rlc a mov p0,a inc r0 mov a,r0 movc a,@a+dptr mov p2,a call delay djnz r1,main tab: 0C0H, 0F9H,4AH,0B0H,099H,092H,082H,0F8H,80H DELAY: MOV R7,#255 D1:MOV R6,#255 D...
如何利用单片机让4位数码管显示?答:程序如下(用的是STC89C52芯片):include<reg52.h>//52系列单片机头文件 define uchar unsigned char define uint unsigned int uint x,y;uchar code table[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};//共阴极数码管编码 void display...