PIC18F4850 will not oscillate


Closed Thread
Results 1 to 25 of 25

Hybrid View

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

  2. #2
    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 07:12. Reason: fixed PIC part number

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

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

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

  6. #6
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    I have uploaded and below for refrence
    Code:
    :020000040000FA
    :100000005CEF01F0E95004009EA8FDD7AD6ED880EA
    :1000100059EF01F0019E0350D8B4018E200E026EFC
    :10002000E86A1A361B361C361D36E83452D802668A
    :10003000F7D71200019E0350D8B4018E0A0E026E4B
    :100040003B0E196E9A0E186ECA0E176E000E35D83A
    :10005000050E196EF50E186EE10E176E000E2DD8F6
    :10006000196A980E186E960E176E800E26D8196AA9
    :100070000F0E186E420E176E400E1FD8196A010E31
    :10008000186E860E176EA00E18D8196A186A270EF9
    :10009000176E100E12D8196A186A030E176EE80E42
    :1000A0000CD8196A186A176A640E07D8196A186A90
    :1000B000176A0A0E02D81A500CD0166E1D50156E13
    :1000C0001C50146E1B50136E1A50126E2DEC01F062
    :1000D0001250126E024E019E035003E0025CD8B033
    :1000E00012001250D8A4019E01BE1200300F53EF2F
    :1000F00001F0080E1E6E11C0EAFF0FC0E9FF0D509F
    :1001000001B4AAEC00F001A4ACEC00F011C0E2FFD5
    :100110000FC0E1FF0E50120FE96E0C1CEF161E50BF
    :1001200011E001B0F0EC00F00EC0E9FF153214321E
    :1001300013321232EF500C10D8A00C18EF6E04D806
    :100140001E2EF4D759EF01F00D50E71A000000D031
    :10015000E71A1200EF1203D0FF0AEF1601D0FF0AD0
    :10016000E988E92AEC1659EF01F0E834E834FC0B91
    :100170000109C212C009C216C050F80B0309C06EB3
    :10018000000E136E140EDFEC00F0C282C2B2FED776
    :10019000C450136EC35059EF01F0176A186A196AF8
    :1001A000166EE86A1606175A185A195AD8A059EF47
    :1001B00001F0030E136EE30E02D8F3D7136AF50FA6
    :1001C000126EFE0E04E300D004001226FDE20000D1
    :1001D00012261306F9E212A002D000D0000012008D
    :1001E000166A176A186A196A08D01532143213325F
    :1001F00012321636173618361936FF0FF6E2195036
    :10020000156E1850146E1750136E1650126E59EF6B
    :1002100001F0166E030E03D0166E060E00D0026EAD
    :100220000AD0026E1950151815E61950155C08E130
    :100230001850145C05E11750135C02E11650125C73
    :10024000040ED8B0010ED8B4020E0214D8A4FF0ECA
    :1002500059EF01F01550195CF3D71A6A1B6A1C6A32
    :100260001D6A200E1E6E15341A361B361C361D36BE
    :1002700016501A5E17501B5A18501C5A19501D5A06
    :1002800009E216501A2617501B2218501C2219502A
    :100290001D22D89012361336143615361E2EE3D78B
    :1002A000125059EF01F0E96EFB6A0B50FA6E0A50DA
    :1002B000F96E0001040012000C0EAF6E200EAC6E41
    :1002C000900EAB6E3D0EC26E0A0EC16E720ED36EF4
    :1002D000070EB46E2F0E926ED90E936E940E946E1E
    :1002E0009568966A25682468296A266827682868B8
    :1002F00038EC02F0A3EC01F0560E85DE430E83DEEF
    :10030000530E81DE5F0E7FDE500E7DDE490E7BDEFA
    :100310004E0E79DE530E77DE200E75DE3D0E73DE57
    :10032000200E71DE250E6FDE036A29C01AF01B6AEB
    :100330001C6A1D6A040E0A6E0B6A6CDE0A0E63DE0E
    :100340000D0E61DED5D783CF24F004002450255C48
    :10035000D8B435EF02F04E0E56DE4F0E54DE200EAE
    :1003600052DE430E50DE480E4EDE410E4CDE4E0E87
    :100370004ADE470E48DE450E46DE0A0E44DE24B055
    :10038000298024A0299024B4298224A4299204003D
    :1003900029500308D8A4E0EF01F0210E266E480E84
    :1003A000276E286A430E2FDE410E2DDE530E2BDE04
    :1003B000450E29DE330E27DE0A0E25DE33EF02F06E
    :1003C000040029500208D8A4F9EF01F0266A480E6B
    :1003D000276EBF0E286E430E16DE410E14DE530E3E
    :1003E00012DE450E10DE320E0EDE0A0E0CDE33EF8C
    :1003F00002F0040029500108D8A418EF02F0210EE1
    :10040000266E276A400E286E430E03EC00F0410E64
    :1004100003EC00F0530E03EC00F0450E03EC00F08B
    :10042000310E03EC00F00A0E03EC00F033EF02F0A3
    :10043000040029500008D8A433EF02F0266827688A
    :100440002868430E03EC00F0410E03EC00F0530E5D
    :1004500003EC00F0450E03EC00F0300E03EC00F06E
    :100460000A0E03EC00F029EC03F024C025F0120082
    :10047000040E7BDE226E13C023F022C012F023C0D4
    :1004800013F0020E176E9A0EC7DED8A491EF02F099
    :100490008290560E03EC00F0420E03EC00F0410E89
    :1004A00003EC00F0540E03EC00F05F0E03EC00F0E0
    :1004B000530E03EC00F0450E03EC00F04E0E03EC7F
    :1004C00000F0530E03EC00F0450E03EC00F0200E9C
    :1004D00003EC00F03E0E03EC00F0200E03EC00F005
    :1004E0004F0E03EC00F04E0E03EC00F05F0E03EC39
    :1004F00000F0560E03EC00F04F0E03EC00F04C0E33
    :1005000003EC00F0540E03EC00F0410E03EC00F09D
    :10051000470E03EC00F0450E03EC00F00A0E03EC6E
    :1005200000F022C012F023C013F0020E176E8D0EE1
    :1005300070DED8A4E8EF02F08280560E03EC00F0E3
    :10054000420E03EC00F0410E03EC00F0540E03ECFD
    :1005500000F05F0E03EC00F0530E03EC00F0450ECC
    :1005600003EC00F04E0E03EC00F0530E03EC00F031
    :10057000450E03EC00F0200E03EC00F03C0E03EC03
    :1005800000F0200E03EC00F04F0E03EC00F0460EDE
    :1005900003EC00F0460E03EC00F05F0E03EC00F0FD
    :1005A000560E03EC00F04F0E03EC00F04C0E03EC83
    :1005B00000F0540E03EC00F0410E03EC00F0470E87
    :1005C00003EC00F0450E03EC00F00A0E03EC00F023
    :1005D000560E03EC00F0420E03EC00F0410E03EC6B
    :1005E00000F0540E03EC00F05F0E03EC00F0530E2D
    :1005F00003EC00F0450E03EC00F04E0E03EC00F0AF
    :10060000530E03EC00F0450E03EC00F03A0E03EC41
    :1006100000F0036A22C01AF023C01BF01C6A1D6A96
    :10062000040E0A6E0B6A1AEC00F0200E03EC00F0C8
    :10063000036A000EC2B2010E1A6E1B6A1C6A1D6AA2
    :10064000040E0A6E0B6A0AEC00F00A0E03EC00F0CE
    :1006500012008490840E0E6E0F0E106E040E0C6E3F
    :10066000840E0F6E0F0E116E020E0D6E016A28C001
    :1006700012F0136A146A156A79EC00F027C012F0C0
    :10068000136A146A156A79EC00F026C012F0136A36
    :10069000146A156A79EC00F084800A0ECDEC00F043
    :1006A00084904C0E03EC00F0450E03EC00F0440E79
    :1006B00003EC00F0530E03EC00F03D0E03EC00F0F1
    :1006C0003D0E03EC00F03E0E03EC00F0200E03ECB8
    :1006D00000F0250E03EC00F0036A28C01AF01B6A34
    :1006E0001C6A1D6A040E0A6E0B6A0AEC00F0200EEA
    :1006F00003EC00F0036A27C01AF01B6A1C6A1D6A2B
    :10070000040E0A6E0B6A0AEC00F0200E03EC00F0F7
    :10071000036A26C01AF01B6A1C6A1D6A040E0A6E60
    :0E0720000B6A0AEC00F00A0E03EC00F0120067
    :020000040030CA
    :0E00000000021E13008081000FC00FE00F40B1
    :00000001FF
    Thank you for looking into this

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4850 will not oscillate

    You do still do not have the OSC set for HS
    Name:  4580_HEX.png
Views: 1467
Size:  66.5 KB
    Dave
    Always wear safety glasses while programming.

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