18F2620 pbp3 example config please


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,728


    Did you find this post helpful? Yes | No

    Default Re: 18F2620 pbp3 example config please

    the correct syntax and available config word (fuse) settings are available in the pbp3 device_reference folder

    File: PIC18F4520.INFO


    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    Available configuration settings for PIC18F4520:
    ;
    ;
    ;  Oscillator Selection bits
    ;    CONFIG OSC = INTIO7     ;Internal oscillator block, CLKO function on RA6, port function on RA7
    ;    CONFIG OSC = INTIO67     ;Internal oscillator block, port function on RA6 and RA7
    ;    CONFIG OSC = RCIO6     ;External RC oscillator, port function on RA6
    ;    CONFIG OSC = HSPLL     ;HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
    ;    CONFIG OSC = ECIO6     ;EC oscillator, port function on RA6
    ;    CONFIG OSC = EC     ;EC oscillator, CLKO function on RA6
    ;    CONFIG OSC = RC     ;External RC oscillator, CLKO function on RA6
    ;    CONFIG OSC = HS     ;HS oscillator
    ;    CONFIG OSC = XT     ;XT oscillator
    ;    CONFIG OSC = LP     ;LP oscillator

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: 18F2620 pbp3 example config please

    Assembler uses columns, leave the same spacing as in the INC file.

    Robert

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,728


    Did you find this post helpful? Yes | No

    Default Re: 18F2620 pbp3 example config please

    according to the book if I have the right code

    217 Attempt to Generate Code in Non-Code Segment

    Due to the Harvard Architecture (split code and data spaces) of the PICmicro
    MCUs, instructions may only be executed from CODE space (ROM). This error
    indicates that an attempt was made to generate opcodes in the data or
    EEPROM segments. In general, only the DS pseudo-op is legal in the data
    segment and DS, DB and DW are the only legal pseudo-ops in the EEPROM
    segment.
    if that doesn't help you might need to post your latest code

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: 18F2620 pbp3 example config please

    Quote Originally Posted by richard View Post
    according to the book if I have the right code



    if that doesn't help you might need to post your latest code
    . . . and please use code tags as follows . . .

    [code] post code here[/code]




    Right click picture and click view to see full size . . .
    Name:  18f config.png
Views: 1856
Size:  138.3 KB
    Last edited by Archangel; - 17th December 2014 at 02:09.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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