Searching \ for 'Programming 17C44 Configuration Word' 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/microchip/devprogs.htm?key=programming
Search entire site for: 'Programming 17C44 Configuration Word'.

Truncated match.
PICList Thread
'Programming 17C44 Configuration Word'
1999\03\12@161304 by Fansler, David

flavicon
face
Having finished my initial flow charts, I have started writing my first
program for a 17C44.  I intend to use it with an external clock in a
microcontroller mode and no watchdog, for the moment.  I have looked through
all the 17Cxx examples on MicroChip's ftp site, and not once did I see where
anyone set the configuration word.  According to the 17C4X documentation
(30412C.PDF Page 100), you should write the configuration data at locations
FE00-FE0F.  It then goes on to talk about using TABLWT instruction in order
to write the data into program memory.  But is this not something that
should be written into the locations FE00-FE0F when you program the EPROM?

If anyone has dealt with this before I would appreciate some words of
enlightenment!

Thanks,
David V. Fansler
Network Administrator
AutoCyte, Inc.
800-426-2176 Ext. 261
spam_OUTdfanslerTakeThisOuTspamautocyte.com <.....dfanslerKILLspamspam@spam@autocyte.com>
Now Showing! http://www.mindspring.com/~dfansler
Opinions Expressed Within Are Mine And May Not Reflect Those Of My Employer

1999\03\12@223419 by Bob Bullock

flavicon
face
Ya, I know exactly the problem your having, I went through exactly the same
process and it just drove me nuts.  I can't remeber how I stumbled on the
answer but it was more luck than anything.  The secret is simple, the
configuration bits are specified when you program the chip, and not in the
assembled program.

I assume you have downloaded and fired up MPLAB.  If you have a programmer,
such as
the PICSTART Plus, when you click on "Enable Programmer" under the
"PICSTART PLUS" menu
you will see where all of the configuration options can be selected from
drop-down menu's.
Naturally, you will have had to configure MPLAB for the 17C44 for your
project for it to
know which chip options are valid.

Now, you can include a configuration line in your assembly which will
inform MPLAB
what you want all of the options to default to so that you don't actually
have to
remember what to set them to.  The syntax is like this:

       LIST   P=PIC17C44, R=DEC

       __CONFIG _MC_MODE & _XT_OSC & _WDT_64
       #include "P17c44.inc"

Note that it is a double underscore in front of the __CONFIG.
The available options for the config line are defined in the P17c44.inc
file, which
is included when you loaded MPLAB (free from Microchip)

for the 17C44, they are:

;==========================================================================
;
;       Configuration Bits
;
;==========================================================================

_PMC_MODE                       EQU     H'7FAF'
_XMC_MODE                       EQU     H'FFBF'
_MC_MODE                        EQU     H'FFEF'
_MP_MODE                        EQU     H'FFFF'

_WDT_NORM                       EQU     H'FFF3'
_WDT_OFF                        EQU     H'FFF3'
_WDT_64                         EQU     H'FFF7'
_WDT_256                        EQU     H'FFFB'
_WDT_1                          EQU     H'FFFF'

_LF_OSC                         EQU     H'FFFC'
_RC_OSC                         EQU     H'FFFD'
_XT_OSC                         EQU     H'FFFE'
_EC_OSC                         EQU     H'FFFF'




At 04:10 PM 99/03/12 -0500, you wrote:
{Quote hidden}

Bob Bullock
President
ProStyle Software
EraseMEbobbspam_OUTspamTakeThisOuTprostyle.com

1999\03\12@223635 by Jim Robertson

flavicon
face
At 16:10 12/03/99 -0500, you wrote:

The 17Cxxx parts can "self program" during runtime. This is what the microchip
docos are on about when they are talking about using the TABLWT instruction.
You do not _have_ to program the config word during runtime and it is my bet
that nobody does.

You are right in your assumption that the config word is programmed when the
rest of the EPROM is programmed with a normal pic programmer.

The default config word is for external clock, microprocessor mode and WDT
with
minimum timeout period. For your app, the only config bits you need to
program
are the WDT bits (Write to FE02, FE03)

Given that you are not programming any of the main eprom it is a pity if you
cannot handle the WDT in software as this would eliminate the need to program
the part at all.

Jim

{Quote hidden}

________________________________________
Jim Robertson
Email: KILLspamnewfoundKILLspamspampipeline.com.au
http://www.pipeline.com.au/users/newfound
MPLAB compatible PIC programmers and firmware
upgrades for many programmers.
________________________________________

1999\03\13@104335 by Fansler, David

flavicon
face
Bob Bullock wrote
               Ya, I know exactly the problem your having, I went through
exactly the same
               process and it just drove me nuts.  I can't remeber how I
stumbled on the
               answer but it was more luck than anything.  The secret is
simple, the
               configuration bits are specified when you program the chip,
and not in the
               assembled program.

Bless you Bob!  I have downloaded and run through the tutorials that come
with MPLAB, so I do remember where you are talking about.  I have an older
Xeltek SuperPro programmer with an adapter for the 17C4X series I will be
using to burn the chips with.  I hope that the configuration information is
something that is embedded in the hex code so it would work with any
programmer.

Thanks again,
David V. Fansler
Network Administrator
AutoCyte, Inc.
336-222-9707 Ext. 261
RemoveMEdfanslerTakeThisOuTspamautocyte.com
Now Showing! http://www.mindspring.com\~dfansler\

1999\03\13@104338 by Fansler, David

flavicon
face
Jim wrote:
               You are right in your assumption that the config word is
programmed when the
               rest of the EPROM is programmed with a normal pic
programmer.

               The default config word is for external clock,
microprocessor mode and WDT
               with
               minimum timeout period. For your app, the only config bits
you need to
               program
               are the WDT bits (Write to FE02, FE03)

               Given that you are not programming any of the main eprom it
is a pity if you
               cannot handle the WDT in software as this would eliminate
the need to program
               the part at all.

Thanks Jim - Bob's answer got to me about 3 emails before yours.  Both
contained valuable but different info.  I thought that the microprocessor
mode used external program memory space and the microcontroller used
internal memory space.  I want to use the internal program memory space.  I
plan on using the WD in the future - I was not planning on using it
initially to simplify my first few passes at the code.

Thanks again,
David V. Fansler
Network Administrator
AutoCyte, Inc.
336-222-9707 Ext. 261
spamBeGonedfanslerspamBeGonespamautocyte.com
Now Showing! http://www.mindspring.com\~dfansler\

1999\03\13@215717 by Jim Robertson

flavicon
face
At 10:41 13/03/99 -0500, you wrote:
{Quote hidden}

Yes, you are right. If I alluded otherwise perhaps I misread the original
message.


Jim

I want to use the internal program memory space.  I
{Quote hidden}

________________________________________
Jim Robertson
Email: RemoveMEnewfoundspamTakeThisOuTpipeline.com.au
http://www.pipeline.com.au/users/newfound
MPLAB compatible PIC programmers and firmware
upgrades for many programmers.
________________________________________

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