Hi,
Why not have a look to the CCP COMPARE section of your Datasheet ??? just reset TMR1 @ zero crossing and load Compare value as the delay for delaying your SCR firing ...
What about ???
Also have a look to MELABS site examples page , Steve Monfette has provided a good example ... for dimmer.
http://www.melabs.com/resources/samp...ted/dimmer.zip
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks