'C or not to C, was, or still is, TUTORIAL'
Now I've been wondering....
I never had a chance to learn C or C++ over the years. I always dived in
straight at the Assembler language and I am actually quite comfortable
with it, but... (there is always a but, right? :) ):
I know that there are certain routines that can be done faster or easier
in C, so I reckon I might as well learn it as well.
So to rephrase the question: I want to learn C (or C++?) to program PICs
with, nothing else. Where would you suggest I start at?
Start with a "Learning to program in C" book for computers not PIC's.
>From there, write a couple of simple C programs (usually examples in the
Once you've cracked the variable types and how to write functions using
simple i/o (eg keyboard input and screen output) then move over to PIC's.
There a dozens of free C compilers available from the web. (Keep to the
Once you've got the text "Hello World" up on your screen, and written a few
functions to compute fahrenheit / celcius conversions then you'll be well on
Remember... basics first. Don't try to run before you can walk. Mistakes are
easy to make with C when you start out. Eg, some code ends with a semi-colon,
other bits of code don't need the semi-colon. Certain ascii characters have
Keep it simple, learn the philosophy behind C.
It's a fantastic / powerful language, you're gonna love it.
> Now I've been wondering....
> I never had a chance to learn C or C++ over the years. I always dived in
> straight at the Assembler language and I am actually quite comfortable
> with it, but... (there is always a but, right? :) ):
> I know that there are certain routines that can be done faster or easier
> in C, so I reckon I might as well learn it as well.
> So to rephrase the question: I want to learn C (or C++?) to program PICs
> with, nothing else. Where would you suggest I start at?
Learn C and you're journey to the dark side will be complete.
Seriously... C is useful, C++ is not probably suitable (he gets ready
to be shot down in flames). My experience is C++ is an object based
'upgrade' of C and tends to bloat memory usage.
YES I have coded in both.
I would suggest C would be better suited to the new 18 series PICs
coming out and not the existing units unless code portability was a
My 3 c worth (NZ money)
Uni of Auckland
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...