Generation problem


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31

    Unhappy Generation problem

    Hello everybody!

    I have problem with oscillator. When I use PIC16F84 AP/4 and with “canned” 4MHz oscillator controller works great but with 4 MHz crystal and two 22pF ceramic capacitors generator doesn’t work. I played with value of capacitors, I tried to change position of the crystal and capacitors, but there is still no generation. What other parameters might affect on generation? What typical amplitude of generation if VDD 5V ? I use Hameg 20Mhz oscilloscope. Should I use small capacitor to connect probe to make measurements of oscillator?
    Thank you in advance
    Vladimir

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Are you sure it isn't running?

    Just thinking out loud . . have you tried to load and run a simple program?
    What I am wondering is if your scope inputs impeadance is so low that the act of checking it loads the oscillator enough to stop it. The "canned" oscillators have a much more robust output than on chip unit. try putting an 100 kilo to 1 meg ohm resistor in series with your input, it will reduce the pattern height but if you geet anything on screen then you know you are on track. . .
    JS

  3. #3
    Join Date
    Oct 2005
    Posts
    28


    Did you find this post helpful? Yes | No

    Default

    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.

  4. #4
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Default Generation problems

    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

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Lazy Oscillator

    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

Similar Threads

  1. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  2. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts