VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345678[9]10 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 00:04:20 02/12/02 Tue
Author: Ronald
Subject: Potter: SX Code

Hi Potter, I am not able to get picture locked on your 50mhz or 20 Mhz code. How can I modify your 50Mhz source to work on this timing?

MAKEHLINE
incf COARSEFASTCNT,f ;CY=1
incf COARSESLOWCNT,f ; add 1 to both as one will ALWAYS be reset!
nop
nop
nop
nop
nop
nop
nop
nop
movlw BLACK ; make BLACK
btfss MODE,VIDEOKAY ; IF video bad THEN
movlw VIDEO ; pass video
movwf PORTB ;CY=14 change mode

nop
nop
nop
nop ; waste some time

movlw SYNC ; make SYNC
btfss MODE,VIDEOKAY ; IF video bad THEN
movlw VIDEO ; passvideo
movwf PORTB ;CY=22 change mode

nop ;
nop ;
nop ;
nop ;
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

movlw BURST ; pass burst
btfss MODE,VIDEOKAY ; IF video bad THEN
movlw VIDEO ; pass video
movwf PORTB ;CY=45 change mode

movf PORTB,w ; take sample..NEW ***
nop
nop
movwf DATAHOLDER

btfsc DATAHOLDER,NEGEDGE ; IF neg edge was heard THEN
bsf DATAHOLDER,POSEDGE ; make it look like we heard pos edge

;----------------------new vcxo (digitalman)--------
bcf PORTA,PLL ;PLL=0
movlw OSCTRLON ;OSCTRLON=11111000b
btfsc DATAHOLDER,POSEDGE
movlw OSCTRLOFF ;OSCTRLOFF=11111001b
tris PORTA
;--------------------------------------------------
btfss DATAHOLDER,POSEDGE ; IF no pos edge THEN
clrf COARSEFASTCNT ; clear fast counter
btfsc DATAHOLDER,POSEDGE ; IF pos edge THEN
clrf COARSESLOWCNT ; clear slow counter

btfsc COARSEFASTCNT,6 ; WAS 6 ; IF fastcount is 64 THEN
goto NORMAL ; .4uS + .2uS to NORMAL

btfsc COARSESLOWCNT,6 ; WAS 6 ; IF slowcount is 64 THEN
goto NORMAL ; .8us + .2uS to NORMAL

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.