Re: Compiling code



Stephen D. Barnes wrote:
Tim Wescott wrote:
RumpelStiltSkin wrote:

"Tim Wescott" <tim@xxxxxxxxxxxxxxxx> wrote in message news:S5mdnS-nkLjEPyTVnZ2dnUVZ_oLinZ2d@xxxxxxxxxxxxxxx
andersod2 wrote:
The schematic shows a programmer port on there, so you might not need
an eval board to do the programming...may just be able to plug the
cable in and program the code right into it...PIC should have a lot of
different tools you can download for compiling and programming it
yourself...I would look for a PIC developers site that is for
beginners which should exists somewhere I'm guessing given the
popularity of PICs. With the right compiler (which I'm guessing there
is a free version of) and programmer (also should be a free one), you
could do it yourself without much trouble I have to believe. I only
know AVR's which is basically the equivalent, and it has all the above
mentioned tools for free. And there is a lot of support on
avrfreaks.com specifically for that, so I gotta believe someone could
help you do this easily from a PIC equivalent site.

The cheapest way to get a PIC programmer is to get one of the paraller-port ones -- but that requires a compatible parallel port.

Eval boards have programmers built in, which is what motivated that suggestion. The ones you get from Microchip are very very nice, and cost lots of $$.

There's gotta be a usable, cheap USB/PIC programmer out there, though.

Its called the ICD2. Can debug or program PICs.

Eh. Those are cheaper than I thought. Still not hobbyist cheap, but pretty darn close.

Check out www.microchip.com and look at the PicKit II. I think it is about $35 USD. USB pic programmer for almost the entire range of pics. You can get MPLAB there as well which is the programming IDE.

Regards,
Steve

The PicKit was what I was thinking of for the OP. Unfortunately that doesn't get him compiled code to load; the Microchip compiler is very nice but it defines hardware accesses differently than the CCS compiler does so it'll choke on code written for that compiler.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" gives you just what it says.
See details at http://www.wescottdesign.com/actfes/actfes.html
.



Relevant Pages

  • Re: [EGN] Hoisting Loop Invariants (Was: Re: [EGN] Numerical Accuracy)
    ... compiler out there somewhere that did as you claim. ... > the programmer has this knowledge, then the programmer should not use ... >> string in a loop, regardless of the blatant inefficiency of doing so. ...
    (comp.programming)
  • Re: The Philosophy of Programming?
    ... A compiler is free to ... >>is to allocate on entry to almost any block. ... > int foo{ ... But any programmer who wants to be more than a coder prefers, I think, ...
    (comp.programming)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... what experienced programmers do, ... the compiler doesn't have the free pass to /assume/ that the function ... Nobody has recommended doing all optimization by hand to my knowledge. ... Compiler behavior in optimization simply has no place in a language ...
    (comp.programming)
  • Re: Static/Strong/Implicit Typing
    ... and every programmer would instantly revere the static type analysis. ... will inform your compiler of your construction. ... the two varieties and consciously break the type disjointness. ... Common Lisp is not quite as abstract, ...
    (comp.lang.lisp)
  • Re: Can someone spot the error here?
    ... the compiler can and should assume ... but the programmer is at option to ... a language like Pascal is founded on. ... Wirth was looking both to compiler efficiency, ...
    (comp.lang.pascal.misc)