Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

regarding Microcontroller programming in assembly

Status
Not open for further replies.

arvin444

Newbie level 6
Joined
Sep 15, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,367
is it necessary to learn assembly language for microcontroller programming.
Please tell some sources for learning the assembly lang...
What are the software and hardware requirements for programming a microcontroller in assembly lang?
do different architectures have different assembly language syntax?
 

a_tek7

Banned
Joined
Feb 9, 2006
Messages
161
Helped
11
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bandar Abbas
Activity points
0
which microcontroller do you want to learn?avr or PIC...
I think that for learning assembly you should choose PIC microcontroller if you are a beginner.The best software(compiler) is MPLAB (for PIC).
 

arvin444

Newbie level 6
Joined
Sep 15, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,367
if i want to program a microcontroller PIC and i am using MPLAB IDE on my pc then what are the hardware/connections required to connect the PIC microcontroller to my PC for programming.And then after my device based on microcontroller is ready and i want to control it using my PC then what modules are required.
thanks...
 

elrayes

Full Member level 5
Joined
Jun 3, 2008
Messages
246
Helped
20
Reputation
40
Reaction score
7
Trophy points
1,298
Location
Egypt/Canada
Activity points
2,780
Actually you won't need to learn assembly to program a microcontroller, you have the option to use C, BASIC or even there is a compiler now for PASCAL for microcontrollers, unless you want to learn assembly of a certain microcontroller.
when you download MPLAB IDE from microchip website you will find inside it MPASM, it is assembler for PIC microcontrollers.
you can use MPLAB C18 (Academic version free), a C compiler for PIC16/18 families or you can use MikroC another C compiler for PIC from "Mikroelectronika".
also from this company you will find two another compilers called MikroBASIC and MikroPascal.
go ahead and discover this world, don't limit your options and learn everything possible.
 

ChrisC

Member level 2
Joined
Sep 30, 2009
Messages
51
Helped
14
Reputation
28
Reaction score
2
Trophy points
1,288
Location
London, UK
Activity points
1,760
As elrayes said, you don't need to learn assembler given the range of languages available for microcontrollers (even the smallest ones - I've written C for TinyAVRs with 1KB of flash and no SRAM...).

However, I'd expand on that to say that whilst you don't *need* to learn it, you'll almost certainly benefit from doing so anyway. Even if you never write any assembly language code yourself - and it's been several years since I last did so - it's seriously useful being able to read the assembler output from a compiler and understand how much work the microcontroller is being asked to do for each line of C, Pascal etc. Especially when you can't figure out why what looks like perfectly valid higher-level code isn't doing what you expect it to do - some compilers may only generate correct assembler if you structure your own code in a certain way, generating total garbage otherwise...

Also, when you come to run your code in a debugging environment, there are times when it's difficult if not impossible to do what you need to do without dropping down into the disassembly view of the code.

And of course, if you do understand assembly language well enough to do the above, you'll be a lot closer to understanding it well enough to write it yourself on those occasions when you're stuck with target hardware which doesn't have quite enough memory or processing power to do what it needs to do whilst also coping with the overheads incurred by the compiler.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top