Plldiv...


Closed Thread
Results 1 to 2 of 2

Thread: Plldiv...

  1. #1

    Post Plldiv...

    Hello everybody... I am trying to make some USB communication and thereŽs something IŽd like to know.... I use these lines on my 18F4550.INC file: (this post is more about the configuration in this file than usb communication)

    CONFIG FOSC = HS ;I am using a 12 MHz xtal, do I need the HSPLL_HS
    ;option for the usb communication?
    CONFIG USBDIV = 2 ; USB clock source comes from the 96MHz PLL
    CONFIG PLLDIV = 3 ; If usbdiv = 2 and my xtal is 12 MHz then is this line requiered? if not, what does this line do exactly?

    if usbdiv = 2 then the usb clock source will be the pll always no matter what the fosc configuration is??

    Thanks to all!

    Best Regards.

    Armando Herjim.

    P.D. Is the word "requiered" well written?
    Last edited by Armando Herjim; - 30th November 2006 at 07:34.

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


    Did you find this post helpful? Yes | No

    Default

    mmmpffmmppffm i'll try to explain this one.

    The PLLDIV factor is the one you need to reduce the external OSC to 4MHZ. Yes the internal OSC will always work @4MHZ and raise it to 96MHZ... later

    In your cas 12MHZ external /4MHZ internal = PLLDIV should be 3.. you have it good

    USBDIV/2 will be the PIC OSC SPEED. in this case 48MHZ.

    P.D. Is the word "requiered" well written?
    i could be wrong... but i think it's 'required' or 'needed'

    Francais un jour, francais toujours
    Steve

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

Similar Threads

  1. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55

Members who have read this thread : 1

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