Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

which language is easier?

Status
Not open for further replies.

wajahat

Advanced Member level 4
Joined
Feb 3, 2006
Messages
102
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
2,097
hi everyone ,i am trying to learn microcontroller.i want to ask which language would be easier assembly or c. Any advice about where i should start from? What i need to know?
Any response would be helpful.
 

Programming in C is easier and faster, but if you want to know, what happens inside uC or need to program very accurate timings, then you must know assembly.
 

    wajahat

    Points: 2
    Helpful Answer Positive Rating
Hi
At least you should pass with assembly once.
If you going to master MC you should continue with C

I suggests you to start with PIC or with ATMEL AVR series

Thanks
 

    wajahat

    Points: 2
    Helpful Answer Positive Rating
I share the opinion of haytham.

First of all you must program it in assembler, in order to know the uC operation. Then you can begin with C.

It´s much difficult if you start with C and then you want to learn assembler.

These is my opinion taking into account my personal experience in this matter.

Best R.
Guille
 

A good book for learning is "C the complete reference" by Herbert Schildt.
The advantage of programming assembly is that you know, how it is implemented.
So somtimes it is easier to find bugs then.
 

In my opinion you first go for assembly language program as it has very keen facilities such as debugging,control over hardware,internal processing etc . for the begineers assembly language is a bit difficult but intresting than high level.As the program size increases it is difficult to program in assembly then you can go for high level such as c,pascal etc.
 

Think : in a c code listing you can "inject" asm parts but never viceversa...so i think is better to learn asm then c !
Good Luck !
 

I guess someone can take the contrary view, I say why add a level of abstraction and make getting at the hardware just that bit trickier. I have seen countless post of c programmers not quite being able to make the micro do what they want. The advice given here is good though, learn assembly first, you are going to need to be familliar with the datasheet of the device you are using anyway so you are half way there. Then learn c if you think you need it.
Regards,
John.
 

when i learn about avr , i am using C to develop and it's quite easy but if you want learn deeper about it you must learn assembly first, right now i'm learning assembly too, we need it sometime to optimize the avr works.
 

c is much easier than assembly language.
In C , you need to definr the variables and write the procedures in terms of commands. So, the length of program ios short. While, in Assembly, you havew to write the evrything in terms of codes, so the program becomes too long.
 

C is easier. but starting with assembly language will give you more understanding towards the concepts of microprocessors.
so better start with assembly language and then migrate to C language.
 

I share my opinion with haytham and gdaporta...

C is very easy, but you don´t have "all control" on the HW of de uC

Its my pessoal experience !!1

ps: Sorry my bad English
 

C is powerfull, portabel and easy to learn! Try C and Your code production will be fast...

Gorkin.
 

i would suggest C... but first have to understand the uC architecture first (mayb assembly is a good idea)...

C is a very good investment... first, we all study C in our university time...

further more, once u know C.. u know all (hope this is not exaggerate)... i can learn JAVA, BASIC, PERL, VB, very easily.... even VHDL & verilog (though they r concurrent hardware language)...

regards,
sp
 

GO for C
if you know C you can able to learn Verilog, Java...... easily
but you should have enough knowledge of assembly also
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top