DS1302程序代码 #include #include #include #define uchar unsigned char #define uint unsigned int sbit SDA=P1^0; //DS1302数据线 sbit CLK=P1^1; //DS1302时钟线 sbit RST=P1^2; // DS1302 复位线