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,631


    Did you find this post helpful? Yes | No

    Default Re: 18F2620 pbp3 example config please

    melabs have a neat config editor meCONFIG ITS WORTH DOWNLOADING and free , or check out the DEVICE_REFERENCE folder in your pbp3 installed directory


    but for now try this
    Code:
    #CONFIG
      CONFIG  OSC = INTIO67
      CONFIG  FCMEN = OFF
      CONFIG  IESO = OFF
      CONFIG  PWRT = OFF
      CONFIG  BOREN = OFF
      CONFIG  BORV = 3
      CONFIG  WDT = ON
      CONFIG  WDTPS = 512
      CONFIG  CCP2MX = PORTC
      CONFIG  PBADEN = OFF
      CONFIG  LPT1OSC = OFF
      CONFIG  MCLRE = ON
      CONFIG  STVREN = ON
      CONFIG  LVP = OFF
      CONFIG  XINST = OFF
      CONFIG  DEBUG = OFF
      CONFIG  CP0 = OFF
      CONFIG  CP1 = OFF
      CONFIG  CP2 = OFF
      CONFIG  CP3 = OFF
      CONFIG  CPB = OFF
      CONFIG  CPD = OFF
      CONFIG  WRT0 = OFF
      CONFIG  WRT1 = OFF
      CONFIG  WRT2 = OFF
      CONFIG  WRT3 = OFF
      CONFIG  WRTC = OFF
      CONFIG  WRTB = OFF
      CONFIG  WRTD = OFF
      CONFIG  EBTR0 = OFF
      CONFIG  EBTR1 = OFF
      CONFIG  EBTR2 = OFF
      CONFIG  EBTR3 = OFF
      CONFIG  EBTRB = OFF
    #ENDCONFIG

    ps not sure why your asking for PIC18F4520 config info in a 18F2620 thread why not start a new one ?
    Last edited by richard; - 25th November 2014 at 23:17.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    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

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


    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

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    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

  5. #5
    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: 1747
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 : 1

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