MSP430FR5994 Launchpad Development Kit 实例程序OutOfBox_MSP430FR5994中的Time_A 5S定时如何计算出来的?
配置代码如下(ACLK为 8M):
param.clockSource = TIMER_A_CLOCKSOURCE_ACLK;
param.clockSourceDivider = TIMER_A_CLOCKSOURCE_DIVIDER_1;
param.timerPeriod = 13;
param.timerInterruptEnable_TAIE = TIMER_A_TAIE_INTERRUPT_DISABLE;
param.captureCompareInterruptEnable_CCR0_CCIE = TIMER_A_CCIE_CCR0_INTERRUPT_ENABLE;
param.timerClear = TIMER_A_DO_CLEAR;
param.startTimer = true;
Timer_A_initUpMode(TIMER_A0_BASE, ¶m);
HG:
你确定ACLK是8M?
怎么测到5S的,用示波器量的么?
有没有其他地方更新过TIMER的配置?