Ali Shah wrote:

I have made corrections and now the device exhibits random behavior.
Port 5.4, 5.5 and  5.6 are attached to LEDs on the device.
Sometimes all the LEDs will blink on and off as programmed, and
sometimes the LEDs won't switch on at all. I have attached the
disassembled code as well.

Random behavior may be a result of external "random" conditions. Your software code does not have randomness.

* Is the clock at your device running?
* Is the power good? Set a breakpoint to e.g. Mainloop and check if the
  device ever reach this code position.

Check this for the case if the LEDs do not blink.

Ralf

Reply via email to