PIC16F887, 16F917, 16F1939, basically any with built in oscillator, 44 pin tqfp case and at least 8k memory.

Why does this matters? above code uses some chip specific magic?