Oh, is that what it's supposed to do.In my routine, there is a block that will scan the input on the triggering pin for the duration of the expected signal (about 14.4ms) so the interrupts will not be re-enabled until the 14.4ms duration has elapsed.
Might be a problem there. The comment also says 14400 uS, but those loops are going to take about 14.4 seconds instead.
Actually, it looks like all your comments show PAUSEs in uS. But the PAUSE statement delays in milliseconds.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
You probably wanted PAUSEUS.
Bookmarks