to start with you have not fully defined how the main OSC is setup i would add
OSCCON1 = $62;
secondly you have not set a clock source for timer1, as it is it expects a clock signal on the t1clk...
a pic16f345 is not a valid pic type, perhaps a simple schematic of your actual setup is called for and
then why don't you post the code you have tried. if you don't want to post the complete project...
Re: Connecting 24vdc power supply to 110vac
Hmm, won't let me edit.
Demon Yesterday, 17:35I assume L is load (black wire connected to breaker), N is neutral (white wire to common bus bar).
Just wanna make sure.