Best PIC MCU

Discussion in 'General Electronics Chat' started by craigfoo, Dec 16, 2013.

  1. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    I'm looking for a PIC MCU that is easy to integrate into a design.

    Some requirements:
    - I need it to have at least 6 I/Os
    - It needs to have internal memory, internal oscillator, and internal regulator if possible.
    - Small form factor.

    Basically, I would like to minimize external components but still be able to program the MCU in circuit. I'm set on PIC because I already wrote the program. Any recommendations?
     
  2. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,548
    2,373
    Isn't that sort of backwards, usually the program is written around the selected device?;)
    Max.
     
  3. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    Yes, you're right. I need to explain better. The program was written for this board http://www.parallax.com/product/bs2-ic.

    I was wondering if there was a PIC that has all the external components built-in.
     
  4. BeerBelly

    New Member

    Dec 16, 2013
    29
    5
    There are many PICs that fit the bill. How much internal memory and what voltage range?
     
  5. Meixner

    Member

    Sep 26, 2011
    116
    21
    With the requirements you provided I would suggest either the 12F629 (6 i/o pins) or the 16F630 (12 i/o pins). No PICs have an internal regulator but if you use a regulated 5 Volts to supply your board and have good bypassing at the PIC you should not have any problems.
     
  6. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    128KB range will be enough. A 2V to 15V range would be nice and it seems it's possible with the internal regulator on some of these chips.
     
  7. Dodgydave

    Distinguished Member

    Jun 22, 2012
    4,986
    745
    16f690, 18f24k22
     
  8. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    Looking at the ones that Meixner has suggested, I don't think I'll need 128KB of memory; one of these could work. I'm not super familiar with selecting microcontrollers, what are some specs that I should look for? Should I pick something overkill?
     
  9. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,548
    2,373
    Depends on the footprint you can allow?
    Do you intend programming in C or assembler?
    Max.
     
  10. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    In order to program "in-circuit" I'll need to utilize the ICSP, correct? I wouldn't be able to program "in-circuit" with the 12F629, right? Sorry, a little new to this.
     
  11. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    @Max; I'm programming in BASIC.
     
  12. JohnInTX

    Moderator

    Jun 26, 2012
    2,347
    1,029
    If you have written your program for the BASIC Stamp, you'll need Parallax's PBasic, a tokenized language that requires the PBasic interpreter in the PIC.

    While you can use your existing program logic, you'll be re-writing the program from scratch in assembler, C or compiled BASIC.
     
  13. craigfoo

    Thread Starter New Member

    May 16, 2013
    22
    0
    Would I be able to load the PBasic boot code on the PIC and then load my existing program?
     
  14. Meixner

    Member

    Sep 26, 2011
    116
    21
    You could do it with the 12F629, you have to use the ICSP pins for both functions. Microchip has an appnote on how to do this. Or you could just use the 16F630 with more I/O pins and not be bothered with reusing the pins. The 16F630 only costs 30 cents more than the 12F629 from my supplier.
     
  15. BobTPH

    Active Member

    Jun 5, 2013
    782
    114
    128KB? The suggested PIC12F629 has 128 bytes of RAM, only off by a factor of 1024. If you need 128KB, you would have to use a 32-bit PIC.


    Bob
     
  16. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,388
    1,605
    Oshonsoft (Google it) sells a very inexpensive Basic compiler for the PIC. That needs minimal code tweaking to get your code up and running, if the built in functions duplicate what the Stamp has.

    PIC12HV615 for one. The "HV" designates an internal 5V shunt regulator.
     
Loading...