Quote Originally Posted by Darrel Taylor View Post
Oh, is that what it's supposed to do.
Might be a problem there. The comment also says 14400 uS, but those loops are going to take about 14.4 seconds instead.
Code:
FOR i = 0 TO 960			'total loop time: 14400 uS which is the total length of the bullet
	PAUSE 15	          	'remember that the minimum delay at 8MHz is 12 uS
	IF PORTA.0(area) == 1 THEN breakloop2 
				            'when signal goes high, exit loop and check duration before the change, you need about 600us
NEXT i
Actually, it looks like all your comments show PAUSEs in uS. But the PAUSE statement delays in milliseconds.

You probably wanted PAUSEUS.
You are right, it is PAUSEus but for the test phase I replaced temporarily by PAUSE to be able to monitor what is going on with a 5V led.