At 08:01 AM 7/17/01 -0400, you wrote: >>BTW, like the other fellow, I'm a bit confused by your subject heading. >>My guess is that the servo is pulling the supply voltage down and the >>micro is resetting. What does this have to do with PORTB? > >As Dan corrected me, it's not the servo signal PIC pin that's drawing the >current, it's the servo power supply lines. Now that I think of it, I >probably measured the draw overall, not just from the pin. > >However, the supply really never goes below, say, 4.8 V, and I have an >external reset circuit set at 4.0 V. If your battery voltage is only 4.8V and you add a silicon diode in series (600-700mV) and your external reset circuit is set at 4V, how much margin do you have? A spike of only a couple hundred mV would be enough to trigger the reset circuit. If your microcontroller etc. would work to 3V or 2V and your external reset circuit was set to 2.1V nominal or whatever, you'd have MUCH more room to play with. >If it were brownout, then I would >imagine that the entire program would just reset and start at the beginning, >but it doesn't. Often, it just "pauses" for about a second, then continues >at the same point in the code. How do you know it's the same point in the code? Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.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