I'm sorry, but it's not going to be that easy.  You can download plenty
of free C compilers that you can use to run programs on ordinary
personal computers, and you can get all the answers you want about them
from this or many other lists.  But a compiler that will generate
programs that run on a microcontroller is not going to be easy to find,
and once you do find one, the only assistance you're likely to get will
be from the compiler's creators.  And such a compiler is likely to be
expensive.

Does the microcontroller have a way to plug in a cable connected to a
PC?  If so, what kind of cable?  Do you know what voltages need to be
applied to pins in that cable to control the microcontroller?  If you
do, maybe we can help you do that, but I wouldn't know how.

Your best bet may be to look for lists similar to this one, but
dedicated to microcontrollers.  Someone there may be able to help you.

RobR

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Bjorn Again
Sent: Monday, August 09, 2010 11:02 PM
To: [email protected]
Subject: RE: [c-prog] want to learn C, can someone give me an example?


I am sure that I can buy a 250$ compiler to convert PBasic to hex, or
ASM, or C, but there has to be an easier way!  All the books on C I can
find are oriented towards computer programming, not towards low level
microcontroller operations.  This project I am referencing here is a
simple clock program, that will control 6 ICs.  I don't know how, in C
to do pin high/low statements and pauses, which is all I really need!
I have MPlab IDE and the Pickit 2 to program and debug, but without the
proper language to program a PIC with, I'm in Limbo!
I'm pulling my hair out here!

Shane

Reply via email to