Aaron's Homepage Forum
Aaron's Homepage Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Electronics
 Other Circuits
 c language or assembly language
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

abdulgtm
Apprentece

12 Posts

Posted - Jun 13 2010 :  08:49:42 AM  Show Profile  Reply with Quote
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  Show Profile  Visit Aaron Cake's Homepage  Send Aaron Cake an ICQ Message  Send Aaron Cake a Yahoo! Message  Reply with Quote
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.
Go to Top of Page

codingplanet
Mad Scientist

United Kingdom
195 Posts

Posted - Jun 13 2010 :  11:16:14 AM  Show Profile  Visit codingplanet's Homepage  Reply with Quote
I spent far more time learning ASM than I ever did developing with it. I use C to program PICs, it's extremely easy.
Go to Top of Page

pebe
Nobel Prize Winner

United Kingdom
1078 Posts

Posted - Jun 13 2010 :  11:34:13 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

codingplanet
Mad Scientist

United Kingdom
195 Posts

Posted - Jun 13 2010 :  1:45:06 PM  Show Profile  Visit codingplanet's Homepage  Reply with Quote
I'm not sure what you mean by M/C, but I know you can do micro-second timers.
Go to Top of Page

pebe
Nobel Prize Winner

United Kingdom
1078 Posts

Posted - Jun 13 2010 :  3:34:46 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

codingplanet
Mad Scientist

United Kingdom
195 Posts

Posted - Jun 14 2010 :  11:06:53 AM  Show Profile  Visit codingplanet's Homepage  Reply with Quote
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)
Go to Top of Page

abdulgtm
Apprentece

12 Posts

Posted - Jul 02 2010 :  03:16:26 AM  Show Profile  Reply with Quote
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
Go to Top of Page

codingplanet
Mad Scientist

United Kingdom
195 Posts

Posted - Jul 02 2010 :  5:40:56 PM  Show Profile  Visit codingplanet's Homepage  Reply with Quote
Edit: Oops, wrong platform lol

Edited by - codingplanet on Jul 02 2010 5:42:17 PM
Go to Top of Page

BEatonNo1
Nobel Prize Winner

USA
1133 Posts

Posted - Jul 29 2010 :  10:42:07 PM  Show Profile  Visit BEatonNo1's Homepage  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Aaron's Homepage Forum © 1995-2020 AARONCAKE.NET Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000