Ok that one's using rectified ac not a problem thats where i was gonna grab my 6v, r1 is not listed but will drop in a 1k, i noticed there were no snubbers on the triac but that was for a resistive load here's what i was thinking

http://www.chrisncarol.com/switch.jpg

Quote Originally Posted by mister_e
that's different, so you don't need any timer stuff. Just poll the pin or use Interrupt on X pin on rising or falling edge.

The following is another one wich can be handy.
http://www.picbasic.co.uk/forum/show...63&postcount=5

OR on Melabs website wich also include the schematic. Dimmer.Zip
http://www.melabs.com/resources/samples.htm#submitted

*** EDIT ***
Yeah on the previous i lace 10K to ground to avoid weird reading when the input is left open. That way it ensure the PIC see 0V so never count and display XYZ results.