Software > Software

What language do the micro controllers use?

(1/2) > >>

jocatch:
I am trying to fast forward from the 1980's and 1990's when I built my 8085 and 8052 BASIC based robots. Back then I used BASIC and assembly lang to program them.

Now I am thinking about building a new SOTA project using Arduino or Axon. Looks like these are based on C or C++. I have used BASIC, Pascal, Fortan and machine langs in the past but never could get my hands around C. Will I have to learn C or C++ for anything I build today using Arduino or Axon? I have heard of the BASIC STAMP but looking at its code, it doesn't look like any basic I have ever seen. Plus I want something more powerful and expandable than the Stamp. Any inputs? Thanks.

JC

Webbot:
You CAN use assembly - but I wouldn't recommend it for anything unless its so time critical and your higher level language is not fast enough. ie use it by exception. Its not always portable and its not very easy to understand/write unless you are using it day in day out.

You really need to learn C. Not always a million miles away from Basic in that you have many of the same constructs: IF/THEN/ELSE, DO/WHILE, FOR etc etc

Do not attempt C++ (object orientated C) until you understand C as it is built on top of C.

At the end of the day the language you use is fed through a compiler to produce assembly code which is then uploaded to the micro controller.

waltr:
If you know Pascal and Fortran then C should be hard, it has similarities to both.

Get the book: The C Programming Language, by Kernigham & Ritchie
http://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628

jocatch:
I used Fortran and Pascal a very long time ago, I am sure I remember 0% about them. I need a really basic book on C. I'll find one soon as I think I have decided on the Arduino Mega controller.

JC

jocatch:
Well, I went up in my attic and found a book I got years ago called "New C Primer Plus" by the Waite group. It is the first edition from 1990 but I figure C hasn't changed that much over the years and the C that runs on the microcontrollers would be the same. I hope!

JC

Navigation

[0] Message Index

[#] Next page

Go to full version