|
谁能帮我分析下这个程序,最后那个子程序做什么用途,最好能帮忙做个流程图.
#include
#include
#define i unsigned int
#define c unsigned char
c temp,aa,num;
c code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
sbit dula=P2^6;
sbit wela=P2^7;
void delay(i z);
void main()
{
temp=0xfe;
P1=temp;
TMOD=0x01;
TH1=(65536-65532)/256;
TL1=(65536-65532)%256;
EA=1;
ET0=1;
TR0=1;
dula=1;
P0=table[0];
dula=0;
wela=1;
P0=0xc0;
while(1)
{
|
|