This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc1310 RTC精准问题

Other Parts Discussed in Thread: CC1310

我创建一个clock module用来更新系统时间,每一秒更新一次时间

在.cfg配置Clock.tickPeriod = 1000;

    Clock_Params_init(&clkParams);
    clkParams.period = 1000000/Clock_tickPeriod;
    clkParams.startFlag = TRUE;

    //Construct a periodic Clock Instance
    Clock_construct(&clk0Struct, (Clock_FuncPtr)clk0Fxn,
                    1000000/Clock_tickPeriod, &clkParams);
Void clk1Fxn(UArg arg0)
{
    tick(&sys_time);//每一秒更新系统时间
   System_printf("%d-%d-%d %d:%d:%d\n", getYear(&sys_time), getMonth(&sys_time), getDay(&sys_time), getHour(&sys_time), getMinute(&sys_time), getSecond(&sys_time));//打印系统时间

        System_flush();
}
系统时间结构体
struct system_time_str
{
         int ticks;
         int second;
         int minute;
         int hour;
         int day;
         int month;
         int year;
};
tick()是模仿例程bigtime_CC1310_LAUNCHXL_TIRTOS_CCS,创建一个结构体用来维护系统时间
我测试的结果是这个系统时间比实际的时间要慢10%,请问有什么方法来提高系统时间的精准度??