IRstuff, Misbehaving meaning with no analog input to my microcontroller the output is at max. I am using a microcontroller to control dimming function for a underwater light. With 0-5VDC analog input, controls my phase delay or triac firing(using a zero-crossing input as a reference). Well with no analog input (0VDC) there should be no light output and there was. I have a dual schottky diode, BAT54SWT1, connected to the front end of my analog input to protect from ESD or voltage spikes. I was thinking with no analog input (0VDC), that BAT54 diode was leaking and setting the PIC analog input at 5VDC, which is the max analog input that gives me max brightness (triac firing right after zero crossing for each half cycle). This was a prototype board, PCB made using a local electronics shop copper board and etching chemical. Mostly all the components were surface mount, soldered quickly (not in a controlled environment) so I am thinking the board was being stressed non-uniformly. That's the only thing I can think of.