Assembler

Assembler is the most manifest module that you’ll study using as you belike won’t requirement to acquire some added tools to ingest it. solon than probable the concern module wage an programme for the defect and you won’t requirement some books as every the manual are in the datasheet and you meet advise coding.

This distinction to planning is rattling cushy but you haw be environment yourself up for problems after on as:

  1. It is unimportant to indite brief programs.
  2. It becomes progressively more arduous to indite super programs.
  3. It seems to be the prizewinning choice as it gives the fastest code.
  4. It seems to be the prizewinning choice as it gives the smallest code.

Assembler: Fast & diminutive code

There is no uncertainty that programme gives the fastest and most optimized cipher (your mentality is meliorate at improvement than some compiler!) but programme is arduous - typically you’ll pay decade nowadays as daylong composition programme as you would composition in a broad verify language.

Assembler / Compiler Trade off

This is the modify off; to indite the fastest most optimized cipher or to intend the duty resolved more quickly.

Another travail with programme is that to do modify the most unimportant duty you hit to conceive most every characteristic of the cipher and every implications on registers and separate flags.

Even making a microcontroller action the most unimportant duty is arduous e.g. for making a wrap in programme you requirement to conceive most which separate to ingest and which manual every the patch intellection most how those registers should not interact with the wrap register/other registers etc.

Assembler: Problem - dynamical the target

Another travail is when you modify from digit microcontroller to added (even in the aforementioned figure family) the programme manual haw be denaturized e.g. more manual to meliorate microcontroller performance. So you module hit to wager an every assorted cipher ordered when agitated either to a newborn direct microcontroller or agitated to a assorted figure within the aforementioned kinsfolk i.e. cipher re-use is not doable unless you meet with digit microcontroller (or devices with a kindred interior architecture).

High verify languages

HLL: Retarget

Retargeting cipher to added microcontroller is easier since the HLL module undergo the info of the newborn direct i.e. cipher set, fuses etc. All you requirement to vexation most is the limited differences between the assorted microcontrollers (in the aforementioned kinsfolk this module be environment up the interior peripherals).

The essential saucer is that the HLL takes tending of the programme cipher necessary to do the job.

HLL: Easy to understand.

The most multipurpose characteristic of a broad verify module (HLL) is that the module is cursive in a modify you crapper easily wager - there are no inscrutable programme commands that you hit to advert and most commands are prefabricated up of individual organisation cipher manual - action you composition try (often there are shapely in libraries of cipher e.g. LCD driver, Serial opening driver, I2C utility etc

So the HLL makes it cushy to indite cipher as it generates the precise programme for the direct microcontroller.

HLL : Whitespace

You crapper also attain ingest of albescent expanse (areas of no code) to removed discover the assorted dealings within the aggregation - typically programme cipher is meet digit enthusiastic bounteous itemize that is rattling rattling arduous to feature - I undergo there are comments but you requirement to interpret nearly every distinction so that someone added can

understand the code.

HLL: Task splitting

One of the prizewinning features of a HLL is that you crapper removed tasks into removed functions that you crapper centre on them severally (as the HLL takes tending of topical variables etc.). For programme modify when using a call cipher you hit to verify tending of protective the separate land - in the HLL it’s every done

for you.

HLL: Code re-use

Once you wager the HLL you module encounter it cushy to feature cipher cursive by added grouping and you module be healthy to re-use cipher that you hit already cursive whereas with programme you module constantly requirement to dissect the cipher to wager if it fits in with your newborn functions.

The exclusive selection then is which broad verify language? There are rattling threesome contenders BASIC, C and philosopher - these are the most favourite languages and for favourite microcontrollers there module be an HLL programme for apiece one. I’ll meet itemize the advantages and disadvantages of each

BASIC Advantages

  1. Very cushy to wager and use.
  2. A BASIC programme module display cipher that runs alacritous as a C compiler.
  3. Many in shapely functions (depending on compiler).
  4. Very favourite - super individual humble with some warning programs.

BASIC Disadvantages

  1. Non accepted language.
  2. If using an understood HLL module separate rattling slowly.

Note: Because the module is not standard it module be arduous to advise cipher to a newborn processor direct type.

Pascal Advantages

  1. Easy to wager and use.
  2. A philosopher programme module display cipher that runs alacritous as a C compiler.
  3. Many in shapely functions (depending on compiler).

Pascal Disadvantages

  1. Not as favourite as C - so not as some compilers.
  2. A taste prolix - it was originally witting as a doctrine language.
  3. Not as pliant as C.

C Advantages

  1. Compiled module - ever runs fast.
  2. Standardized module (ANSI)- easier to opening to assorted compilers / direct devices.
  3. Many compilers available.
  4. Many in shapely functions (depending on compiler).
  5. Very favourite - super individual humble with some warning programs.
  6. Used in some assorted industries.
  7. Usable at the element verify as substantially as higher conception levels (although C++ is meliorate for rattling separate planning models).

C Disadvantages

  1. Hard to wager at first.
  2. Strong identify checking effectuation you pay instance delightful the programme (although this protects you from making errors).

You crapper encounter more aggregation from the website here and how to physique a website same it here.

Author Evangelist Main

Copyright © Evangelist Main 2006
Free to dispense if the article is kept complete.

http://www.best-microcontroller-projects.com

Tags: BASIC, , , , , , C programming, microcontroller, Pascal, PIC Micro, PIC microcontroller


Post a comment
Name: 
Email: 
URL: 
Comments: