实时时钟读写代码,项目内已使用,运行正常!#ifndef __R8010_H #define __R8010_H #define _nop() _nop_() #define unchar unsigned char #define unint unsigned int #define unlong unsigned long sbit scl = P4^4; sbit sda = P2^0; extern unchar time_buf1[8]; //= {20,18,7,4,8,8,8,4};//空年月日时分秒周 ext