Presetting Configuration Fuses (PIC Defines) into your Program - Page 3


+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 81 to 83 of 83
  1. #81
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    That worked perfectly!
    Thanks a bunch!
    Ray

    Quote Originally Posted by ScaleRobotics View Post
    Sorry, I wish I was Melanie, but I have not seen her around lately, or even not so lately.
    The 18F2680 needs different syntax for those options. Check out post # 42 of this thread.

    Here is the syntax to use for the 18F2680:
    Code:
    ;----- CONFIG5L Options --------------------------------------------------
    _CP0_ON_5L           EQU  H'FE'    ; Block 0 (000800-003FFFh) code-protected
    _CP0_OFF_5L          EQU  H'FF'    ; Block 0 (000800-003FFFh) not code-protected
    
    _CP1_ON_5L           EQU  H'FD'    ; Block 1 (004000-007FFFh) code-protected
    _CP1_OFF_5L          EQU  H'FF'    ; Block 1 (004000-007FFFh) not code-protected
    
    _CP2_ON_5L           EQU  H'FB'    ; Block 2 (008000-00BFFFh) code-protected
    _CP2_OFF_5L          EQU  H'FF'    ; Block 2 (008000-00BFFFh) not code-protected
    
    _CP3_ON_5L           EQU  H'F7'    ; Block 3 (00C000-00FFFFh) code-protected
    _CP3_OFF_5L          EQU  H'FF'    ; Block 3 (00C000-00FFFFh) not code-protected
    
    ;----- CONFIG5H Options --------------------------------------------------
    _CPB_ON_5H           EQU  H'BF'    ; Boot block (000000-0007FFh) code-protected
    _CPB_OFF_5H          EQU  H'FF'    ; Boot block (000000-0007FFh) not code-protected
    
    _CPD_ON_5H           EQU  H'7F'    ; Data EEPROM code-protected
    _CPD_OFF_5H          EQU  H'FF'    ; Data EEPROM not code-protected

  2. #82
    Join Date
    Dec 2013
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    Hi, i have this problem when i try to use a external oscillator
    when compile an error that like this appear

    Overwritting previous adress contens (2007)

    How i can fix that?

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


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    The answer is in the first five post of this thread.
    Maybe you did not read the thread you posted to ?
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. pic program crashing
    By comwarrior in forum General
    Replies: 5
    Last Post: - 8th July 2009, 16:33
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. size of program vs mem on pic
    By PICMAN in forum General
    Replies: 1
    Last Post: - 1st March 2005, 17:23
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts