Have you got your oscillator mode set right? I think it is HS for crystal..don't have my documaentation in front of me but I have had trouble with forgetting this.
Have you got your oscillator mode set right? I think it is HS for crystal..don't have my documaentation in front of me but I have had trouble with forgetting this.
Hello, thank you everybody for replies.
Yes, I downloaded program into PIC controller, and I‘m 100% sure there is not generation , because if I use external source of oscillation controller wakes up and works properly. I think my prototype PCB isn’t good and there are some parasitic influence between components. What are there general rules exist for placing components around PIC controller?
Vladimir
Hi Vladimir,
Running at 4 MHZ you should not have too many RF issues as the frequency is so low. When you program the chip - make sure the programmer is set to " XT " for 4 mhz if it is set to " HS "or " RC" it will not oscillate with a resonator or crystal. Since 4 MHZ is the default speed for this chip I do not believe you need to DEFINE it in the code, I never have for 4 mhz and they always work. Also make sure no other loads are attached to pins 15 or 16, just the crystal and 22pf caps.
I Hope this helps.
JS
Bookmarks