[SOLVED !] Fuses 18F... series


Closed Thread
Results 1 to 14 of 14

Thread: Fuses 18F... series4487 days old

  1. #1
    galaxy
    Guest galaxy's Avatar

    0 Not allowed!

    Default Fuses 18F... series

    Upon today i never needed to fiddle with 18F fuses.
    But now i want to disable MCLR.
    I tried this:

    Device = 18F4520
    XTAL=20
    @__CONFIG CONFIG1H, MCLRE_OFF_3

    Still get a compiler error.

    Please help me out ?

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    galeforce9
    Guest galeforce9's Avatar

    0 Not allowed!

    Default

    Hi Galaxy

    This is for an 18f8722 but I'm sure you get the idea. Just put Config_start then the bits you require followed by config_end at the start of your code.


    Code:
    CONFIG_START
    OSC 	= HSPLL 	; HS Oscillator
    FCMEN	= OFF		; Failsafe Clock Monitor Disabled
    IESO	= OFF		; Int/Ext Oscillator Switch Over Disabled
    PWRT	= On		; Power Up Timer Enabled
    BOREN	= OFF		; Brownout Reset Disabled
    BORV	= 0		; Brownout Reset Voltage 4.6V
    WDT	= OFF		; Watchdog Timer Disabled
    WDTPS	= 1		; Watchdog Postscaler: 1:1
    MCLRE	= On		; MCLR Enabled
    LPT1OSC	= OFF		; T1 Oscillator Disabled
    CCP2MX	= PORTC		; CCP2 Mux Muxed with RC1
    STVREN	= On		; Stack Overflow Reset Enabled
    LVP	= OFF		; Low Voltage ICSP Disabled
    XINST	= OFF		; XINST Disabled
    Debug	= OFF		; Background Debugger Disabled
    CP0	= OFF 		; Code Protection Block 0 Disabled
    CP1	= OFF 		; Code Protection Block 1 Disabled
    CP2	= OFF 		; Code Protection Block 2 Disabled
    CP3	= OFF 		; Code Protection Block 3 Disabled
    CPB	= OFF 		; Boot Block Code Protection Disabled
    CPD	= OFF 		; Data EEPROM Code Protection Disabled
    WRT0	= OFF 		; Write Protection Block 0 Disabled
    WRT1	= OFF 		; Write Protection Block 1Disabled
    WRT2	= OFF 		; Write Protection Block 2 Disabled
    WRT3	= OFF 		; Write Protection Block 3 Disabled
    WRTB	= OFF 		; Boot Block Write Protection Disabled
    WRTC	= OFF 		; Configuration Register Write Protection Disabled
    WRTD	= OFF 		; Data EEPROM Write Protection Disabled
    EBTR0	= OFF 		; Table Read Protection Block 0 Disabled
    EBTR1	= OFF 		; Table Read Protection Block 1 Disabled
    EBTR2	= OFF 		; Table Read Protection Block 2 Disabled
    EBTR3	= OFF 		; Table Read Protection Block 3 Disabled
    EBTRB	= OFF 		; Boot Block Table Read Protection Disabled
    CONFIG_END
    Ian D

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Fanatical Contributor fanie's Avatar
    Join Date
    Oct 2005
    Posts
    7,964
    Thumbs Up
    Received: 29
    Given: 13
    Total Downloaded
    280.03 MB

    0 Not allowed!

    Default

    Hi Galaxi.

    Pls do a search - there is a file on Microchip.com with all the 18 pic's fuse settings.

    You have to select which one of them you want to use...

    PIC18F4520

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


    Fail-Safe Clock Monitor Enable bit:
    FCMEN = OFF Fail-Safe Clock Monitor disabled
    FCMEN = ON Fail-Safe Clock Monitor enabled

    Internal/External Oscillator Switchover bit:

    IESO = OFF Oscillator Switchover mode disabled
    IESO = ON Oscillator Switchover mode enabled

    Power-up Timer Enable bit:
    PWRT = ON PWRT enabled
    PWRT = OFF PWRT disabled

    Brown-out Reset Enable bits:
    BOREN = OFF Brown-out Reset disabled in hardware and software
    BOREN = ON Brown-out Reset enabled and controlled by software (SBOREN is enabled)
    BOREN = NOSLP Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
    BOREN = SBORDIS Brown-out Reset enabled in hardware only (SBOREN is disabled)

    Brown-out Reset Voltage bits:
    BORV = 0 Maximum setting
    BORV = 1
    BORV = 2
    BORV = 3 Minimum setting

    Watchdog Timer Enable bit:
    WDT = OFF WDT disabled (control is placed on the SWDTEN bit)
    WDT = ON WDT enabled

    Watchdog Timer Postscale Select bits:
    WDTPS = 1 1:1
    ---
    Fanie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    galaxy
    Guest galaxy's Avatar

    0 Not allowed!

    Default

    It works without compiler-complaints :-)
    As you said; now i have the idea.
    I'll pick out what i need.

    Thanks..

    Edit : Fanie; Thank you too.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,700
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1.06 GB

    0 Not allowed!

    Default

    Quote Originally Posted by galaxy View Post
    Upon today i never needed to fiddle with 18F fuses.
    But now i want to disable MCLR.
    I tried this:

    Device = 18F4520
    XTAL=20
    @__CONFIG CONFIG1H, MCLRE_OFF_3

    Still get a compiler error.

    Please help me out ?
    All the config options are listed in the 18F4520 are included at the end of the p18F4520.lpb file in program fies\crownhill\inc directory


    extract for mclr is in config3h options
    ; CONFIG3H Options
    MCLRE_OFF_3 EQU 0X7F ; Disabled ******************
    MCLRE_ON_3 EQU 0XFF ; Enabled ******************

    LPT1OSC_OFF_3 EQU 0XFB ; Disabled
    LPT1OSC_ON_3 EQU 0XFF ; Enabled

    PBADEN_OFF_3 EQU 0XFD ; Port B<4:0> digital on RESET
    PBADEN_ON_3 EQU 0XFF ; Port B<4:0> analog on RESET

    CCP2MX_PORTBE_3 EQU 0XFE ; Muxed with RB3
    CCP2MX_PORTC_3 EQU 0XFF ; Muxed with RC1
    Alternative method of setting up configuration shown below.


    @CONFIG_REQ
    @__CONFIG CONFIG1H, OSCS_OFF_1 & HS_OSC_1
    @__CONFIG CONFIG2L, BOR_ON_2 & BORV_20_2 & PWRT_ON_2
    @__CONFIG CONFIG2H, WDT_OFF_2 & WDTPS_128_2
    @__CONFIG CONFIG3H, MCLRE_OFF_3
    @__CONFIG CONFIG4L, STVR_ON_4 & LVP_OFF_4 & DEBUG_OFF_4
    @__CONFIG CONFIG5L, CP0_ON_5 & CP1_ON_5 & CP2_ON_5 & CP3_ON_5
    @__CONFIG CONFIG5H, CPB_ON_5 & CPD_ON_5
    @__CONFIG CONFIG7L, EBTR0_ON_7 & EBTR1_ON_7 & EBTR2_ON_7 & EBTR3_ON_7
    @__CONFIG CONFIG7H, EBTRB_ON_7
    ; CONFIG3H Options

    MCLRE_OFF_3 EQU 0X7F ; Disabled
    MCLRE_ON_3 EQU 0XFF ; Enabled

    LPT1OSC_OFF_3 EQU 0XFB ; Disabled
    LPT1OSC_ON_3 EQU 0XFF ; Enabled

    PBADEN_OFF_3 EQU 0XFD ; Port B<4:0> digital on RESET
    PBADEN_ON_3 EQU 0XFF ; Port B<4:0> analog on RESET

    CCP2MX_PORTBE_3 EQU 0XFE ; Muxed with RB3
    CCP2MX_PORTC_3 EQU 0XFF ; Muxed with RC1


    You attempted to set up mclr using config1h
    Wrong config

    Pick out what you need from that lot.
    A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    If were not for circumstances out side our control Les would have published 3.3 and we would have Johnb's fuse configurator.

    A well its only me for now who can enjoy it.

    BTW not the place really but while I'm here, those who use the Elnec programmers do not want to upgrade to the latest version, I wasted a day trying to make a new board work when it was the programmer screwing up the fuses.

    When I reverted back to 2.33a it all came to life...
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    galaxy
    Guest galaxy's Avatar

    0 Not allowed!

    Default

    BTW not the place really but while I'm here,
    No problem if you want to hijack my topic.
    My problem is solved, and i have learned what i needed to learn.

    Thank you all guys..

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,700
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1.06 GB

    0 Not allowed!

    Default

    Quote Originally Posted by Tim View Post
    If were not for circumstances out side our control Les would have published 3.3 and we would have Johnb's fuse configurator.

    A well its only me for now who can enjoy it.
    Oh yeah..Typical.. It's your toy and we can't play.. See if we care...

    Only kidding. Looking forward to having a looksee as and when.
    A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #9
    Richard
    Guest Richard's Avatar

    0 Not allowed!

    Default

    A well its only me for now who can enjoy it.
    Are you the 'king of the forum' or something ?

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #10
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,700
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1.06 GB

    0 Not allowed!

    Default

    Quote Originally Posted by Richard View Post
    Are you the 'king of the forum' or something ?
    Come on Richard. The gentleman's a beta tester. Thinks .... Does that mean he's a beta man than the rest of us, and that's why he gets preference?
    A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #11
    Fanatical Contributor fanie's Avatar
    Join Date
    Oct 2005
    Posts
    7,964
    Thumbs Up
    Received: 29
    Given: 13
    Total Downloaded
    280.03 MB

    0 Not allowed!

    Default

    They say the only thing on a man that must be small is his cell phone

    In mr. Hot Lips Tim's case it's his code as well.

    Oh, I almost forgot... generosity too. Nooooo, he's not going to send us copies now

    Of course Bill, he's much beta than the rest of us.
    Fanie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #12
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    Are you the 'king of the forum' or something ?
    I'm sorry Richard if it came across that way, I never intended it to

    Anyone is welcome to the plugin but unfortunately it needs Ver 3.3 to work.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #13
    Fanatical Contributor fanie's Avatar
    Join Date
    Oct 2005
    Posts
    7,964
    Thumbs Up
    Received: 29
    Given: 13
    Total Downloaded
    280.03 MB

    0 Not allowed!

    Default

    Tim, a sneak on what's up in 3.3 ?
    Fanie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #14
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    It's not new most of the details are out there already,

    The best thing is a built in version of BISVS apart from that it's mainly new INF file system called .PPI and is designed to be more robust and easier to add your own devices. And a lot of work has been done on making it Vista compatible but I'm not sure if the first release will be 100% Vista

    I'm not at the right PC now or I would have posted the what's new file.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. SD routines for 18F series
      By charliecoultas in forum Proton Plus Compiler v3
      Replies: 2
      Last Post: 14th November 2018, 19:40
    2. USB Bootloader for PIC 18F series -
      By Kapitan in forum USB Module
      Replies: 7
      Last Post: 20th January 2011, 14:39
    3. 18f series resetting problem...
      By Sammy in forum Proton Plus Compiler v3
      Replies: 12
      Last Post: 13th March 2009, 17:23
    4. [SOLVED !] 18F config fuses
      By richardy in forum Proton Plus Compiler v3
      Replies: 11
      Last Post: 18th January 2008, 14:42
    5. 18F K series
      By Mark Rodgers in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 2nd May 2007, 10:13

    Members who have read this thread since 26th October 2019, 13:11 : 0

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

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