18f4320


Closed Thread
Results 1 to 9 of 9

Thread: 18f4320

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Unhappy 18f4320

    Brand New Proccesor Attempt !

    I am using microcode studio Pic Basic Pro.

    Initial Test

    @ INCLUDE 18F4320.INC
    __CONFIG_CONFIG1H,_XT_OSC_1H ' This is line 21

    Hit F9 (Compile)

    ERROR Line 21: Syntax Error

    I looked and looked and tried, but waht is the syntax error !!!

    Help, please

    kind regards

    Peter
    Pete

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


    Did you find this post helpful? Yes | No

    Default

    No Need for any include...

    and yup, the config statement is wrong...

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    Code:
    @ __CONFIG  _CONFIG1H, _XT_OSC_1H
    Last edited by mister_e; - 3rd December 2007 at 15:29.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Make sure you are using MPASM.

    And I still follow the instructions here. http://www.picbasic.co.uk/forum/show...87&postcount=6

    Maybe this has been fixed or changed , but still works for me.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    this have been fix in 2.47 If you want to use the new syntax, maybe you need to do it in the INC file... i never tried. I still use the old syntax.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Thanks for the update.
    I set the fuses in the *.inc file. I should try it in the program some day.
    One of the first things I did when I up graded to 2.47 was changed the *.inc, never noticed the fix

    This is part of my *.inc .
    Code:
            CONFIG OSC = INTIO2
    	CONFIG LVP = OFF
    	CONFIG BOR = OFF
    	CONFIG MCLRE = OFF
    
      ;      __CONFIG    _CONFIG1H, _XT_OSC_1H
      ;      __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
      ;      __CONFIG    _CONFIG4L, _LVP_OFF_4L
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Default

    Looks like I need to upgrade PBP as I have only version 2.44

    MPASM or MPASMWIN ?

    Suggestions on which Microcode version to use or

    A windows version of PBP ? (Is Microcode the windows version?

    kind regards for all of the answers.

    Peter
    Pete

Similar Threads

  1. I do not not like 18F4320
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th December 2007, 10:15

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