Config & Oscon settings 16F1825


Results 1 to 8 of 8

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Config & Oscon settings 16F1825

    Try this
    Code:
            #CONFIG
            __CONFIG _CONFIG1, _FCMEN_OFF & _IESO_OFF & _FOSC_INTOSC & _PLLEN_OFF & _WDTE_SWDTEN & _MCLRE_OFF & _CP_OFF & _BOREN_OFF & _PWRTE_OFF
            __CONFIG _CONFIG2, _LVP_OFF
            #ENDCONFIG
    
            OSCCON = 1000
                    ' x------- SPLLEN: don't care when _PLLEN_OFF in config fuse
                    ' -1111--- Internal clock = 16MHz
                    ' -----x-- Unimplemented
                    ' ------00 System Clock Source = Determined by Config Word
            
            DEFINE OSC 16 ' Tell PBP we use a 16MHz Clock
    MPASM is case sensitive, IF the config are not in capital you'll receive some Symbol not previously defined error message.

    EDIT: Yup, there should indeed have a percent sign ... Looks like the new vBulletin have new "Features"

    Above the above OSCCON should be
    OSCCON = % 01111000
    without the space between percent signe and the first 0
    Last edited by mister_e; - 16th September 2011 at 20:29.
    Steve

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

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