Will it or won't it?

Discussion in 'Programmer's Corner' started by R!f@@, Jul 12, 2010.

  1. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    8,741
    759
    Will an Assembly file written for a 16F84 work if programmed to a 16F88?

    Yes or no?
    If no, then why?
     
  2. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    No, analog needs turning off, user ram starts at a different location, probably SFRs are in different banks, probably the config will be wrong. There's probably a few other things.
     
  3. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    8,741
    759
    I know it will not work directly, obviously the config and all need to be correct.

    what I am talking abt is the what the code does.
     
  4. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    They both use the same functions and such, so you could port it pretty easily.

    The problems you would run into, is if your first chip has SPI and the second didnt.
    But in this case, standard code (nothing extravagant) should port just fine (As long as you watch register location)
     
  5. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    8,741
    759
    hmm..that is what I wanted to know.
    Thanks both of u
     
Loading...