oscillator problem


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Lightbulb oscillator problem

    I'm running an 18f1320 at 40mhz using a 10mhz crystal with PLL enabled.

    The oscillator worked fine on a breadboard, but when I built a PCB for it, it worked for a while and then stopped working.

    It works again for a little while if I melt the solder points for the oscillator with my soldering iron, but 20 mins later it stops working again.

    Ive attached the PCB design. Anyone have ideas?
    Attached Images Attached Images  
    Last edited by Acetronics2; - 4th September 2010 at 10:55. Reason: reset original post
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Melt the solder where?

    But what if you try MCLR as an input? Or are you?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Melt the solder where?

    But what if you try MCLR as an input? Or are you?
    If I melt the solder that connects the crystal's pins to the pcb it works for a while. I assume it's because it's heating up the crystal?.

    Currently I have MCLR enabled, and have a 10k resistor pulling it high.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    If I melt the solder that connects the crystal's pins to the pcb it works for a while. I assume it's because it's heating up the crystal?.

    Currently I have MCLR enabled, and have a 10k resistor pulling it high.
    Hi, Kamikaze

    No decoupling capacitors anywhere ??? ... especially the magic 0.1µF between supply pins ???

    Further ... having your config header could have helped, but surely "Top secret matter"

    Waiting for more infos ...

    Alain
    PS : sorry for the first post ... I've hit the wrong button ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    No decoupling capacitors anywhere ??? ... especially the magic 0.1µF between supply pins ???
    Further ... having your config header could have helped, but surely "Top secret matter"
    Yes there is a 0.1uF cap close to the VCC pin from there to ground. There is also a 100uF cap at the point that the supply enters the board (board is supplied by an external 5v source).

    config:
    Code:
            __CONFIG    _CONFIG1H, _HSPLL_OSC_1H
            __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
            __CONFIG    _CONFIG3H, _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _LVP_OFF_4L
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  6. #6
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Just to be sure, I just added another 0.1uF cap directly across the supply pins of the pic and it didnt help.

    I've also turned off MCLR, but also no luck.

    I've also just tried replacing the PIC but same issue.

    I'm stumped.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    Yes there is a 0.1uF cap close to the VCC pin from there to ground. There is also a 100uF cap at the point that the supply enters the board (board is supplied by an external 5v source).

    config:
    Code:
            __CONFIG    _CONFIG1H, _HSPLL_OSC_1H
            __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
            __CONFIG    _CONFIG3H, _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _LVP_OFF_4L
    Could you try

    Code:
    @ __CONFIG _CONFIG1H, _IESO_OFF_1H & _FSCM_OFF_1H & _HSPLL_OSC_1H
    @ __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_27_2L
    @ __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_32K_2H
    @ __CONFIG _CONFIG3H, _MCLRE_ON_3H
    @ __CONFIG _CONFIG4L, _DEBUG_OFF_4L & _LVP_OFF_4L & _STVR_OFF_4L
    @ __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
    @ __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    @ __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
    @ __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    @ __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
    @ __CONFIG _CONFIG7H, _EBTRB_OFF_7H
    as a config , to be sure of.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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