asmbley code for PIC16F and PIC18F .

Thread Starter

micronovice

Joined Feb 12, 2010
6
hello , i would like to know if i can use the same assembley code i used for pic16 for pic18. i am planing to change my microcontroller and i dont know if i can use the same code i am using for pic16f for the new pic 18f . are the code interchangeble/? or illd say compactable??
 

Tahmid

Joined Jul 2, 2008
343
Hi,
The 18F has many enhancements. Go over the datasheet and you'll see the differences.
Choose which 18F you are going to use. Take for example 18F458, and look up the datasheet.
ww1.microchip.com/downloads/en/devicedoc/41159d.pdf

Hope this helps.
Tahmid.
 

Tahmid

Joined Jul 2, 2008
343
If you are going to use many different microcontrollers, eg, for a project 16F628A, for another 16F877A, for another 18F458, 18F1320, 18F2550, 16F887, etc, it might be better that you use a high level compiler like mikroBASIC or mikroC. You might switch to high level programming anyway for sake of ease of programming.
 
Top