My PBP3.0 client (MicroCode Studio) automatically turns the defines into lower case.

In any case (no pun intended), I have a number of other defines used for A/D conversion and LCD prep that work fine.

Since I posted the code above, I changed "duty" and "Freq" from Var to Con (constant), not that it made any difference.

I'm pulling the chip and will see if it's a hardware problem. I could also check if RB0 works instead of RB3, because I cannot see where there's a problem in software.