i have problem with the led blinking. I using the exmaple program given by keil using uVision3. When i run the program, the LED on the development board didnt blink, it just stay on! wat should i do?
thanks!
I think it is better if you start by teaching your delay function to actually perform any delay.
Let's repeat: I think it is better if you start by teaching your delay function to actually perform any delay.
Don't you get it? Your delay function does not implement any delay! It is possible that the compiler will call it and immediately return. But just as possible that you won't even get any function call since your delay function does not have any side effect.
Question: How do you get your LED to flash slower? Answer: You teach your delay function to actually perform a delay. Suggestion how to do that: A huge number of suggestions available by using the search function in the upper right corner of this web page.