asmbley code for PIC16F and PIC18F .

Discussion in 'The Projects Forum' started by micronovice, Feb 22, 2010.

  1. micronovice

    Thread Starter New Member

    Feb 12, 2010
    6
    0
    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??
     
  2. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    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.
     
  3. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    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.
     
  4. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,646
    759
    Do you know already the 16F family?
     
Loading...