There are configuration bits that control the type of oscillator the PIC is supposed to use. It looks like you have selected the RC oscillator mode. Try one of the two crystal modes (HS or XT). /\/\/\/*=Martin ----- Original Message ----- From: "Peter Meleschko" To: Sent: Tuesday, January 22, 2002 10:23 AM Subject: [PIC]: 16F84 oscillator problem > Hi, > > This is my first post to this amazing list, and indeed my first steps > with the PIC, som please pardon me for this maybe banal post. > > I've build a developmentkit for the 16F84. The kit comes with LEDs and > switches on alle ports and can program/run the 16F84 and others. > > So I compile the fameous "blinking led" program and program the PIC. > Switch the programmer into "run mode"... nothing happens. > I verify that the code resides correctly in the F84 and it does. > I pull out the PIC and insert it into a breadboard wired with the quick > resistor/capacitor oscillator, switch on power... and the attached LED > blinks away... > Still on the breadboard I change the resistor/capacitor oscillator with > a 4Mhz crystal and two 22pF capacitors.. but now nothing happens. > I try if the crystal sits loose and at the moment my fingertip touches > the crystalhousing the LED starts to blink. > Back in the programmer I observe the exact same behaviour. > > So I think the PIC is damaged due to some ESD or something, so I insert > a new 16F84... BUT THE SAME HAPPENS.... this is killing me what is > wrong?? is it the code ?(I've attached the code to this mail) > > With the hope that someone can bring me out of my misery > Best regards, > > PeterM > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads