18F4550 config


Closed Thread
Results 1 to 10 of 10

Thread: 18F4550 config

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 config

    That is not one of the options from the list.

    Here are the defaults from PBP
    Code:
            __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
            __CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
            __CONFIG    _CONFIG2L, _PWRT_OFF_2L & _BOR_ON_2L & _BORV_3_2L & _VREGEN_ON_2L
            __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
            __CONFIG    _CONFIG3H, _CCP2MX_ON_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L
    So you could change: _FOSC_HSPLL_HS_1H to _FOSC_HS_1H

    To know you options (without pbp3) you can look at the .inc files in your mpasm suite folder. Mine is located here: C:\Program Files (x86)\Microchip\MPASM Suite
    Last edited by ScaleRobotics; - 26th June 2012 at 16:48.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 config

    It works! Thanks!

    I'm easy to please

  3. #3
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 config

    Hi!
    Can somebody help me to config 18F4550 (without USB) in PBP 2.60?
    I want to use
    1. internal 8MHz oscillator
    or
    2. external 20MHz oscillator.
    My English skills doesn't allow me to understand datasheet.
    Thank you very much.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 config

    Internal 8
    Code:
    DEFINE OSC 8  
    ASM
     __CONFIG   _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
     __CONFIG   _CONFIG1H, _FOSC_INTOSCIO_EC_1H
     __CONFIG    _CONFIG2H, _WDT_OFF_2H & _WDTPS_512_2H
     __CONFIG    _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H 
     __CONFIG    _CONFIG4L, _LVP_OFF_4L
     ENDASM
     OSCCON = %01110000
    Dave
    Always wear safety glasses while programming.

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