oscillator setting

Discussion in 'Embedded Systems and Microcontrollers' started by dineshswami, Dec 26, 2013.

  1. dineshswami

    Thread Starter New Member

    Dec 25, 2013
    3
    0
    hi

    i just want a configuration setting for oscillator.i am using internal oscillator without USB interfacing. I m using P18f4550 micro controller,MPLAB and c18 compiler.
     
  2. dineshswami

    Thread Starter New Member

    Dec 25, 2013
    3
    0
    #pragma FOSC=INTOSC_EC
     
  3. dineshswami

    Thread Starter New Member

    Dec 25, 2013
    3
    0
    Plz ans me
     
  4. king40

    Member

    Jul 17, 2013
    75
    0
    Hi
    You need setting to run micro on ex oscillator?
     
  5. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,515
    2,369
    Look in your .Inc file for the Pic and you will see the different osc config.
    For internal a sample would be:

    ; Oscillator Selection bits:
    ; FOSC = XT_XT XT oscillator (XT)
    ; FOSC = XTPLL_XT XT oscillator, PLL enabled (XTPLL)
    ; FOSC = ECIO_EC EC oscillator, port function on RA6 (ECIO)
    ; FOSC = EC_EC EC oscillator, CLKO function on RA6 (EC)
    ; FOSC = ECPLLIO_EC EC oscillator, PLL enabled, port function on RA6 (ECPIO)
    ; FOSC = ECPLL_EC EC oscillator, PLL enabled, CLKO function on RA6 (ECPLL)
    ; FOSC = INTOSCIO_EC Internal oscillator, port function on RA6, EC used by USB (INTIO)
    ; FOSC = INTOSC_EC Internal oscillator, CLKO function on RA6, EC used by USB (INTCKO)
    ; FOSC = INTOSC_XT Internal oscillator, XT used by USB (INTXT)
    ; FOSC = INTOSC_HS Internal oscillator, HS oscillator used by USB (INTHS)
    ; FOSC = HS HS oscillator (HS)
    ; FOSC = HSPLL_HS HS oscillator, PLL enabled (HSPLL)
    ;

    Max.
     
    Last edited: Dec 29, 2013
Loading...