PBP 2.60 upgrade and 18F4550


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I can not reproduce your error here. My guess is when you changed the *.inc to use the internal OSC something else got changed?

    Post the configs .
    Code:
    ;****************************************************************
    ;*  18F4550.INC                                                 *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2009 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 03/20/09                                        *
    ;*  Version   : 2.60                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            "Error: PM does not support this device.  Use MPASM."
            NOLIST
        else
            LIST
            LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32
            INCLUDE "P18F4550.INC"	; MPASM  Header
            __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
            NOLIST
        endif
            LIST
    EEPROM_START	EQU	0F00000h
    BLOCK_SIZE	EQU	32

  2. #2
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Ok I changed them all to _FCMEN.

    Now my led does not blink anymore...but the error is gone!

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Mike2545 View Post
    Ok I changed them all to _FCMEN.
    That is what you had ??
    Error[113] c:\pbp\18f4550.inc 21 : Symbol not previously defined (_FCMEN_OFF_1H)
    Now my led does not blink anymore...but the error is gone!
    You code appears that you want to use the internal OSC but the configs show an external.

    Try this
    _FOSC_INTOSC_HS_1H
    in place of
    _FOSC_HSPLL_HS_1H

    You can go to the MPASM Suite in program files\microchip, look at the *.inc file there to see all of the config options. Do not modify that file.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    You code appears that you want to use the internal OSC but the configs show an external.

    Try this
    _FOSC_INTOSC_HS_1H
    in place of
    _FOSC_HSPLL_HS_1H

    You can go to the MPASM Suite in program files\microchip, look at the *.inc file there to see all of the config options. Do not modify that file.
    Thank a bunch...I changed the MPASM file back to FCMEM and made the PBP .INC to match, also set it to the internal OSC as you showed.

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


    Did you find this post helpful? Yes | No

    Default

    Are you up and running now?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Are you up and running now?
    Yes, I am...I also put in _FOSC_INTOSCIO_EC_1H so I can use PortA.6 as a digital I/O

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


    Did you find this post helpful? Yes | No

    Default

    Cool!!!
    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