Thanks Peter. In this case it is difficult to do so otherwise. The pic is controlling the phase of the mains line ie. continually changing the power delivered to a load. I can see how if it was just turning something on or off it would be much easier. I will give this some thought however as to whether I could use a lower voltage load. cheers, jim On Fri, 2007-18-05 at 19:44 +0100, peter green wrote: > > Thank you everyone for your help and suggestions, sounds like isolating > > the circuit wins the votes. Steve w.r.t. using a 6 v transformer, I'm > > not sure this helps since the pic is driving a triac which is > > controlling lights running on mains. > Personally i wouldn't have the triac circuit live when doing the pic development work unless I had a good reason to. Working live on mains stuff is something that should only be done when there is no other way of performing the tests required. > > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist