uchar read12887(uchar *p) //读取系统时间
{
uchar a,u;
do{ a=P12887a; } while((a&0x80)==0x80); //检查更新位。
*p++=P128870; *p++=P128872; *p++=P128874; *p++=P128876;*p++=P128877; *p++=P128878; *p++=P128879;
return (u); //返回的是指针吗?
}
void main (void)
{
uchar *q,miao,miaog,miaog1,miaog2,miaogs,pTmin; //
ch451_init();//调ch451初始化函数
setup12887(q); //设置ds12887时间
start12887(); //启动时钟
while(1)
pTmin=read12887(q); //调用 读取ds12887时间?????????????????????????????
miao=(pTmin); |