楼主可以参考下面代码,外接32.768k晶体振荡器运行以后即可获得准确的校正数据。
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2012, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided…