On Tue, 13 Jan 2009 10:54:59 +1300, "Brent Brown" said: > Dont forget what would happen if the PIC was reset while driving the > relay... port pin > goes from being an output to input, current flowing through coil induces > back EMF > and destroys and damages I/O pin. I think you need the diode. How does it get damaged? Cheerful regards, Bob -- http://www.fastmail.fm - I mean, what is it about a decent email service? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist