hi kazola thank you for your reply I can solve It now. It because "P1OUT = 0;" in red statement . Somehow it cause error. I change it to "P1OUT &= ~(BIT5|BIT4|BIT2|BIT1);" and now it work.
↧