PIC18F2550 - USB PLL - Duree d'un cycle
Répondre à la discussion
Affichage des résultats 1 à 4 sur 4

PIC18F2550 - USB PLL - Duree d'un cycle



  1. #1
    Paintitblack

    PIC18F2550 - USB PLL - Duree d'un cycle


    ------

    Bonjour,
    Je programme un PIC18F2550 + Quartz 20MHz via USB + Bootloader sous Linux avec SDCC + GPUTILS.
    Qui peut me dire qu'elle est la frequence interne du microcontroleur dans le cas suivant ?

    code char at __CONFIG1L _conf0 = _USBPLL_CLOCK_SRC_FROM_96MHZ_P LL_2_1L &
    _CPUDIV__OSC1_OSC2_SRC___1__96 MHZ_PLL_SRC___2__1L &
    _PLLDIV_NO_DIVIDE__4MHZ_INPUT_ _1L;

    code char at __CONFIG1H _conf1 =
    _IESO_OFF_1H &
    _FCMEN_OFF_1H &
    _OSC_HS__HS_PLL__USB_HS_1H;

    Merci.

    -----

  2. #2
    Paintitblack

    Re : PIC18F2550 - USB PLL - Duree d'un cycle

    D'apres le datasheet du 18F2550 (p30 et avant), je pense qu'il s'agit de 24MHz.
    Quelqu'un peut-il me le confirmer ?

  3. #3
    Paintitblack

    Re : PIC18F2550 - USB PLL - Duree d'un cycle

    Je continue mes reflexions seul ...
    Selon le datasheet du 18F2550 (p287 et suivantes) :

    _USBPLL_CLOCK_SRC_FROM_96MHZ_P LL_2_1L
    signifie USB clock source comes from the 96 MHz PLL divided by 2

    _CPUDIV__OSC1_OSC2_SRC___1__96 MHZ_PLL_SRC___2__1L
    signifie 96 MHz PLL divided by 2 to derive system clock

    _PLLDIV_NO_DIVIDE__4MHZ_INPUT_ _1L
    signifie No prescale (4 MHz oscillator input drives PLL directly)

    _OSC_HS__HS_PLL__USB_HS_1H
    signifie HS oscillator, PLL enabled (HSPLL)

    Est-ce a dire que la frequence interne du uC est de 48MHz (96/2) ?
    Merci de m'eclairer parce que la, je patauge.

  4. #4
    Paintitblack

    Re : PIC18F2550 - USB PLL - Duree d'un cycle

    Et voici la réponse pour ceux que ca intéresse :

    When primary oscillator is used, the frequency pass through a PLL prescaler.
    The output of this PLL prescaler must always be 4 Mhz.
    If a 20 Mhz crystal is used the prescaler must be 5 ( 20 Mhz/5 = 4Mhz ). Then the 96 Mhz internal clock is generated with the 4 Mhz input.
    At the output of this multiplier, the frequency is both oriented to the USB module and the CPU clock.
    For the USB module, a divide by 2 module produce the 48 Mhz.
    For the CPU, the PLL postcaler enable you to select the output frequency. For example if a divide by 2 is used, then the output frequency will be 48 Mhz.

    ref. : http://groups.google.fr/group/pinguinocard?hl=fr

  5. A voir en vidéo sur Futura

Discussions similaires

  1. Question sur la programmation d'un PIC18F2550
    Par guillaume17 dans le forum Électronique
    Réponses: 1
    Dernier message: 17/07/2009, 18h23
  2. Pic18f2550 + USB CDC + AN0
    Par invite6706d147 dans le forum Électronique
    Réponses: 4
    Dernier message: 10/06/2009, 08h46
  3. [Blanc] LV Electrolux Arthur-Martin ASF 2643 : chauffe et durée de cycle trop longs.
    Par invite9219877f dans le forum Dépannage
    Réponses: 2
    Dernier message: 07/12/2008, 17h13
  4. configuration d'un pll
    Par inviteefcfb65e dans le forum Électronique
    Réponses: 0
    Dernier message: 27/05/2008, 08h58
  5. durée étapes cycle fougère
    Par invite41869b81 dans le forum Biologie
    Réponses: 3
    Dernier message: 28/09/2004, 20h40
Dans la rubrique Tech de Futura, découvrez nos comparatifs produits sur l'informatique et les technologies : imprimantes laser couleur, casques audio, chaises gamer...