• AVR Freaks

Hot!PIC32MX470 and clock speed

Author
chri
Starting Member
  • Total Posts : 57
  • Reward points : 0
  • Joined: 2009/06/08 02:34:22
  • Location: 0
  • Status: offline
2021/01/12 02:42:48 (permalink)
0

PIC32MX470 and clock speed

Does anyone have problems running PIC32MX470 at 120MHz? I have some chips that locks while running in a random way, I checked the Wait state and they are ok, i use Harmony v2.06. If i dowscale the clock at 100MHz all run perfectly.
thank you
#1

15 Replies Related Threads

    ric
    Super Member
    • Total Posts : 29474
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/12 04:07:17 (permalink)
    2 (1)
    What sort of capacitor do you have connected to the Vcap pin?
    (In detail. Preferably a full part number.)

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    Mysil
    Super Member
    • Total Posts : 4068
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/12 04:09:33 (permalink)
    4 (1)
    Hi,
    In Datasheet revision C for PIC32MX470 and family:  DS60001185C-page 272
    Maximum system clock frequency is specified to be 100 MHz.
    In Datasheet revision H,  clock frequency specification have been updated with DC5c  parameter.
     
    You state that you have checked Wait States setting,
    but is Not telling what the actual setting value is!
    Have you tried increasing the wait states value by 1 ?
     
    What hardware revision is the devices you are running?
     
    Have you checked the Errata document for any additional restrictions?
     
        Mysil
     
    #3
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/12 04:32:04 (permalink)
    0
    ric
    What sort of capacitor do you have connected to the Vcap pin?
    10 uF
    (In detail. Preferably a full part number.)
    The trace code says PIC32MX470F512L-120/PT, so the device should run at 120 MHz.




    #4
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/12 04:38:01 (permalink)
    0
    Mysil
    Hi,
    In Datasheet revision C for PIC32MX470 and family:  DS60001185C-page 272
    Maximum system clock frequency is specified to be 100 MHz.
    In Datasheet revision H,  clock frequency specification have been updated with DC5c  parameter.
     
    You state that you have checked Wait States setting,
    but is Not telling what the actual setting value is!
    Have you tried increasing the wait states value by 1 ?
     
    What hardware revision is the devices you are running?
     
    Have you checked the Errata document for any additional restrictions?
     
        Mysil
     




    I use SYS_DEVCON_PerformanceConfig() to set the Wait state according the System frequency and it set to 3.
    #5
    ric
    Super Member
    • Total Posts : 29474
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/12 04:43:22 (permalink)
    0
    chri
    ric
    What sort of capacitor do you have connected to the Vcap pin?

    10 uF

    That is not a complete answer. What exactly are the ratings of this capacitor?
    Type, voltage rating, etc.
     
    chri
    ric
    (In detail. Preferably a full part number.)

    The trace code says PIC32MX470F512L-120/PT, so the device should run at 120 MHz.

    I meant of the capacitor.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/12 06:23:24 (permalink)
    0
    ric
    chri
    ric
    What sort of capacitor do you have connected to the Vcap pin?

    10 uF

    That is not a complete answer. What exactly are the ratings of this capacitor?
    Type, voltage rating, etc.
     
    chri
    ric
    (In detail. Preferably a full part number.)

    The trace code says PIC32MX470F512L-120/PT, so the device should run at 120 MHz.

    I meant of the capacitor.




    ok sorry, 10uF 16V 0805
    #7
    ric
    Super Member
    • Total Posts : 29474
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/12 12:15:21 (permalink)
    2 (1)
    chri
    ok sorry, 10uF 16V 0805

    Ceramic?
    Tantalum?
    Electrolytic?
    That's why giving the actual manufacturer part # would have saved all these questions.
    That must be a low ESR capacitor, so the TYPE of capacitor is important. (It also must be connected to the PIC's Vcap and GND pins with very short tracks, again to maintain low ESR.
     
    post edited by ric - 2021/01/12 12:16:33

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #8
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/13 00:34:31 (permalink)
    4 (1)
    ric
    chri
    ok sorry, 10uF 16V 0805

    Ceramic?
    Tantalum?
    Electrolytic?
    That's why giving the actual manufacturer part # would have saved all these questions.
    That must be a low ESR capacitor, so the TYPE of capacitor is important. (It also must be connected to the PIC's Vcap and GND pins with very short tracks, again to maintain low ESR.
     


    ceramic and of course the track is very short.
    I will try to do some test in this direction.
    #9
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/13 04:07:14 (permalink)
    0
    ric
    chri
    ok sorry, 10uF 16V 0805

    Ceramic?
    Tantalum?
    Electrolytic?
    That's why giving the actual manufacturer part # would have saved all these questions.
    That must be a low ESR capacitor, so the TYPE of capacitor is important. (It also must be connected to the PIC's Vcap and GND pins with very short tracks, again to maintain low ESR.
     


    part number: TDK C2012X5R1C106K085AC
    #10
    RISC
    Super Member
    • Total Posts : 5907
    • Reward points : 0
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/13 04:48:54 (permalink)
    2 (1)
    Hi,
     
    Latest datasheet is DS60001185H :
    https://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX330350370430450470_Datasheet_DS60001185H.pdf
     
    120MHz operation is allowed from 0C to 70C only
    Regards

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #11
    RISC
    Super Member
    • Total Posts : 5907
    • Reward points : 0
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/13 04:52:21 (permalink)
    0
    Hi,
    When you operate @120MHz, you should also care about clock dividers to all peripherals and make sure you don't exceed dynamic parameters...
    Regards
     

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #12
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/13 09:10:15 (permalink)
    0
    RISC
    Hi,
    When you operate @120MHz, you should also care about clock dividers to all peripherals and make sure you don't exceed dynamic parameters...
    Regards
     


    at 100MHz the PBCLK runs at 50MHz, at 120MHz it runs at 60MHz, i've tried to slower the periheral bus too.
    #13
    RISC
    Super Member
    • Total Posts : 5907
    • Reward points : 0
    • Status: online
    Re: PIC32MX470 and clock speed 2021/01/13 14:38:08 (permalink)
    0
    Hi,
    Your description is too vague...It does not work @120MHz...
    Is the processor actually executing instructions @120MHz ?
    Start in debug mode, put breakpoints and see what happens...
    Regards
     

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #14
    chri
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2009/06/08 02:34:22
    • Location: 0
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/14 04:09:46 (permalink)
    0
    RISC
    Hi,
    Your description is too vague...It does not work @120MHz...
    Is the processor actually executing instructions @120MHz ?
    Start in debug mode, put breakpoints and see what happens...
    Regards
     


    Hi RISC,
    of course i've done a lot of test in debug mode and it happens that it go in to exception randomly in the code. If I slower the clock all is ok, that why i suspect that PIC32 can't run at this speed.
    #15
    toms
    Junior Member
    • Total Posts : 119
    • Reward points : 0
    • Joined: 2006/03/07 18:06:24
    • Location: London, UK
    • Status: offline
    Re: PIC32MX470 and clock speed 2021/01/14 05:53:03 (permalink)
    4 (1)
    Im currently working on a project using a PIC32MX450 which is running at 120MHz (on the industrial rated version too, which is supposedly only rated to 100MHz .. oops), but Im not having any spurious crashes beyond stupid things I have done myself.
     
    My vcap setup is not super ideal either, since the PIC is on a breakout/adapter board that was not specifically designed for this chip, so the cap (tag tantalum since that was all I had hanging around at the time) hangs off one of the header pins rather than being connected much closer and cleaner to the PIC itself.
     
    Sounds like I am abusing mine and getting away with it for the time being lol
    #16
    Jump to:
    © 2021 APG vNext Commercial Version 4.5