gnupic: Configuring the chip options on gpasm/16C84


Previous by date: 22 Oct 2001 14:57:34 -0000 Configuring the chip options on gpasm/16C84, Simon Wood
Next by date: 22 Oct 2001 14:57:34 -0000 What Serial Port Programmers Will Work?, Martin G. McCormick
Previous in thread: 22 Oct 2001 14:57:34 -0000 Configuring the chip options on gpasm/16C84, Simon Wood
Next in thread:

Subject: Re: Configuring the chip options on gpasm/16C84
From: Scott Dattalo ####@####.####
Date: 22 Oct 2001 14:57:34 -0000
Message-Id: <Pine.LNX.4.33.0110220753341.21701-100000@ruckus.brouhaha.com>

On Mon, 22 Oct 2001, Simon Wood wrote:

> Hi all,
> I'm new to PICs and have been using gpasm to compile my code. Great piece of code.
>
> At programming time I can set the correct options (XT, Watchdog off
> and Pwrt off), but what do I need to include in my source to
> automatically set these?

You want the __CONFIG directive:

    __CONFIG   _CP_OFF & _WDT_ON & _PWRTE_ON & _XT_OSC

The _CP_OFF, etc., are defined in the processor specific include files.
You can look at these to see all of the constants that are defined.

Also, you can look at either MPASM or GPASM's documentation. The __CONFIG
and other directives are described there.

Scott


Previous by date: 22 Oct 2001 14:57:34 -0000 Configuring the chip options on gpasm/16C84, Simon Wood
Next by date: 22 Oct 2001 14:57:34 -0000 What Serial Port Programmers Will Work?, Martin G. McCormick
Previous in thread: 22 Oct 2001 14:57:34 -0000 Configuring the chip options on gpasm/16C84, Simon Wood
Next in thread:


Powered by ezmlm-browse 0.20.