This is a PWM generator, which creates 1 ms (if GPIO-0 is 0) and 2 ms (if GPIO-0 is 1) pulses on GPIO-1. The delay between two pulses is about 20 ms. The 1 ms and 2 ms pulse length can be adjusted with 64 µs resolution.
Source code for PIC12F508
1 ms output:
2 ms output:
Delay: