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

    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.

  2. #2
    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

  3. #3
    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.

  4. #4
    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

  5. #5
    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

  6. #6
    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

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    Can you upload the compiled .HEX file you're programming into this part in .ZIP file?
    Regards,

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

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