I'm having a problem with a really simple program that is designed to flash an LED on each of four output channels on an 08M2:
main:
high c.0,c.1,c.2,c.4
pause 200
low c.0,c.1,c.2,c.4
pause 2000
goto main
That's all the code there is -- similar to the example in the manual. On the simulator it appears to work as expected. The problem I'm having is in the prototype the second pause is giving me the flash interval I want, but changing the first pause to modify the duration/brightness of the flash is having unexpected results; too low a figure, say around 40, gives me a very weak flash, but increasing it to 200 gives me a definite double-flash, not the longer brighter flash that I want. I've tried using only c.0 in the program, but the same effect.
The prototype circuit is a very simple one, with each of the four 08M2 outputs going direct to a pair of input pins on a ULN2803AD Darlington array, with the four LEDs connected direct to the corresponding paired outputs of the array.
Any suggestions please?
main:
high c.0,c.1,c.2,c.4
pause 200
low c.0,c.1,c.2,c.4
pause 2000
goto main
That's all the code there is -- similar to the example in the manual. On the simulator it appears to work as expected. The problem I'm having is in the prototype the second pause is giving me the flash interval I want, but changing the first pause to modify the duration/brightness of the flash is having unexpected results; too low a figure, say around 40, gives me a very weak flash, but increasing it to 200 gives me a definite double-flash, not the longer brighter flash that I want. I've tried using only c.0 in the program, but the same effect.
The prototype circuit is a very simple one, with each of the four 08M2 outputs going direct to a pair of input pins on a ULN2803AD Darlington array, with the four LEDs connected direct to the corresponding paired outputs of the array.
Any suggestions please?