This counts binary, but I cannot seem to add the potentiometer..
list p=16F690
#include <p16F690.inc>
org 2007h
dw _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF
count1 equ 20h
count2 equ 21h
count3 equ 22h
org 00h
goto startProgram
org 04h
goto isRoutine
startProgram
movlw 00h
banksel TRISC
movwf TRISC
banksel PORTC
movwf PORTC
movwf count3
back3 movlw .250
call delay
incf count3
movfw count3
movwf PORTC
goto back3
isRoutine
retfie
delay movwf count2
back2 movlw .248
movwf count1
back decf count1
btfss STATUS,Z
goto back
decf count2,F
btfss STATUS,Z
goto back2
return
end