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.

为什么实现不了先亮后灭的效果,而且P1OUT=0;P4OUT=0;这两个语句顺序不同,效果也不一样。



WDTCTL = WDTPW + WDTHOLD;
P1DIR|=BIT0;
P4DIR|=BIT7;
P1OUT=0;
P4OUT=0;

delay_nms(50000);
P4OUT=1;
P1OUT=1;