*additional reply
other problem:-
1) the LED to blink also was wrong. below is my code, but the LED that blink is at P2[27] which is pin 47. i want to blink led at P2[18] which is pin 59.

2) i need to enter debug mode, run debug mode. then exit the debug mode to make it run. why? if i reset power, the board doesnt blink pin 47.
thanks in advanced