[time-nuts] 5 MHZ PIC PPS Divider?

David Forbes dforbes at dakotacom.net
Fri Apr 11 16:12:20 EDT 2008

At 3:23 PM -0400 4/11/08, John Ackermann N8UR wrote:
>Has anyone come up with a 5 MHz input version of TVB's PIC divider?  I
>could use one...


I haven't done that, but it looks easy to do. Change the second stage 
to divide by 5 instead of 10. You will get 50 KHz instead of 100 KHz, 
but so what.

This takes two changes in the constants for Digit1's tests:


Loop1           BTFSC   STATUS, Zero
                   INCF    Digit1
                 MOVLW   BASE10      <-- change BASE10 to 0x5
                 SUBWF   Digit1, W
                 BTFSC   STATUS, Zero
                   CLRF    Digit1


                 MOVLW   HALF10   <-- change HALF10 to 0x2
                 SUBWF   Digit1, W
                 RRF     OutByte, 1


--David Forbes, Tucson, AZ

More information about the time-nuts mailing list