|
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:
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
BASIC Disadvantages
Note: Because the module is not standard it module be arduous to advise cipher to a newborn processor direct type. Pascal Advantages
Pascal Disadvantages
C Advantages
C Disadvantages
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 http://www.best-microcontroller-projects.com Tags: BASIC, C programming, microcontroller, Pascal, PIC Micro, PIC microcontroller
Post a comment
|
|