资 源 简 介
//单片机为89C52RC,时钟接收模块为淘宝买的15元的中国时码模块,下面代码可以解析出具体时间#include #include //************************************定义接收管脚*********************************************sbit ReceiveBit=P3^7;sbit test2=P3^6;unsigned int bdata BPCIndex; //BPC数据的下标0~49unsigned int bdata BitIndex; //BPCIndex数据中的位的索引0~7unsigned int BPCCode[50]; //存储2个BPC周期(20*2S)的值(20*10*2/8=50)