+ Reply to Thread
Results 1 to 5 of 5

Thread: 16F84 = Obsolete - What alternative?

  1. #1
    Azaruk Newbie
    Join Date
    Sep 2005
    Posts
    44

    Default 16F84 = Obsolete - What alternative?

    I am new to PIC stuff, and have made a few projects (successfully) using PIC16F84.

    I have been writing code for new projects, but as the 16F84 is obsolete, what chip can I use as a replacement and what changes, if any, have to be made to the code?


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,794

    Default

    The 16F628 replaced the 16F84 almost ten years ago, only VERY minimal changes need to be made to the code - mostly turning off the comparators.

    There used to be a migration document at MicroChip, but it doesn't seem to be there any more.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  3. #3
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,710
    Blog Entries
    5

    Default

    Aside from setting the __CONFIG differently usually just turning off the comparators will make it very similar to the 16F84 and you get the 4MHz clock built in!
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  4. #4
    TekNoir Newbie
    Join Date
    Mar 2005
    Location
    Tennessee - USA
    Posts
    138

    Default

    If you are using someone else's program, you may need to move some of the general purpose register locations forward in the source.

    The GP register starts at 0Ch for the PIC16F84(A) and it starts at 20h on the 16F628(A).

  5. #5
    William At MyBlueRoom Newbie
    Join Date
    Feb 2006
    Location
    Toronto, Canada
    Posts
    721

    Default

    I cut my PIC teeth on the old 16C54, such a simple chip and still very powerful. Having only 7 SFRs not too intimidating. The true king of the 18pin 16f series is the 16f88, it's a lot more complex than the f84 for sure but its an awesome little pic, second to that the 16f628a.

    if you're just getting started with pics try the free MPLAB simulator. Nothing to build, it's got all the PIC simulators and you can try your hand at some coding right away.
    Bill
    Home of the
    Firefly PIC Tutor
    Inchworm ICD2

    http://www.blueroomelectronics.com

+ Reply to Thread

Similar Threads

  1. PIC 16F84 to 16F628a question
    By lompa in forum Micro Controllers
    Replies: 14
    Latest: 6th September 2007, 12:33 PM
  2. code convertion 16F628 -> 16F84
    By patroclus in forum Micro Controllers
    Replies: 6
    Latest: 6th April 2006, 08:35 PM
  3. alternative to C281XBX411-24VAC
    By shermaine in forum General Electronics Chat
    Replies: 0
    Latest: 29th June 2005, 03:11 AM
  4. 16f84 to 16f877
    By Ricardoco in forum Micro Controllers
    Replies: 11
    Latest: 16th December 2004, 05:38 AM
  5. i want 16f84 protect and no any one can read its data
    By Jani-Jan in forum Micro Controllers
    Replies: 1
    Latest: 9th June 2003, 04:35 AM

Tags for this Thread