Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Help picking a PIC?

  1. #1
    Variable Bitrate
    Join Date
    Sep 2004
    Posts
    440

    Help picking a PIC?

    Basicly I need to know which would be best. I'm starting out and alot of the tutorials are for the 16F628(A?). Below are the two pics. Is there any big programing difference between the two?

    16F628A
    16F819

    I'm leaning twards the 16F819 because of fetures (5 A/D converters compared to none on the 16F628A). I was planing on using one to get temps from a 1-wire network (I would like to be able to suport alot of temp sensors is the code space going to be enough?).

    EDIT: Oh I was also wondering which I should use for the clock speed. A Crystal or a Ceramic Resonator?

  2. #2
    Raw Wave rando's Avatar
    Join Date
    Mar 2004
    Location
    Redondo Beach, CA
    Posts
    1,973
    If you're buying your first set of chips, go with the 16F88. It's a good all around chip and has twice the memory of the 819, supports upto 7 10-bit A/D converters. It also includes hardware support for RS232, I2C, and 1-wire buses. Your other option is to go with one of the 18F chips. They offer a simpler programming model (no bank switching) and are supported by the free version of the Microchip C compiler.

  3. #3
    Variable Bitrate
    Join Date
    Sep 2004
    Posts
    440
    Thanks for the info I'm planing on using one of these from sparkfun.com for programing.

    I will check to see if they have the pic you segested.

  4. #4
    Variable Bitrate
    Join Date
    Sep 2004
    Posts
    440
    Were you talking about the PIC16F688? They have that one at sparkfun.com and it lists that it has 4k of program space and 8 a/d converters.

  5. #5
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Not familar with the 16F819. I imagine it the main difference will be program memory and the io features. AFAIK, not much else differs in the 16F series (outside of the config bits).

    As far as ceramic vs crystal. I use ceramic for the stuff ending up in my car. They aren't as accurate but are less fragile.

  6. #6
    Variable Bitrate
    Join Date
    Sep 2004
    Posts
    440
    I see that most chips have built in 8mhz ones. I may just use that if some one could tell me how to use the internal insted of the external. 4 or 8 mhz is more than enough to poll some 1-wire temp sensors I'm sure.

    Also if any one could help me write the code to read the temp sensors that would be super great. I have seen examples of it on the net but I need to make sure it is for which ever pic I end up buying.

  7. #7
    Raw Wave rando's Avatar
    Join Date
    Mar 2004
    Location
    Redondo Beach, CA
    Posts
    1,973
    Quote Originally Posted by hcker2000
    Were you talking about the PIC16F688? They have that one at sparkfun.com and it lists that it has 4k of program space and 8 a/d converters.
    16F88

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    1,736
    For picking a PIC, it be based on availability, cost, size, hardware design and your programming skills. No need for a built in UART, I2C or PWM as you can do them all in SW. But this is only to reduce the cost of the PIC.

    If you can run the PIC with its internal OSC then do so, this save you 2 I/Os, 2 caps and an XTAL.

    The internal OSC is set on the fuse, the only thing is they are not as accurate as the XTAL. If speed and timming is not an issue then go for it.

  9. #9
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    I also recommend the F88. Literally, it is an improved version of the F819 which is an improved version of the F628A. It does EVERYTHING that those others do, and more.

    The BIGGEST advantage of the F88 over the F628A is that you can use a bootloader. That means you only have to deal with programming it for real one time (which is a pain, because you either have to pop the chip into the programmer, or deal with ICSP, which always causes headaches) and then you can load everything with a simple, cheap serial adapter from then on. Sparkfun's site has all the info you need on using a bootloader. Trust me, when you're trying to get code to work, it's a million times easier. You can just leave the serial cable connected, and whenever you want to load new code, you just click "download" in the software, and then reset the PIC and in 2 seconds it's all done and ready to run.

    Also, be aware that you can very easily and quickly get free PICs from the manufacturer. Microchip allows you 2 sample orders per month, and in each order you can have up to 3 each of 5 different PICs (so, up to 30 PICs per month) This is excellent for people who are using PICs for a hobby... believe me, I've been getting samples on and off for years. Not to mention, they usually ship them really fast (they often come from malaysia, and yet arrive in 2-3 days via fedex)
    But don't take it from me! here's a quote from a real, live newbie:
    Quote Originally Posted by Viscouse
    I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.
    eegeek.net

  10. #10
    Variable Bitrate
    Join Date
    Sep 2004
    Posts
    440
    Thanks I think I will go with the 16F88. Will the internal oscilator be able to handle the 1 wire timings?

    I tryed to get free samples from them but it denied the request for my area of the country so some one (or alot of some ones) must have messed that up for the rest.

Page 1 of 3 123 LastLast

Similar Threads

  1. Pic Programmer
    By KyleYankan in forum Hardware Development
    Replies: 7
    Last Post: 05-02-2005, 01:04 AM
  2. m1-atx pic blank
    By kyrenia in forum Power Supplies
    Replies: 1
    Last Post: 04-04-2005, 02:05 PM
  3. OBD2 PIC code.
    By racemier in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 3
    Last Post: 02-06-2005, 01:10 PM
  4. PIC programming how to
    By MatrixPC in forum General MP3Car Discussion
    Replies: 6
    Last Post: 12-23-2003, 03:13 PM
  5. Can someone write me a PIC program 4 a awesome s/down controller please?
    By gizmos in forum General Hardware Discussion
    Replies: 3
    Last Post: 07-17-2000, 01:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •