i need to create a simple clock/counter that increments roughly every second. Accuracy is not very important so long as its approximatly 1sec. When the counter reaches a given value i'll use it to set a flag which i plan to use to drive another process.

i'm using pic16F876a

can anyone help, i'm still learning picbasic


many thanks

jim