Part Number:CC2642R
由于外部32.768K晶体由于环境的影响可能不能起振,造成连接问题?通过哪个寄存器可以监测这个晶体是否正常工作?我通过秒寄存器监测,发现即使32.768K晶体不起振,这个寄存器一样计数,这个RTC寄存器的时钟源是哪个?
Kevin Qiu1:
添加以下代码将32Kcrystal映射到某个IO口进行测量:
Map the 32-kHz System Clock (LF Clock) to DIOThe AON IOC contains the output enable control for the 32-kHz LF system clock output, and the clock signal has its own PORTID called AON_CLK32K (0x7). This makes it easy to output the clock signal to a pin. Map the clock to a chosen DIO, and enable the clock output by setting theAON_IOC:CLK32KCTL.OE_N register field to 0x0. The following two driver library calls achieve the same result:
#include <driverlib/aon_ioc.h> IOCPortConfigureSet(IOIDn, IOC_PORT_AON_CLK32K, IOC_STD_OUTPUT); AONIOC32kHzOutputEnable();