Try this. At 20MHz you should have a 500kHz signal on the pin used.
Code:
DEFINE OSC 20
TRISB.0 = 0

ASM
loop ; @ 20MHz 1us high + 1uS low
    bsf portb,0   ; 200nS
    goto $+1      ; 600nS
    goto $+1      ; 1000nS high
    bcf portb,0   ; 200nS
    goto $+1      ; 600nS
    goto loop     ; 1000nS low
ENDASM