Connect with us

PIC16XXX C Compiler?

Discussion in 'Electronic Design' started by Bob Stephens, Dec 2, 2003.

  1. Bob Stephens

    Bob Stephens Guest

    We are modifying the firmware in a PIC16F876 based design supplied by a
    vendor. The problem is, our development tools only support 18xxx devices.
    What c-compiler can anyone recommend for PIC16XXX devices?


    TIA

    Bob Stephens
    DCX-Chol
     
  2. Hi-Tech.
     
  3. CBarn24050

    CBarn24050 Guest

    Hi, the free assembler works best for these devices, I would forget about C if
    I were you.
     
  4. Bob Stephens

    Bob Stephens Guest

    Existing code that we need to modify is in C
    PITA to rewrite in Assembly
     
  5. A reason for not supporting the 16xxx series is that
    damn bankswitching. It makes it extremely hard to
    write an optimizing compiler.

    BTW, one of the reasons I moved from PIC to AVR.
    The other being : The WinNT version of MPLAB took
    too long.

    Rene
     
  6. Mike Harding

    Mike Harding Guest

    http://www.htsoft.com/

    Not cheap but an excellent compiler.

    Mike Harding
     
  7. Particularly if it's one of the oddball ones that defines int as 8
    bits or something stoopid like that.

    Best regards,
    Spehro Pefhany
     
  8. Bob Stephens

    Bob Stephens Guest

    Yes,

    I had more or less come to that conclusion. The original code was written
    for the Hi-Tech compiler and does contain some compiler-specific directives
    and such. It kind of torques me off to spend $900+ for a tool to write code
    for a 5 dollar part, but there you go.

    Bob
     
  9. Luhan Monat

    Luhan Monat Guest

    Then you better us the exact same compiler used for the original
    program. Otherwise, you may wind up chasing your own tail.
     
  10. If you only need to do a little development, the demo version of Hi-tech, is
    downloadable, and runs for 3 weeks...

    Best Wishes
     
  11. j.b. miller

    j.b. miller Guest

    I've used the CCS C compiler for about 4 years now( version 2.5xx )
    including the 16F877 without any real problems.
    I use the Microchip Picstart plus as the programmer.

    While newer chips and software may be touted as 'better', what I have works
    for me WITHOUT problems....

    Mind you I also enjoy PIC assembler. heck it isn't THAT hard to learn with
    only 35 instructions. Makes the days of Z80 assembler( 180+ inst) look
    fearsome.....

    Jay
     
  12. Hi-tech Software has what you need. www.htsoft.com.
     
  13. Bob Stephens

    Bob Stephens Guest

    Thanks everybody. I bit the bullet and ordered Hi-tech PICC
    $850 + $250 for support/updates +$45 for a printed manual (lazy)

    -Jeez
     
  14. I haven't yet programmed for the PIC series in C, but I have heard the the
    Hi-Tech compiler is quite popular.

    Regards,

    Anders
    www.msu.edu/~nelso212

    ----- Original Message -----
     
  15. Guillaume

    Guillaume Guest

    We are modifying the firmware in a PIC16F876 based design supplied by a
    That's not very clear.
    If you were really modifying it, that would mean you'd re-use some
    existing code base, and you wouldn't really have any choice as to
    what tool you'd need to use.
    So I guess you're not modifying it, but rather re-writing it from
    scratch.
    MPLAB/MPASM will allow you to develop for any device from Microchip,
    for free...
    C on PIC16 devices is not the best of ideas, given the very limited
    architecture of those microcontrollers, but that's just my opinion.
    Probably Microchip's opinion as well, since they're not providing
    a C compiler for this series.

    If you still want to go for C, you have CCS and HI-TECH PICC compilers,
    that are probably used the most.
     
  16. Guillaume

    Guillaume Guest

    We are modifying the firmware in a PIC16F876 based design supplied by
    That's not very clear.
    If you were really modifying it, that would mean you'd re-use some
    existing code base, and you wouldn't really have any choice as to
    what tool you'd need to use.
    So I guess you're not modifying it, but rather re-writing it from
    scratch.
    MPLAB/MPASM will allow you to develop for any device from Microchip,
    for free...
    C on PIC16 devices is not the best of ideas, given the very limited
    architecture of those microcontrollers, but that's just my opinion.
    Probably Microchip's opinion as well, since they're not providing
    a C compiler for this series.

    If you still want to go for C, you have CCS and HI-TECH PICC compilers,
    that are probably used the most.
     
  17. Tom

    Tom Guest

    Take a look at the CCS C Compilers at www.ccsinfo.com

    TomD
    wizbangdesigns.com
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-