Salamo 3alikom
I am sorry for not posting for a long time , because I was outisde the country for some jobs and I had some error in connection to this website from London, however ,
the circuit above is completely WRONG!
PIC operates at a vdd 5v but I see there youse 12v!
you need 2 caps (22pf) around the crystal
you need 5 v regulator 7805 would be ok
you need filter caps on the power trail
you need 100nF ver closed to Vdd and Vss
you need to pull down your switchs via (4K7-10K resistors)
you need to pull up your MCLR via (4k7-10k resistor)
you may need fast recovey diods across the load
please explain the job of this circuit and give more info about the loads and I will draw a shematic for you .
please contact me * :
picworks2006*yahoo.com
Salamo 3alaykom