I have come across this problem sporadically... though I haven't had enough time to investigate why sometimes it occurs in some applications and sometimes it doesn't.
It last happened to me when I did this example...
http://www.picbasic.co.uk/forum/show...=&threadid=573
...which co-incidentally I've just noticed, also had all the LED's sequentially on PortA... hmmm...
Generally I have employed this kind of easy work-around when caught in a corner with clients gunning for me... and you'll notice I did a similar thing with that comms example.
PortAStatus var BYTE
PortA0 var PortAStatus.0
PortA1 var PortAStatus.1
PortA2 var PortAStatus.2
PortA3 var PortAStatus.3
' etc etc
Start:
PORTA0 = 1:PortA=PortAStatus 'turn on led1
PAUSE 1000
PORTA1 = 1:PortA=PortAStatus 'turn on led2
PAUSE 1000
PORTA2 = 1:PortA=PortAStatus 'turn on led3
PAUSE 1000
PORTA3 = 1:PortA=PortAStatus 'turn on led4
PAUSE 1000
PortAStatus = %00000000:PortA=PortAStatus 'turn OFF all leds
PAUSE 1000
goto Start
Bookmarks