Searching \ for 'Configuration Fuses' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=configuration+fuses
Search entire site for: 'Configuration Fuses'.

Truncated match.
PICList Thread
'Configuration Fuses'
1995\12\07@221100 by Newson Edouard

flavicon
face
hi pickers,

I am using the PIC16C74 and wonders if it is possible to program the
configuration fuses such as watchdog, crystal selections, code protection,
et straight from assembly instead of programming them manually at the
programmer terminal.


thanks,
N. Edouard

1995\12\07@233442 by Mike Goelzer

flavicon
face
>hi pickers,
>
>I am using the PIC16C74 and wonders if it is possible to program the
>configuration fuses such as watchdog, crystal selections, code protection,
>et straight from assembly instead of programming them manually at the
>programmer terminal.

I don't know what hardware/software you're using, but with the Parallax
assembler
(my favorite b/c unlike some others on this list, I actually like the
mneumonics), add
this line to the begining of your code:

       DEVICE  PIC16C57,XT_OSC,WDT_OFF,PROTECT_OFF

The above example assumes a PIC16C57, a crystal osc. and the WDT and code
protect turned off.  You can of course change these to suit your needs.

If you are using other software, the method will be different.  Check your
docs or
repost with the name of the software you're using and someone will probably
be able to answer you.

-mike
--
Mike Goelzer
<spam_OUTmgoelzerTakeThisOuTspamus.net>

1995\12\08@114644 by Newson Edouard

flavicon
face
On Thu, 7 Dec 1995, Mike Goelzer wrote:

{Quote hidden}

I am using the starter kit with has the MPASM assembler.  And I don't
think that it has those options that you mentioned.



thanks,
N.  Edouard

1995\12\09@081512 by Newfound Electronics

flavicon
face
>I am using the starter kit with has the MPASM assembler.  And I don't
>think that it has those options that you mentioned.
>
>thanks,
>N.  Edouard
>
MPASM will most certainly allow th fuse, id and data eeprom codes to be
defined in the source code.

The MPASM documentation is hot of the press and documents how it can be done
with MPASM.

In fact the required info has been around for awhile in a shortform MPASM
documentation file posted on the MCHIPBBS.

You can get the new, full documentation of the MCHIPBBS or maybe the usual
internet sites. (sorry, I don't have the addresses handy) The file is in PDF
format so you will need the acrobat reader.

Regards

Jim

1995\12\09@142015 by Andrew Warren

flavicon
face
Newson Edouard <PICLISTspamKILLspamMITVMA.MIT.EDU> wrote:

> I am using the PIC16C74 and wonders if it is possible to program the
> configuration fuses such as watchdog, crystal selections, code
> protection, et straight from assembly instead of programming them
> manually at the programmer terminal.

Newson:

The following is an excerpt from my web page... It's Question #35 in the
PIC16/17 section of the Embedded Systems Programming Answer Line.

------------------------------------------------

I'm using MPASM for the 16C74. Is it possible to set configuration fuses in my
source code?

    Sure, as long as you're using a version of MPASM later than about 1.20.
    Here's an example for the 16C74. In your own code, you should probably use
    the fuse-definition equates that are included in the "16CXX.INC" and
    "17CXX.INC" files distributed with MPASM, since they're guaranteed to have
    the correct values for current parts.

        ; NOTE:  THIS IS FOR THE CURRENT VERSION OF THE 16C74 ONLY!

        CP_ALL  EQU     03F8FH          ;NOTE:  These equates are for the
        CP_75   EQU     03F9FH          ;       current version of the
        CP_50   EQU     03FAFH          ;       PIC16C74 ONLY!
        CP_OFF  EQU     03FBFH          ;
        PWRT    EQU     03FBFH          ;       They are NOT for the 16C74A,
        NO_PWRT EQU     03FB7H          ;       nor are they guaranteed to
        WDT     EQU     03FBFH          ;       work on any other devices.
        NO_WDT  EQU     03FBBH          ;
        LP_OSC  EQU     03FBCH          ;
        XT_OSC  EQU     03FBDH          ;
        HS_OSC  EQU     03FBEH          ;
        RC_OSC  EQU     03FBFH          ;

                __FUSES CP_ALL & PWRT & NO_WDT & XT_OSC   ;Enable code
                                                          ;protection and
                                                          ;power-up
                                                          ;timer, disable
                                                          ;the watchdog
                                                          ;timer, and
                                                          ;select XT
                                                          ;oscillator.

    Note that the __FUSES directive is preceded by two underscores, not one.

-----------------------------------------------------------

-Andy

Andrew Warren - .....fastfwdKILLspamspam.....ix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geopages.com/SiliconValley/2499

1995\12\09@220311 by Newson Edouard

flavicon
face
Thanks Andy, I will try it


Newson

More... (looser matching)
- Last day of these posts
- In 1995 , 1996 only
- Today
- New search...