• AVR Freaks

Hot!PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE

Author
Pethani Krumita
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/05/28 22:34:53
  • Location: 0
  • Status: offline
2021/02/22 04:46:11 (permalink)
0

PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE

HELLO
 
I am using pic24fj256ga7 curiosity development board . i use internal FRC clock . configurations are as shown below
 
_FOSCSEL(FNOSC_FRCPLL& PLLMODE_PLL4x  & IESO_OFF)
 
and clock settings are
CLKDIV = 0x3100;
OSCTUN = 0x0000;
REFOCONL = 0x9206;
REFOCONH = 0x0000;
REFOTRIML = 0x0000;
DCOTUN = 0x0000;
DCOCON = 0x0700;
OSCDIV = 0x0000;
OSCFDIV = 0x0000;
RCON = 0x0000;


and also 10uf capacitor available between vdd and vcap pins.
 but still I didn't get proper clock. I only receive 8 MHz clock . 
 
is there any  way to get 32 MHz clock by internal oscillator?
#1

8 Replies Related Threads

    MBedder
    Circuit breaker
    • Total Posts : 6970
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/22 07:28:09 (permalink)
    3.67 (3)
    To make it working you must repost this message at least 24 times more.
    #2
    RISC
    Super Member
    • Total Posts : 5983
    • Reward points : 0
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/22 08:43:35 (permalink)
    5 (1)
    Hi,
    Did you check the demo code for this board ?
    https://www.microchip.com/DevelopmentTools/ProductDetails/DM240016
    Maybe it shows how to initialize it.
    I suggest you use MCC plugin to generate code for the clock and you'll be able to see what it needed.
    Not only configuration bits but sometimes some initialization code is also needed to wait for PLL lock...
    I confirm that it is possible to get Fosc = 32MHz from internal oscillator using PLL
    Regards
     

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #3
    Pethani Krumita
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/05/28 22:34:53
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/22 22:24:18 (permalink)
    0
    hello
     
    yes i check all demo codes and also i generate code from mcc but still i didint get Fosc = 32Mhz . i only get 8 Mhz.
    #4
    Aussie Susan
    Super Member
    • Total Posts : 3827
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/23 18:15:49 (permalink)
    5 (1)
    How are you measuring that you only get 8MHz? Details matter!
    Also it might help if you give us the full device name - a quick check shows that there are several parts that begin with that name but seem to have different data sheets.
    Susan
    #5
    Pethani Krumita
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/05/28 22:34:53
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/23 22:20:49 (permalink)
    0
    I am using pic24fj256ga705 curiosity development board.
     
    and i measuring it with Pico scope. I initialize spi and set it baud rate to default frequency. and measure its sck with Pico scope and i get only 8 MHz frequency. and i only initialize internal oscillator. external crystal is not available in board.
    https://ww1.microchip.com/downloads/en/DeviceDoc/PIC24FJ256GA705-Family-Data-Sheet-DS30010118E.pdf
     
    https://ww1.microchip.com/downloads/en/DeviceDoc/PIC24FJ256GA705-Family-Silicon-Errata-and-Data-Sheet-Clarification-DS80000718G.pdf
     
    I use this documents.
    #6
    Aussie Susan
    Super Member
    • Total Posts : 3827
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPRATE 2021/02/24 19:24:00 (permalink)
    4.33 (3)
    Why not use the REFO? You are already setting it up (in the REFCONL register) but don't show us which pin you have mapped it to.
    Using the SPI module is a very round-about way of doing this. You need to show us the SPI setup code and how you are calling the SPI module.
    Better still show us ALL of the code for a complete but small app that demonstrates the problem. My guess is that the problem is on part of the code you don't show us.
    Susan
    #7
    RISC
    Super Member
    • Total Posts : 5983
    • Reward points : 0
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPERATE 2021/02/25 06:37:52 (permalink)
    5 (1)
    Hi 
    Attached is a project showing how to use MCC to generate 32MHz internal frequency using PLL and 8MHz oscillator
    Regards
     
    post edited by RISC - 2021/02/25 06:39:00

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #8
    Pethani Krumita
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/05/28 22:34:53
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA7 96MHZ PLL MODE NOT OPERATE 2021/03/02 22:02:01 (permalink)
    0
    hello ,Thank you for answers ,i fixed it ,now i use 32MHZ internal frequency using PLL.
    #9
    Jump to:
    © 2021 APG vNext Commercial Version 4.5