High speed timing (1uS) with 500 mS delay.

timer2 is an 8-bit timer so without prescaler the longest pulse length would be 16µs.