wuchy143
Member
Hi All,
I'm witnessing something odd and was wondering if I'm doing something incorrectly. I'm just trying to blink an LED at some rate for debug on my board. I'm new to MSP430's compiler. So in debug mode I step through this snippet of code:
It runs and counts up j until it gets to 15. Then it clears itself after one of the delay cycles. I'm stumped. In the datasheet for the compiler:
https://www.ti.com.cn/cn/lit/ug/slau132c/slau132c.pdf
on page 109 it says that this delay does not effect anything. Though it is....
Any thoughts?
I'm witnessing something odd and was wondering if I'm doing something incorrectly. I'm just trying to blink an LED at some rate for debug on my board. I'm new to MSP430's compiler. So in debug mode I step through this snippet of code:
Code:
while(j <= 250)
{
__delay_cycles(thousand);
j++;
P1OUT ^= P1OUT;
__delay_cycles(thousand);
}
It runs and counts up j until it gets to 15. Then it clears itself after one of the delay cycles. I'm stumped. In the datasheet for the compiler:
https://www.ti.com.cn/cn/lit/ug/slau132c/slau132c.pdf
on page 109 it says that this delay does not effect anything. Though it is....
Any thoughts?