1、P1口连有八只发光二极管,读程序,写出程序所完成的功能。
#include<reg51.h>#include <intrins.h>
#define uchar unsigned char#define uint unsigned int void main(){
P1=0xfe; while (1)
{
delay( 500 );
P1=_crol_(P1,1); }
2、读程序,说出该段程序实现的功能。
#include<reg51.h>
#define uchar unsigned char
uchar tab[ ]={ Oxfe,0xfd,0xfb,0xf7,0xef.0xdf.0xbf0x7f,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0x