An alternative to PIC16F84A?

Discussion in 'General Electronics Chat' started by Fuji, Nov 21, 2014.

  1. Fuji

    Thread Starter Member

    Nov 8, 2014
    100
    1
    PIC16F84A is getting obsolete and more expensive. I want to know an alternative to this Microcontroller with the same amount of pins.

    Anybody aware of the cheapest Microcontroller out there with 18+ pins as well? Sometimes its hard to choose the right Microcontroller with more options.
     
    Last edited: Nov 21, 2014
  2. takao21203

    AAC Fanatic!

    Apr 28, 2012
    3,648
    477
    Unanimously, the 16f84 has a pretty small memory, and is expensive too.

    The 16f1709 isnt bad, not sure if it has 18 or 20 pins tough, well, you can remove the two extra pins, and wire them from the top ahaha. Or put the SOIC on adapter PCB.
     
  3. RichardO

    Well-Known Member

    May 4, 2013
    1,670
    570
  4. Dodgydave

    AAC Fanatic!

    Jun 22, 2012
    6,478
    1,025
    i use 16f690
     
  5. Fuji

    Thread Starter Member

    Nov 8, 2014
    100
    1
    Thanks for the input.

    What do you think of PIC16F54-E/P ?
    https://www.microchipdirect.com/Pro...ip&Category=PIC16F54&mid=1&treeid=1&lmid=1002

    All I am using is an XT oscillator, 2 LED's and a buzzer. Basically wanting to program the microcontroller in C language for these components only.

    When I look for more functions in a microcontroller, what is more important to look at? Is it Ram, KBytes, KWords or Timers? Or all if I should say are important in general?
     
  6. JohnInTX

    Moderator

    Jun 26, 2012
    2,941
    1,406
    Nope. It doesn't have the same stack and memory. If your program uses them, pffft.

    Take a look at 16F627. I ported some C54 and F84A stuff to it awhile back with no issues (that I can recall :) ) and with no code changes other than config bits, configuring shared analog pins etc. Same 18 pinout.
     
    Last edited: Nov 21, 2014
    Fuji likes this.
  7. takao21203

    AAC Fanatic!

    Apr 28, 2012
    3,648
    477
    Its cheap. You can buzz a buzzer or blink some LEDs.

    But you cant use a small TFT.

    you should have 8K FLASH at least, and 1K RAM, there is the case when you dont need it, get some 16F54...

    You can decode LED 7seg with 16F54 and stuff like that
     
    Fuji likes this.
  8. GopherT

    AAC Fanatic!

    Nov 23, 2012
    7,257
    5,972
    16f628A was my favorite 18 pin. Make sure it is the "A" version.
     
  9. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,907
    1,789
  10. Fuji

    Thread Starter Member

    Nov 8, 2014
    100
    1
    Very good page. Makes searching specs for Microcontrollers a lot easier.
     
  11. ian field

    AAC Fanatic!

    Oct 27, 2012
    5,546
    979
    Years ago I went to Maplin for a couple of 84s - they pretty much stung me on price!

    They advised me to switch to the 627 - or the 628 with more memory etc.
     
  12. RichardO

    Well-Known Member

    May 4, 2013
    1,670
    570
    First you want to find a part with all the features you need -- for instance UART, A/D, analog comparator and the like. Then find a part that has all of the features you need plus a few you may need. Finally, order parts that have more pins and a lot more memory than the part you found. Use this part for prototyping hardware and software.

    When you have everything working to your satisfaction, choose a part that has only what you actually need to get the cost down.
     
    Fuji likes this.
Loading...