Searching \ for '[PIC]: From 16F84 to 12F629' 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/devices.htm?key=16F
Search entire site for: 'From 16F84 to 12F629'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: From 16F84 to 12F629'
2002\12\24@063541 by Marco Genovesi

flavicon
face
Hi all,
I'm thinking to "downgrade" my PIC 'F84 based Datalogger on an 8pin series PIC12F629.
(...well, I see on the list many demands for "upgrade" to the 18F parts, so I feel myself rare...)

The objective is to obtain a smaller unit,  with only temperature measurement.
Has anyone tried to migrate the code from '84 to a 12Fxx (and can give some generic suggestions / documents to read about the main steps to follow?). Any help will be appreciated.

Marco


--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2002\12\24@071346 by Bob Ammerman

picon face
This will actually be quite a bit easier than you think. In  spite of its
number, the 12F629 is actually a 16F chip at heart. In other words, it is
based on the same 14 bit core as the 16F chips, rather than the 12 bit core
used in the 12C508.

The primary differences you will encounter are:

The F84 has 68 bytes of RAM starting at location 0Ch
The F629 has 64 bytes of RAM starting at location 20h

The F628 has 128 bytes of EEPROM, compared to the F84's 64 bytes

The EEPROM registers are all in bank 1 on the F629

The F629 has only one I/O port, called GPIO instead of PORTA and PORTB. GPIO
is actually at the same address as PORTA in the F84

The F629 adds several new peripherals which you'll have to correctly
initialize (especially the A/D and comparator stuff).

The F629 can operate off an internal clock.

You'll have to carefully check your __CONFIG settings

...and I am sure a bunch more gotchas

But, all in all, this should be a pretty simple transition.

Bob Ammerman
RAm Systems

{Original Message removed}

2002\12\24@074943 by Wouter van Ooijen

face picon face
> Has anyone tried to migrate the code from '84 to a 12Fxx (and
> can give some generic suggestions / documents to read about
> the main steps to follow?).

Read all 16x84 -> 16f628 conversion documents, the 12F's are more
related to the 16f628 than o the 1684. (for instance the relevant part
of http://www.voti.nl/swp)

www.microchip.com/download/faqs/eletter/02hilite/nov02/tipsnov02_
1.pdf
www.microchip.com/download/faqs/eletter/02hilite/dec02/quicktipde
c02_2.pdf

When you run short of pins on a 12F consider the 16F630.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2002\12\24@082927 by Olin Lathrop

face picon face
>>
Has anyone tried to migrate the code from '84 to a 12Fxx (and can give
some generic suggestions / documents to read about the main steps to
follow?).
<<

The 12F PICs are really misnamed 16F PICs because they use the same 14 bit
core, not the 12 bit core of the 12C parts (too many bozos in marketing
coming up with the names).  The migration issues from an 16F84 to a 12Fxxx
are pretty much the same as between other 16 family parts.

I use my framework at http://www.embedinc.com/pic for all projects, so
this kind of porting is a non-issue for me.  I added support for the
12F629 and 12F675 a few months ago and have done a couple of projects with
them.  Nice little chips.

Even if your code isn't written with my framework, you can "port" to that
now instead of directly to the 12F629.  It will make the next modification
much simpler.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2002\12\24@120204 by Marco Genovesi

flavicon
face
>>The 12F PICs are really misnamed 16F PICs because they use the same 14 bit
>>core, not the 12 bit core of the 12C parts ....

I had not thought to this point! ( I remembered myself that these PICs were
similar to 12C509).
I have already migrated the logger code on the '628 and it works apparently
fine, so probably  will not too difficult
the adjustment on the 12F629.
Now, many thanks also to Wouter and Bob, the suggestions are those that I
expected..!
I think that, probably, the hardest point will be the very reduced number of
I/O (on '84 I use 12 pins).

regards (and also Merry Christmas)
Marco



{Original Message removed}

2002\12\24@123909 by Wouter van Ooijen

face picon face
> I think that, probably, the hardest point will be the very
> reduced number of I/O (on '84 I use 12 pins).

Check the 16F630/676

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2002\12\24@170759 by Spehro Pefhany

picon face
At 05:59 PM 12/24/02 +0100, you wrote:
> >>The 12F PICs are really misnamed 16F PICs because they use the same 14 bit
> >>core, not the 12 bit core of the 12C parts ....
>
>I had not thought to this point! ( I remembered myself that these PICs were
>similar to 12C509).
>I have already migrated the logger code on the '628 and it works apparently
>fine, so probably  will not too difficult
>the adjustment on the 12F629.
>Now, many thanks also to Wouter and Bob, the suggestions are those that I
>expected..!
>I think that, probably, the hardest point will be the very reduced number of
>I/O (on '84 I use 12 pins).

Look at the 16F676, which has 14 pins and is essentially identical to the
12F675 otherwise.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
spam_OUTspeffTakeThisOuTspaminterlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

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