20 MHz + PLL vs 48MHz


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    By knowing what your project is... it will never be submit to extreme temperature variation... 20MHZ is more than enough safe. As now, mine works perfectly. I can't tell if it really worth to by a 48MHZ clock gen for a USB device. 20MHZ is safer than 4MHZ for sure... IMHO.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    That's what I'm hoping.

    This is designed to be used in PC gaming so it's meant for indoor use. I think the PC will act up before my circuit anyways.

    This runs on 5V USB power at about 250 mA, I don't really have any heat issues on the circuit; LEDs, pushbuttons, 18F2550, 16F628, 24FC128, two MCP23016 and a graphic LCD.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Honestly, I'd probably go with 20mhz too, but is there a difference between a 4mhz and 20mhz crystal?

    Let's say you have a standard 50ppm 4mhz crystal.

    It's minimum frequency would be 3,999,800   (4,000,000 - .005%)
    The max would be 4,000,200 (4,000,000 + .005%)

    Now we multiply that times 12 to get the 48mhz and the ...
    Minimum = 47,997,600
    Maximum = 48,002,400

    Check the PPM...
    Minimum = (1 - (48,000,000/47,997,600)) = -0.005%
    Maximum = (1 - (48,000,000/48,002,400)) = 0.005%

    They are still 50ppm difference.

    So whether you have a 4mhz or 20mhz crystal, you still end up with the same 50ppm tolerance.
    And with 4mhz you also get less emitted radiation, and other PCB problems.

    Interesting eh?

    DT

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    All good points!
    i agree Darrel but my biggest concern is more about the PLL reliability and stability.. i'm still afraid of it. Maybe i'm comming old
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It's a really interesting PLL on these chips.

    The PLL's VCO always runs at 96mhz. And the crystals frequency is always divided down to 4mhz for the PLL reference. So in effect, the frequency of the crystal doesn't matter, only it's tolerance.

    The only stability issue is the Jitter of +/- 0.25% But with either a 4mhz or 20mhz crystal, it's the same because it's inherent to the PLL.

    The only way to remove the Jitter from the equation is to go back to the external clock (EC) and provide the 48mhz without using the PLL.

    But, it won't really matter any which way you go. They'll all work just fine.

    DT

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    ... The PLL's VCO always runs at 96mhz. And the crystals frequency is always divided down to 4mhz for the PLL reference. So in effect, the frequency of the crystal doesn't matter, only it's tolerance....

    DT
    I noticed the division part, that makes a lot of sense. I just didn't know if there were other factors that would make a performance difference. So now I know that the tolerance is really what I'm concerned with when I'm selecting crystals.

    I'll probably stick to 20 MHz components 'cause I've got lots in stock and I use them in other projects. But it is good to know that a 4 MHz crystal can be just as good for a 18F USB application.

    Thanks guys!

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Demon, Don't for get to view the power requirements for the the osc. circuit. The faster the crystal the more power it will draw. Although it sounds like you will be running it off the USB power, if it were to be battery powered this is something to consider.
    Dave Purola,
    N8NTA
    Last edited by Demon; - 4th October 2016 at 17:00.

Similar Threads

  1. TSA5512/5511 code for PIC16F877/84
    By Marin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th August 2013, 06:16
  2. Setting up a 12F683 to run at 20 Mhz
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 3rd March 2009, 02:46
  3. Char. LCD and 18F452 on 20 MHz not work
    By samettin in forum General
    Replies: 11
    Last Post: - 28th July 2008, 09:59
  4. PIC18F2685 config settings for 20 MHz
    By wwilson17 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st March 2008, 23:13
  5. How to use a 20 MHz resonator on a 16F688
    By Thomas Williams in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st December 2005, 09:18

Members who have read this thread : 0

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

Posting Permissions

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