PIC18F4850 will not oscillate


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    Bruce,

    I read back the configuration from the PIC, and it returned the following:

    Code:
    0000- 0200 1f17 8200 0081 c00f e00f 400f
    Towards the bottom of the window, it has a 0xEB87. I can't really tell what this data means, so I am looking at the DS39622L document from microchip. But I really can't see how those two relate. Page 29, of the document shows the configuration bits and the CONFIG1H is located at 300001h.

    Mark_s,

    I changed the 18F4580.INC file to comment out the _CONFIG statements and recompiled. I also change the options to the meProg to not "Update configuration from file". I reprogrammed the device, but no luck. I read back the configurations bits and they are the same as above.

    Any more ideas?
    Attached Images Attached Images  

  2. #2
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    So I made sense of the configuration read back results. And as I imagine the CONFIG1H is not being set by the U2 programmer.

    CONFIG1H = 02 (HS Oscillator enabled)
    CONFIG1L = 00 (default))
    CONFIG2H = 1F
    CONFIG2L = 17
    CONFIG3H = 82
    CONFIG3L = 00
    CONFIG4H = 00
    CONFIG4L = 81
    CONFIG5H = C0
    CONFIG5L = 0F
    CONFIG6H = E0
    CONFIG6L = 0F
    CONFIG7H = 40
    CONFIG7L = 0F


    The configuration file seems to be correct. Can anyone make sense of what is going on?. I have two cards behaving exatly the same.
    Last edited by IRQ_Diode; - 9th March 2011 at 00:06. Reason: Corrected the H and L on the CONFIGx table.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    When you read the .HEX from the PIC with your programmer, just click the C to view the config settings embedded in the .HEX file. Like you did in post #4.

    If it reads back with the settings you expect, then I would have to suspect a bad oscillator, caps, or something in the external osc circuit causing a problem.

    Double check those SMD caps to make sure they're not resistors...;o)
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    Is "Options|Update Configuration From File" checked? It shouldn't be.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  5. #5
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    I read the configuration back from the PIC and it reads the correct settings for the oscillator

    I have open a ticket with Microchip and contacted melabs to see if they have another idea on how to get this solved. I have tried two different oscillators.

    Has anyone used a PIC18F4580 that could let me know what oscillator they used (actual part number)?
    Last edited by IRQ_Diode; - 9th March 2011 at 06:12. Reason: fixed PIC part number

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    Add this to your config settings just below your _CONFIG2H line;
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOREN_BOHW_2L & _BORV_3_2L

    This should give it more time for the oscillator to start up.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    Bruce,

    I did try your suggestion and added the line:

    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOREN_BOHW_2L & _BORV_3_2L

    The programmer read the configurations bits correctly, but the PIC still will not oscillate. I also went and checked the caps just to make sure that they were not resistors, and well they were not.

    I am considering that it could be the actual part number of the crystal itself. The only thing I have not tried is to place a series resistor to one side of the oscillator. I would have to cut the trace and make sure that I do not short anything to the ground pour around the oscillator.

    So before I do that, is there anything else someone can think of? Microchip is taking its time to respond, and I need to send the gerber files to the manufacturer soon.

    Thanks,

    IRQ

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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