Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming in C microcontrollers

Status
Not open for further replies.

expin1

Electrical
Sep 19, 2006
2
I 'think' I already know C language but would like to link my knowledge to programming microcontrollers e.g PIC,ARM,etc.
Does anyone know a free legal online website which shows ppl. how to program micro. using C. thnx
 
Replies continue below

Recommended for you

Google is your friend...

There are forums for AVR, PIC, HC11, take your PICk (pun intended). Tons of free projects with schematics/code and descriptions.

Dan - Owner
Footwell%20Animation%20Tiny.gif
 
Hiya-
For ARM:
gcc is pretty much becoming a standard. There is enough
folks working with it to iron out the bugs.

For PIC:
I like cc5x, a freebie and continues to be free for your
first commerical product, then for second and later
commercial products, it should be bought.

I tried sdcc a couple of years ago and it was too buggy
at the time. It might be better.

The freebie version has enough math packages and the
like for me. The commercial version has more.

The freebie I believe comes with 1,8,16,32bit integer AND
24 bit floating point.

There are a couple of c constructs that this compiler
doesn't support. One comes to mind from memory again

switch( variable++ ){

it balked on. So, I did

switch (variable) {}
variable++;

there have been only two or three of these gottchas
that I've run across. On the whole a good package for
the price. Many of the pics are supported and it
is extensible (you can make up the header files for
new pics).

The linker is poorly documented, but you can do 8K
of programs while haveing them cut up into 1K chunks
and linking it afterwards. Again, this is the free
version, the paid one might be better.

Hope this helps.

Cheers,

Rich S.
 
Get any one of the PIC DEMO boards, possibly the PICDEM 4,
Use the free MPLAB integrated development tool and buy(?) the C compiler from Microchip(very reasonably priced).

Get an ICD2 that will plug into and allow you to easily debug the processor on the PICDEM 4. (It works in concert with the MPLAB).

Or get any other dev board that may be closer to your ideals, and just start programming.


Keith Cress
Flamin Systems, Inc.-
 
Thx. I just thought that once knowing C there won't be much that I need to do in micro.
 
i suggest you try to learn the assembly language for each micro-controller. download the data sheets and learn the language. as with my experience with pic there are just around 30 plus instructions to use (i kind of like using assembly language). just keep a copy of those instructions by your side while you do the programming. . . . . . . :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor