Searching \ for '[PIC]: CHANGING THE ASM SOURCE CODE' 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/languages.htm?key=asm
Search entire site for: 'CHANGING THE ASM SOURCE CODE'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: CHANGING THE ASM SOURCE CODE'
2004\02\07@071834 by #LEE CHUN YONG#

flavicon
face
Currently I have written some source code in ASM for PIC16F877. But now I wish to use the PIC18F4320 because if has lower power consumption. Is there any easy ways to change the ASM source code of PIC16F877 to source code that works well for PIC18F4320 besides using the brute force way by inspecting each error line of code? Thanks in advance.

--
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

2004\02\07@081757 by

picon face
#LEE CHUN YONG# wrote :

> Currently I have written some source code in ASM for
> PIC16F877. But now I wish to use the PIC18F4320 because if
> has lower power consumption. Is there any easy ways to change
> the ASM source code of PIC16F877 to source code that works
> well for PIC18F4320 besides using the brute force way by
> inspecting each error line of code? Thanks in advance.

No.

And note, if you *just* fix the error messages, you moght not
have optimum 18-series code. There are a lot of things
you can do better, faster and with less code on the 18-series.

Jan-Erik.

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.

--
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

2004\02\07@083456 by Olin Lathrop

face picon face
#LEE CHUN YONG# wrote:
> Currently I have written some source code in ASM for PIC16F877. But
> now I wish to use the PIC18F4320 because if has lower power
> consumption. Is there any easy ways to change the ASM source code of
> PIC16F877 to source code that works well for PIC18F4320 besides using
> the brute force way by inspecting each error line of code?

This isn't too bad as long as you were using responsible programming
practices in the first place.  In that case many processor dependent things
are wrapped into macros, so you add conditional assembly directives to the
macros to customize them to the 18 family.  The trickiest part is getting
the conditional bank selection macros right.  The pageing macros are really
easy because the 18 family doesn't have pages.  Most other things will cause
syntax errors so the assembler will find them for you.

There are still a few gotchas that require manual inspection.  For example,
the DECF instruction has a different effect on the flags between the two
families.  Fortunately it's a lot easier to convert 16 code to the 18 family
than the other way around.


*****************************************************************
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

2004\02\07@160222 by William Chops Westfield

face picon face
On Saturday, Feb 7, 2004, at 04:13 US/Pacific, #LEE CHUN YONG# wrote:

>  I have written some source code in ASM for PIC16F877. But now I
>  wish to use the PIC18F4320 because if has lower power consumption.

There are 16F parts that claim to be members of the nanoWatt Series.
It would be easier to use one of them, if possible (16F777?)

BillW

--
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 2004 , 2005 only
- Today
- New search...