Actually, I think I found something. I believe this will work:

Duty VAR BYTE
Freq VAR Word
LED VAR PortB.3

' changing the value for "Duty" will change the brightness
Duty=127 ' about 50% Brightness

Freq=1000 '1 kHz


HPWM LED,Duty,Freq