This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
例程中,使用TACTL进行发射的程序为:
if(TxDate & 0x0001) //发送的是1
{
CCTL0 &= ~OUTMOD2; //OUTMOD0是置位
}
else //发送的是0
{
CCTL0 |= OUTMOD2; //
}
为什么 CCTL0 &= ~OUTMOD2,在端口会输出高电平?