#include #include #define uchar unsigned char #define uint unsigned int sbit P2_6=P2^6; //数码管位选74HC573锁存端 sbit P2_7=P2^7; //数码段位选74HC573锁存端 oid delay(uchar xms); //声明函数delay()原型,延时函数 void display(char *ptr); uchar code seg[]= {0x3