Ross,

to use HPWM on the 16F628 your LED must be connected to RB3
(This is the only Hardware PWM Port on the 628)

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


The difference is once you have initialized in runs forever in Background while your PIC is doing other Things.

See PBP Manual Section 5.29 for reference.

regards

Ralph