PIC18F4550 question VS PIC16F887


Closed Thread
Results 1 to 18 of 18

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    What are you using for the OSC and did you change the configs to match?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    This is the exact program that i use for the PIC16F887. except ansel=0.
    using internal osc at 8mhz

    K

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    Then change the configs to use the internal...
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    I added a 20Mhz crystal and change the line to DEFINE OSC 20
    works better, I think I will change the capacitor because the text is off.
    Ok now I guess why cant i use the internal oscillator even using this do not work:
    OSCCON = %01110000 '8 Mhz
    DEFINE OSC 8

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    Does your configs look like this?
    This is for the internal
    Code:
    @ __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    @ __CONFIG    _CONFIG1H, _FOSC_INTOSCIO_EC_1H
    @ __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    @ __CONFIG    _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H
    @ __CONFIG    _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L &_XINST_OFF_4L
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    well not really Dave
    here is what I get when I compile:
    Executing: "C:\PBP2.60\PBPMPLAB.BAT" -ampasmwin -k# -p18F4550 "both.bas"
    Executing: "C:\PBP2.60\PBPW.EXE" -ampasmwin -k# -p18F4550 "both.bas"
    PICBASIC PRO(TM) Compiler 2.60A, (c) 1998, 2010 microEngineering Labs, Inc.
    All Rights Reserved.

    ERROR: Unable to execute mpasmwin.Error[118] C:\PBP2.60\BOTH.ASM 184 : Overwriting previous address contents (0000)
    Error[118] C:\PBP2.60\BOTH.ASM 184 : Overwriting previous address contents (0001)
    Skipping link step. Not all sources built successfully.
    BUILD FAILED: Sat Feb 19 14:31:44 2011


    this is the code header I used:
    Code:
    @ __CONFIG    _CONFIG1H, _FOSC_INTOSCIO_EC_1H
    DEFINE OSC 8

  7. #7
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    Dave i tried your code from this thread:
    http://www.picbasic.co.uk/forum/showthread.php?t=13981
    and it wont even compile, gives me then errors..

    ken

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


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    What are the errors?
    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