A few months ago I built a VCR controller using a NE567 and a 12f629 when the ne567
locks on the line frequency in the video(This horizontal frequency is around 15.750khz )
it give a input to the 12f629 and it starts and stop the VCR recording. which works get.
BUT
I was wondering could I use the count command to detect the 15.750khz and not use
the NE567. so I wrote a little code and hooked it up to my LCD demo board and nothing.
it does not detect the frequency. I'm think the code is OK but maybe the aptitude of the
video signal is to low and maybe need amplified. I don't have a scope so I not sure.
If you think that maybe the case how can I make a simple amplifier to boost it
any help thanks

Code:
'****************************************************************
'*  Name    : freq count.BAS                                      *
'*  Author  : grounded                                    *
'*  Notice  : Copyright (c) 2008 homemade stuff   *
'*          : All Rights Reserved                               *
'*  Date    : 12/2/2008                                         *
'*  Version : 1.0                                               *
'*  Notes   :                                                   *
'*          :                                                   *
'****************************************************************
 pic16f676
    'FUSES SET IN INC FILE
 'INTRC_OSC_NOCLKOUT, WDT_ON, MCLR_OFF,
'CPD_OFF, BOD_OFF, PWRT_ON,PROTECT_OFF   
  DEFINE OSC 4
  Define OSCCAL_1K 1						
Pause 3000                   	 ' Allow pic to Stabilize	

CMCON = 7                        'COMPARATOR OFF
VRCON = 0                        'VOLTAGE REF. DISABLE	
TRISA = %0000110                 'MAKE PORTA.2  INTPUTS(.3 MUST BE INPUT) 
TRISC = %00000000				 'MAKE ALL PORTC OUTPUTS
ANSEL = %00000000                'PORTA. DIGITAL
SYMBOL LED= PORTA.5              'POWER UP LED
SYMBOL FI=  PORTA.2               'FREQ IN
SYMBOL LP=  PORTA.0 
OPTION_REG.7 = 0                 'ENABLE WEEK PULLUPS (CLEAR RAPU) 
WPUA = %0000000                  'NO WEAK PULLUPS ON PORTA 
LED=0
DEFINE CHAR_PACING 1000
DEFINE LCD_DREG PORTC         ' Set LCD Data PORTC
DEFINE LCD_DBIT 0             ' Set starting Data BIT (0 OR 4) IF 4-BIT bus
DEFINE LCD_RSREG PORTC        ' Set LCD Register Select PORTC
DEFINE LCD_RSBIT 5            ' Set LCD Register Select BIT PORTC
DEFINE LCD_EREG PORTC         ' Set LCD Enable PORTC
DEFINE LCD_EBIT 4             ' Set LCD Enable BIT PORTC.3
DEFINE LCD_BITS 4             ' Set LCD bus size (4 OR 8 bits)            
DEFINE LCD_LINES 2            ' Set number of lines ON LCD
DEFINE LCD_COMMANDUS 2000     ' Set command delay time in us
DEFINE LCD_DATAUS 50          ' Set Data delay time in us
LED=0 :FI=0 : LP=0             'TURN EVERTHING OFF
 LED=1 :PAUSE 2000 : LED=0    'POWER O.K.
 
 F VAR WORD :F=0

Loop:
COUNT FI,1000,F
LED=0
LCDOut $FE,1
LCDOUT "FREQ  ", DEC5 F," Hz"
IF F=>15000 AND F=<17000 THEN LED=1
 goto loop