On Thu, 12 Jun 2003, =C1lvaro Deibe D=EDaz wrote: > I suspect that a collision between packets in the RS485 is related with > the resets, but I can not track it. I'd check more carefully for transient voltage droops/spikes while lights are being switched on, especially if the two PICs share a common ground but are at opposite ends of a long cable. ESPECIALLY if you are doing an= y kind of dimming of the lights, using PWM for example. When testing my yard light timer, I had a really slick little PWM ramp-up to full power to bring the lights from full off to full ON over about 1 second. Really nice looking soft-start, worked great on the bench. But with 100' of wiring and a bunch of lamps attached, the spikes caused by the inductance of the cable made a real mess of things. As soon as the PWM started the PIC would reset - wake up, start the PWM again, reset - you get the picture. Now I just turn on one half of a rectifier at a time, aout half a second apart for a similar effect (but not as cool). Dale --=20 It's a thankless job, but I've got a lot of Karma to burn off. Get a PicoKeyer: http://www.hamgadgets.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics