On Sun, 5 Nov 2000 03:55:19 -0600, you wrote: > Hello. I have a problem with the startup on the 16F877. > >In the startup the PIC start slowly, and it take a few seconds for begin= (2 >or 3 seconds). Then, the LED's that I have connected to the PIC they = blink a >little, until finally they light up and the PIC works correctly > >I using the PIC to decode a IR Sony, to read a ADC pin and to generate = an >PWM out (for the mometo) > >When I run small programs, or I modify (several modify) the current = program, >the problem disappears or he attenuates. > >As data I count them that the clock is of 4 MHz, the source is regulated= and >very reliable (5V), etc. > >The program begins settings the corresponding TRIS. Then turn on the pin >PORTA,1. Then reads two pines of the port B to decode IR Sony, it = filters >the data and turn on a LED in the PORTA,1 if the codes are correct. The >program waits a "four digit key" and, if it is correct, when pressing = the >key DISPLAY, he gives an exit PWM given by an analogical entrance by the >PORTA,0 > >The program in MSPAM is in >http://members.nbci.com/_XOOM/chicomalo/IRsony.asm > Sounds like either the MCLR pin is floating, or you have Low Voltage Programming (this is the default) enabled and RB3 is floating.=20 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.