#include <reg52.h>unsigned char table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};void delay(void){ unsigned char a,b;//延时函数 for(a=0;a<200;a++) for(b=0;b<200;b++);}void main(){ unsigned char i; while(1) { for(i=0;i<8;i++) { P0=table[i]; delay(); }}void delay(void){ unsigned char a,b;//延时函数 for(a=0;a<200;a++) for(b=0;b<200;b++);}整个延时函数怎么理解?请注释一下,再就是问一下这是延时多少?帮帮忙吧!!!!! |