??? 10/22/10 17:11 Read: times |
#179288 - Per Westermark's previous message Responding to: ???'s previous message |
Dear Per
As you suggested... Per Westermark said:
A normal way to solve problems is to reduce them into smaller ones. Make two programs. One program holds the pins high. One program holds the pins low. I made one pin low and other as high. And the results were as expected i.e. one led is on and other is off. When i change the order, the second one is high and the first low. It again works fine. Also i have done this by making the optimization option to 0. But... When i run the normal program i.e. turning on and off leds alternatively in an infinite while loop, the led do the flickering i.e. timing delay is not proper just randomly being on and off. I am not using external crystal and enabling the internal RC Oscillator while programming. Do this have anything to do with the problem. Do i need to add any code for the oscillator settings in the C file besides it is sleeted as internal RC oscillator in the start900.a51 file. Regards |