Config & Oscon settings 16F1825


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Config & Oscon settings 16F1825

    I use its larger sibling (16f1828), and have it set something like this for 16Mhz

    Code:
    @ __CONFIG _CONFIG1, _FCMEN_OFF & _FOSC_INTOSC & _WDTE_OFF & _MCLRE_OFF & _CP_OFF & _IESO_OFF & _BOREN_OFF & _PWRTE_OFF & _LVP_OFF
    @ __CONFIG _CONFIG2, _LVP_OFF
    DEFINE  OSC 16
    Osccon = 111010   'sets the internal oscillator to 16Mhz
    Re the PLL...it confused me too, I haven't got access to the config settings I used (I certainly had it working at 32Mhz at one stage) , but the jists seems to be if you haven't got any refereence to PLLEN_ON in you config, then bit 7 of the Osccon register turns on the PLL

    Edit: I don't know what's going on thereshould be a percentage sign and a leading 0 at the front of that Osccon entry...they are both disappearing when I click 'post reply'
    Last edited by HankMcSpank; - 16th September 2011 at 20:19.

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