gnupic: Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?


Previous by date: 8 Jun 2006 21:13:27 +0100 How do I set configuration bits for 18f252 in gpasm?, David Froseth
Next by date: 8 Jun 2006 21:13:27 +0100 Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?, David Froseth
Previous in thread:
Next in thread: 8 Jun 2006 21:13:27 +0100 Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?, David Froseth

Subject: Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?
From: "George M. Gallant, Jr." ####@####.####
Date: 8 Jun 2006 21:13:27 +0100
Message-Id: <1149797601.7057.81.camel@scuba.home.net>

gpasm does a fine job with the 18f252.  Here is my current setup.

George

;               __CONFIG  _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H
                __CONFIG  _CONFIG1H, _OSCS_OFF_1H & _HSPLL_OSC_1H

                __CONFIG  _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L &
_BORV_20_2L
                __CONFIG  _CONFIG2H, _WDT_OFF_2H

                __CONFIG  _CONFIG4L, _DEBUG_OFF_4L & _LVP_OFF_4L &
_STVR_ON_4L

                __CONFIG  _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
                __CONFIG  _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H

                __CONFIG  _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
                __CONFIG  _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H &
_WRTD_OFF_6H

                __CONFIG  _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
                __CONFIG  _CONFIG7H, _EBTRB_OFF_7H




On Thu, 2006-06-08 at 14:24 -0400, David Froseth wrote:

> I would like to use gpasm to make a hex file for a 18f252 pic.  However, 
> I am unsure of how to write the code, which sets up the configuration 
> bits.  The 18f parts have several config files located in 0x300001 - 
> 0x30000d of the program memory.  How do I write my assembly program so 
> that gpasm knows what to do?
> 
> I would like to have these values in the various config files:
> 
> config1h = b'00100010'
> config2l = b'00001110'
> config2h = b'00001110'
> config3h = b'00000001'
> config4l = b'10000001'
> 
> Thanks for any advice.
> 
> p.s. Does gpasm support all of the additional instructions of the 
> enhanced 18f parts - i.e. bra, movlb, movff, etc?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 

Previous by date: 8 Jun 2006 21:13:27 +0100 How do I set configuration bits for 18f252 in gpasm?, David Froseth
Next by date: 8 Jun 2006 21:13:27 +0100 Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?, David Froseth
Previous in thread:
Next in thread: 8 Jun 2006 21:13:27 +0100 Re: [gnupic] How do I set configuration bits for 18f252 in gpasm?, David Froseth


Powered by ezmlm-browse 0.20.