changing from 16f876 to 18f252 file to modify


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    155

    Question changing from 16f876 to 18f252 file to modify

    I'm changing chips and there is a config file or some file to modify I can't remember what it is or where it is
    Last edited by l_gaminde; - 1st June 2025 at 22:34.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,129


    Did you find this post helpful? Yes | No

    Default Re: changing from 16f876 to 18f252 file to modify

    Change according to your needs.

    Code:
    #CONFIG
        CONFIG  OSC = XT              ; XT oscillator
        CONFIG  OSCS = OFF            ; Oscillator system clock switch option is disabled (main oscillator is source)
        CONFIG  PWRT = OFF            ; PWRT disabled
        CONFIG  BOR = ON              ; Brown-out Reset enabled
        CONFIG  BORV = 20             ; VBOR set to 2.0V
        CONFIG  WDT = ON              ; WDT enabled
        CONFIG  WDTPS = 128           ; 1:128
        CONFIG  CCP2MUX = ON          ; CCP2 input/output is multiplexed with RC1
        CONFIG  STVR = ON             ; Stack Full/Underflow will cause RESET
        CONFIG  LVP = OFF             ; Low Voltage ICSP disabled
        CONFIG  DEBUG = OFF           ; Background Debugger disabled. RB6 and RB7 configured as general purpose I/O pins.
        CONFIG  CP0 = OFF             ; Block 0 (000200-001FFFh) not code protected
        CONFIG  CP1 = OFF             ; Block 1 (002000-003FFFh) not code protected
        CONFIG  CP2 = OFF             ; Block 2 (004000-005FFFh) not code protected
        CONFIG  CP3 = OFF             ; Block 3 (006000-007FFFh) not code protected
        CONFIG  CPB = OFF             ; Boot Block (000000-0001FFh) not code protected
        CONFIG  CPD = OFF             ; Data EEPROM not code protected
        CONFIG  WRT0 = OFF            ; Block 0 (000200-001FFFh) not write protected
        CONFIG  WRT1 = OFF            ; Block 1 (002000-003FFFh) not write protected
        CONFIG  WRT2 = OFF            ; Block 2 (004000-005FFFh) not write protected
        CONFIG  WRT3 = OFF            ; Block 3 (006000-007FFFh) not write protected
        CONFIG  WRTC = OFF            ; Configuration registers (300000-3000FFh) not write protected
        CONFIG  WRTB = OFF            ; Boot Block (000000-0001FFh) not write protected
        CONFIG  WRTD = OFF            ; Data EEPROM not write protected
        CONFIG  EBTR0 = OFF           ; Block 0 (000200-001FFFh) not protected from Table Reads executed in other blocks
        CONFIG  EBTR1 = OFF           ; Block 1 (002000-003FFFh) not protected from Table Reads executed in other blocks
        CONFIG  EBTR2 = OFF           ; Block 2 (004000-005FFFh) not protected from Table Reads executed in other blocks
        CONFIG  EBTR3 = OFF           ; Block 3 (006000-007FFFh) not protected from Table Reads executed in other blocks
        CONFIG  EBTRB = OFF           ; Boot Block (000000-0001FFh) not protected from Table Reads executed in other blocks
    #ENDCONFIG
    Ioannis

  3. #3
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    155


    Did you find this post helpful? Yes | No

    Default Re: changing from 16f876 to 18f252 file to modify

    Thank you
    I'm glad you're still around I remember you for the early 2000'ns

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,129


    Did you find this post helpful? Yes | No

    Default Re: changing from 16f876 to 18f252 file to modify

    You are welcome!

    Ioannis

Similar Threads

  1. Configuration fuses in source file for 18f252
    By PickyBiker in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd March 2010, 05:52
  2. 18F4620 - Trying to modify CONFIG 3H
    By rswain in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th March 2009, 05:08
  3. How to modify a LCD character set?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 2nd October 2006, 23:48
  4. I need some help to modify PBP2.4
    By a.majid in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd March 2005, 09:56
  5. Need help with migration 16F876 -> 18F252
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2004, 16:22

Members who have read this thread : 4

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