×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Programming in C microcontrollers

Programming in C microcontrollers

Programming in C microcontrollers

(OP)
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

RE: Programming in C microcontrollers

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
http://www.Hi-TecDesigns.com

RE: Programming in C microcontrollers

I believe this website may offer some help:

http://www.experts-exchange.com/

I've used it for VB and .net applications, but its been years ago... I've not programmed in years now...Thank heavens!!!!

RE: Programming in C microcontrollers

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.

RE: Programming in C microcontrollers

Get any one of the PIC DEMO boards, possibly the PICDEM 4, http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010054

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.

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&;nodeId=81  

Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com

RE: Programming in C microcontrollers

Madcow.. That is weird. Who would write a page like that?  Why?

Takes all kinds I guess.lol

Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com

RE: Programming in C microcontrollers

(OP)
Thx. I just thought that once knowing C there won't be much that I need to do in micro.

RE: Programming in C microcontrollers

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. . . . . . . :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources