• 2022-07-26
    假设希望将TimerA0设置为选择SMCLK时钟源,且工作在连续模式,下列控制字正确且最合理的是:
    A: TA0CTL = TIMER_A_CTL_SSEL__SMCLK | TIMER_A_CTL_MC__CONTINUOUS
    B: TA0CTL &= TIMER_A_CTL_SSEL__SMCLK & TIMER_A_CTL_MC__CONTINUOUS
    C: TA0CTL += TIMER_A_CTL_SSEL__SMCLK + TIMER_A_CTL_MC__CONTINUOUS
    D: TA0CTL |= TIMER_A_CTL_SSEL__SMCLK & TIMER_A_CTL_MC__CONTINUOUS