Try this ...
You'll need to put the piezo circuit on a CCP pin.

Code:
Freq  VAR WORD

Main:
    FOR Freq = 3000 TO 4000 STEP 10    
        HPWM 1, 127, Freq
        PAUSE 1 
    NEXT Freq
GOTO Main
It should sound something like this ... http://support.melabs.com/DT/Piezo.wma