求DS1302+AT89S51单片机时钟C程序(六位共阳数码管显示)
求DS1302+AT89S51单片机时钟C程序(六位共阳数码管显示)
日期:2014-07-15 15:17:24 人气:1
//DS1302时钟芯片程序 #include #define uchar unsigned char #define uint unsigned int sbit CLK=P2^3; //定义口 sbit IO=P2^4; sbit RST=P2^5; sbit ACC7=ACC^7; sbit ACC0=ACC^0; uchar a[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}, //定