A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
I am trying to test a 16f84a following http://www.voti.nl/blink/ I tried with a 4.7 k & 22 pf and also with 20 mhz kds & 2 22 pf and it won't resonate unless I bump the circuit. It's not loose connections and using the same circuit sans the external resonator with a 16f628 using an internal rc works fine. Tried several 16f84a. Could I have defective 16f84a pics? I am using ICPROG/JDM clone to program both the 16f628 & 16f84a. Works if bumped GND -- VSS 5 |------| 17 RA0 -- 330 -- LED -- VSS | | | | 16--|-- 22pf -- VSS |16f84a| XTAL (20 mhz) | | 15--|-- 22pf -- VSS | | |------| 14 VDD -- 5V Works if bumped GND -- VSS 5 |------| 17 RA0 -- 330 -- LED -- VSS | | 22pf -- VSS |16f84a| 15 RC --| | | 4.7k -- VDD |------| 14 VDD -- 5V WORKS GND -- VSS 5 |------| 17 RA0 -- 330 -- LED -- VSS | | |16f628| |------| 14 VDD -- 5V |
|
|
|
----- Original Message ----- From: "davidgarciajr" <> To: <> Sent: Monday, May 31, 2004 4:33 AM Subject: [piclist] 16f84a won't resonate > I am trying to test a 16f84a following > > http://www.voti.nl/blink/ > > I tried with a 4.7 k & 22 pf and also with 20 mhz kds & 2 22 pf and > it won't resonate unless I bump the circuit. It's not loose > connections and using the same circuit sans the external resonator > with a 16f628 using an internal rc works fine. Tried several 16f84a. > Could I have defective 16f84a pics? I am using ICPROG/JDM clone to > program both the 16f628 & 16f84a. Have you enabled the XT oscillator (HS for 20 MHz) when programming the chip? I also use IC-Prog/JDM and it's quite easy to forget it. Leon |
|
|
|
Yes, HS is enabled in ICPROG. Weird thing is if I do a reset from VCC to MLCR for a second, it will work for a bit and then stop. > Have you enabled the XT oscillator (HS for 20 MHz) when programming the > chip? I also use IC-Prog/JDM and it's quite easy to forget it. > > Leon |
|
|
|
I ended up connecting vdd and mclr with a 10k resistor after reading the data sheet. It now resonates, blinks on power up and stays blinking. Looks like something to do with the power up, power on reset and waiting to see if the oscillator has stabilized. Is this correct? --- In , "davidgarciajr" <davidgarciajr@y...> wrote: > Yes, HS is enabled in ICPROG. Weird thing is if I do a reset from VCC > to MLCR for a second, it will work for a bit and then stop. > > > Have you enabled the XT oscillator (HS for 20 MHz) when programming > the > > chip? I also use IC-Prog/JDM and it's quite easy to forget it. > > > > Leon |
|
----- Original Message ----- From: "davidgarciajr" <> To: <> Sent: Monday, May 31, 2004 7:09 AM Subject: [piclist] Re: 16f84a won't resonate > I ended up connecting vdd and mclr with a 10k resistor after reading > the data sheet. It now resonates, blinks on power up and stays > blinking. Looks like something to do with the power up, power on > reset and waiting to see if the oscillator has stabilized. Is this > correct? MCLR should be pulled up, as you have done. With the '628 you may enable PWRT, allowing MCLR to be used for I/O. Leon -- Leon Heller, G1HSM http://www.geocities.com/leon_heller |
|
|
|
On Mon, 31 May 2004, Leon Heller wrote: > Leon Heller, G1HSM > http://www.geocities.com/leon_heller Hi Leon, Nice web pages you have here ! best regards, Vasile http://surducan.netfirms.com |
|
----- Original Message ----- From: "Vasile Surducan" <> To: <> Sent: Tuesday, June 01, 2004 12:00 PM Subject: Re: [piclist] Re: 16f84a won't resonate > > On Mon, 31 May 2004, Leon Heller wrote: > > > Leon Heller, G1HSM > > http://www.geocities.com/leon_heller > Hi Leon, > > Nice web pages you have here ! Thanks, Vasile. I update them when I done something I think people might find useful. Regards, Leon |