Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

MSP430FR5994 Launchpad Development Kit 实例程序OutOfBox_MSP430FR5994

$
0
0

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, &param);


Viewing all articles
Browse latest Browse all 3634

Trending Articles