请帮忙编写一个花样流水灯单片机程序(要求1,3,5,7灯亮,2,4,6,8灯...答:先把P1口全部接低电平!ORG 0000H AJMP START ORG 0040H AA:MOV P1,#55H ACALL DELAY MOV P1,#0AAH ACALL DELAY MOV P1,#00H ACALL DELAY AJMP AA DELAY:MOV R5,#256 LOOP2:MOV R4,#256 LOOP1:NOP NOP DJNZ R4,LOOP1 DJNZ R5,LOOP2 RET ...
单片机LED小灯闪烁8灯亮灭的程序编写答:include<reg51.h> unsigned char c,xianshi[]={0xfe,0xfd,0xfb,0Xf7,0Xef,0xdf,0xbf,0X7f, //左移 0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,//右移 0xff,0x55,//闪 0x3f,0xcf,0xf3,0xfc,0xff,0xfc,0xf3,0xcf,0x3f,//两位一起移动 0xff,0xaa};//闪 unsigned int...