我用的单片机要 MSP430F2419
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
while(1)
{
P1OUT &= ~0x02;
}
}
为什么p1.1的管脚无法拉低?
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.
我用的单片机要 MSP430F2419
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
while(1)
{
P1OUT &= ~0x02;
}
}
为什么p1.1的管脚无法拉低?
你需要配置GPIO口。
P1DIR |= 0x01;
可以参考下例程:https://dev.ti.com/tirex/explore/node?node=A__ALsfOM50dMC8DYMbJKpr6Q__msp430ware__IOGqZri__LATEST
以及下载MSPWARE。