Author |
Topic |
|
abdulgtm
Apprentece
12 Posts |
Posted - Jun 13 2010 : 08:49:42 AM
|
Dear ,
I want to work on atmel series 89c51 controller , so would you help me to choose a language which is easy to understands , and benificial in future. note that shoud be easy to understnds on coding.
Abdulgtm |
|
Aaron Cake
Administrator
Canada
6718 Posts |
Posted - Jun 13 2010 : 10:29:30 AM
|
http://www.atmel.com/dyn/resources/prod_documents/doc0265.pdf
Both languages will accomplish the same thing. C, however, will be far easier for you as it is a higher level language. But a program written directly in assembly will undoubtedly be smaller. Assembly is harder to understand and much less development is taking place in assembly these days. |
|
|
codingplanet
Mad Scientist
United Kingdom
195 Posts |
Posted - Jun 13 2010 : 11:16:14 AM
|
I spent far more time learning ASM than I ever did developing with it. I use C to program PICs, it's extremely easy. |
|
|
pebe
Nobel Prize Winner
United Kingdom
1078 Posts |
Posted - Jun 13 2010 : 11:34:13 AM
|
I have only ever programmed in ASM. Can a program in C do all the things that can be done in ASM? I am thinking of things like turning on a bit for one M/C, or very short timers. |
|
|
codingplanet
Mad Scientist
United Kingdom
195 Posts |
Posted - Jun 13 2010 : 1:45:06 PM
|
I'm not sure what you mean by M/C, but I know you can do micro-second timers. |
|
|
pebe
Nobel Prize Winner
United Kingdom
1078 Posts |
Posted - Jun 13 2010 : 3:34:46 PM
|
By M/C I meant machine cycle. I understood that using Basic, there is a lower limit for a timing period, but if 'C' can do microsecond timers, then you have answered my question. |
|
|
codingplanet
Mad Scientist
United Kingdom
195 Posts |
Posted - Jun 14 2010 : 11:06:53 AM
|
I'm not sure if you can turn on a bit for 1 machine cycle, but if you couldn't, you could always add a little bit of asm into your C :D (Kinda defeating the purpose I suppose) |
|
|
abdulgtm
Apprentece
12 Posts |
Posted - Jul 02 2010 : 03:16:26 AM
|
sir, It mean you are giving me advise for c language as compare to assembly language , So please let me clear that I have to just understands c language or c++ language , and please also advise in c++ could I do micro controller programming. Regards. Abdulgtm |
|
|
codingplanet
Mad Scientist
United Kingdom
195 Posts |
Posted - Jul 02 2010 : 5:40:56 PM
|
Edit: Oops, wrong platform lol |
Edited by - codingplanet on Jul 02 2010 5:42:17 PM |
|
|
BEatonNo1
Nobel Prize Winner
USA
1133 Posts |
Posted - Jul 29 2010 : 10:42:07 PM
|
Learning Assembly is a good way to learn how the processor actually works and how C and other higher languages work which will make you more effective in the long run. However, you can find a C compiler for every processor out there, and in most cases firmware is developed using C. |
|
|
|
Topic |
|