I am having an issue with the 'COUNT' command.
From the manual..
main:
count 1, 5000, w1
debug w1
goto main
It is supposed to count the transitions on pin1 in 5 seconds and put the result into W1, showing them in the debug window. Correct?
What happens..Nothing!
The program loops from the goto back to "main", does not slow at the count statement, w1 does not increment and the debug window (since I am running this on the simulator) does not open. All applicable chips were tried and the editor is 5.2.1
Is it me?
Len
From the manual..
main:
count 1, 5000, w1
debug w1
goto main
It is supposed to count the transitions on pin1 in 5 seconds and put the result into W1, showing them in the debug window. Correct?
What happens..Nothing!
The program loops from the goto back to "main", does not slow at the count statement, w1 does not increment and the debug window (since I am running this on the simulator) does not open. All applicable chips were tried and the editor is 5.2.1
Is it me?
Len
Last edited: