Hi and thanks for the tip. I will certainely do so but must warn you the code actually works when the timer values are reduced. Also, it has to be the second simplest code I have ever written short of flashing an LED. Will post tomorrow anyway. John -----Original Message----- From: Joe Hamilton [mailto:joeh100@CROSSWINDS.NET] Sent: Friday, 10 March 2000 10:40 To: PICLIST@MITVMA.MIT.EDU Subject: Re: Gotcha not I personally feel the problem could be in your code. Why not post it and let some of these experts (me excluded) look it over. Joe ----- Original Message ----- From: Spehro Pefhany To: Sent: Friday, March 10, 2000 4:38 AM Subject: Re: Gotcha not > At 05:29 AM 3/10/00 -0500, you wrote: > >What are the chances that your timing routines have a glitch? When > >you use short times, you indicate it works fine. Longer times cause a > >problem. Presumably for longer times you are using additional > >registers to keep track of time. Do you not possibly have a bug where > >these registers are not being incremented correctly, causing problems > >with timekeeping? > > To check for a hardware problem... suggest you make a program that > switches the relay on and off rapidly, maybe 1 second on/1 second off > and listen to it operate for a few minutes. It's very important that > the solenoid valve be connected during this test, it's quite possible > that the problems are related to the solenoid inductance. > > Best regards, > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = > Spehro Pefhany "The Journey is the reward" > speff@interlog.com > Fax:(905) 271-9838 (small micro system devt hw/sw + mfg) > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = >