628A, OK, that should make it easy.

XOUT TRISB.3,PORTA.0,[house\lightsOff]


The idea is that the XOUT command takes a register and a bit for the output pin assignment. Normally this is something like PORTB.0 but it really doesn't matter which register and bit you use.

So by assigning TRISB.3 as the output, it should modulate the PWM by turning the pins output on and off.

PBP finds the location of the corresponding TRIS register by simply adding 80h to the PORTs address. For PORTB (06H), TRISB would be 06h + 80h = 86h.   So now, if PBP thinks that TRISB.3 is a physical pin, then it will also try to set the pin to Output by clearing (106h).3 which now lines up with PORTB again in bank2. But since that pin is overriden by the Peripheral select switch, the data doesn't get thru, so all's well.



The reason I say all of that, is because if you try to do the same thing on an 18F, the registers don't line up next to each other like that, and can cause some pretty nasty problems.

As for the 12F629/75, I suppose you could set up the timer to generate the frequency using interrupts, and do the same thing with TRIS.

Should work for SEROUT(2) as well. Assuming it works at all.

HTH,
   Darrel