16F628A fuse problem


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104

    Default 16F628A fuse problem

    Any idea why I'm having a fuse problem ?

    @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF
    ' & _PROTECT_OFF & _PWRT_ON & _BOD_ON & _CPD_OFF

    compiles with no problem but as soon as I add any of the four commented fuses onto the line I get a compiler error

    "Error [113] Symbol not previously defined."

    These are the symbols I got out of the PBP Inc folder file M16F62XA. I'm using Microcode Studio, MPASM and I have the device selected as 16F628A

    thanks, Andrew

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    _BODEN_ON                    EQU     H'3FFF' ;Backwards compatability to 16F62X
    _BODEN_OFF                   EQU     H'3FBF' ;Backwards compatability to 16F62X
    _BOREN_ON                    EQU     H'3FFF'
    _BOREN_OFF                   EQU     H'3FBF'
    _CP_ON                       EQU     H'1FFF'
    _CP_OFF                      EQU     H'3FFF'
    _DATA_CP_ON                  EQU     H'3EFF'
    _DATA_CP_OFF                 EQU     H'3FFF'
    _PWRTE_OFF                   EQU     H'3FFF'
    _PWRTE_ON                    EQU     H'3FF7'
    _WDT_ON                      EQU     H'3FFF'
    _WDT_OFF                     EQU     H'3FFB'
    _LVP_ON                      EQU     H'3FFF'
    _LVP_OFF                     EQU     H'3F7F'
    _MCLRE_ON                    EQU     H'3FFF'
    _MCLRE_OFF                   EQU     H'3FDF'
    _RC_OSC_CLKOUT               EQU     H'3FFF'
    _RC_OSC_NOCLKOUT             EQU     H'3FFE'
    _ER_OSC_CLKOUT               EQU     H'3FFF' ;Backwards compatability to 16F62X
    _ER_OSC_NOCLKOUT             EQU     H'3FFE' ;Backwards compatability to 16F62X
    _INTOSC_OSC_CLKOUT   	     EQU     H'3FFD'
    _INTOSC_OSC_NOCLKOUT         EQU     H'3FFC'    
    _INTRC_OSC_CLKOUT   	     EQU     H'3FFD' ;Backwards compatability to 16F62X
    _INTRC_OSC_NOCLKOUT	     EQU     H'3FFC' ;Backwards compatability to 16F62X
    _EXTCLK_OSC                  EQU     H'3FEF'
    _HS_OSC                      EQU     H'3FEE'
    _XT_OSC                      EQU     H'3FED'
    _LP_OSC                      EQU     H'3FEC'
    There is your choices:
    PWRTE NOT PWRT, CP_OFF NOT PROTECT,BODEN or BOREN , NOT BOD, DATA_CP not CPD. You must make them all on 1 line or do it the way I show below, (Thanks Darrel ).
    Code:
    @MyConfig = _HS_OSC & _WDT_OFF & _PWRTE_ON & _LVP_OFF 
    @MyConfig = MyConfig & _BODEN_OFF 
    @ __config  MyConfig
    Last edited by Archangel; - 26th July 2008 at 02:39.
    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.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AndrewC View Post
    Any idea why I'm having a fuse problem ?
    @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF
    ' & _PROTECT_OFF & _PWRT_ON & _BOD_ON & _CPD_OFF
    compiles with no problem but as soon as I add any of the four commented fuses onto the line I get a compiler error
    "Error [113] Symbol not previously defined."
    These are the symbols I got out of the PBP Inc folder file M16F62XA. I'm using Microcode Studio, MPASM and I have the device selected as 16F628A
    thanks, Andrew
    If you're using MPASM, you won't be using the M16F62XA file from the INC folder of PBP. You'll be 'using' the .INC file from the MPASM Suite directory.

  4. #4
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Duh

    Thankyou

Similar Threads

  1. Problem with 16Ff648a
    By aerostar in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 12th November 2009, 18:15
  2. 16F777 fuse problem - BOREN_1
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th November 2008, 20:48
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. new user with problem using PGP Pro, Lab-X3 with 16F628A
    By equipoise in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th July 2004, 07:42

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