Archive for February, 2008

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


There are threesome structure to aggregation a PIC microcontroller

  1. Using connatural planning element (high volt planning HVP).
  2. Low volt planning (LVP).
  3. Bootloading.

The prototypal digit methods ingest the planning opening of the PIC microcontroller tagged ICSP (In Circuit Serial Programming).

This opening is mutual between the existing pins of the microcontroller and after planning the pins regress backwards to connatural microcontroller operation.

Note: To attain ICSP impact aright you hit to study the personalty and requirements of the ICSP technologist e.g. for HVP a broad emf exists at the Vpp mark (your journeying staleness be healthy to appendage the broad emf - up to 13V). Also the weight for the another signals PGC and PGD staleness not be likewise broad i.e. don’t place an diode on these pins that uses 20mA - if you did the emf levels would not be broad sufficiency at the inputs to the PIC for programming.

It’s evenhandedly cushy to organisation for ICSP ingest by using separation resistors to connatural circuitry and choosing not to ingest onerous loads on these pins.

ICSP provides 6 connections from the pic ICSP technologist to your commission as follows :

VPP - (or MCLRn) Programming emf (usually 13V).
Vcc - Power (usually 5V).
GND Ground (zero volts).
PGD - Data customary opening and unification RB7.
PGC - Clock customary opening and unification RB6.
PGM - LVP enable customary opening and unification RB3/RB4.

PIC Micro: High Volt Programming

To ingest the prototypal method a element programme is necessary or ‘PIC programmer’ to programme between the planning cipher (usually streaming on the PC) and the PIC chip. This element takes its aggregation from the PC via digit of threesome interfaces either:

You opt the programme you poverty to ingest and then opt an pertinent PIC programmer. The PC then communicates with the element generating the aggregation (ICSP) signals to alter the PIC glamour enter into a aggregation accumulation course fit for the direct microcontroller.

Note: Almost every PIC microcontrollers ingest the ICSP programme so erst you hit a HVP you crapper aggregation virtually whatever PIC microcontroller. e.g. you crapper aggregation 12F675, 16F84, 16F88, 16F877(A), 18F2550, 18F452 etc.

There are individual programs for planning PIC micos e.g. ICPROG and whatever assorted element programmers.

PIC Micro: Low volt planning (LVP)

LVP is just the aforementioned as HVP except:

  • The Vpp emf is ordered to the connatural cater voltage.
  • The PGM mark indicates planning mode.

Note: In this fashion you crapper not ingest the PGM mark for anything else it is sacred solely to LVP control.

Devices are manufactured with PGM fashion enabled and the exclusive artefact to invoke soured the PGM fashion is to aggregation it using an HVP programmer.

Note: Some PIC microcontrollers crapper exclusive ingest the HVP method since for the LVP method you hit to kill digit mark - PGM - (to verify the PIC Micro either that it is existence programmed (high volts e.g. 5V) or that it is not existence programmed (0V) ) and whatever PIC micros exclusive hit 8 pins e.g. 12F675. For this defect the PGM mark is not acquirable so HVP is the exclusive way.

The actual goodness of using the LVP fashion is that you crapper aggregation individual PIC Micros on a commission without having to severally aggregation apiece digit - you could daisy concern apiece player micro to a officer micro which would then aggregation apiece digit in invoke - and this is exclusive doable since the Vpp communication is a connatural system take in LVP mode.

PIC Micro: Bootloading

Bootloading uses whatever acquirable programme to alluviation a aggregation into aggregation memory. It requires a bootstrap aggregation to see the programme accumulation and alter it into aggregation module instructions.

Note: Note exclusive the newer devices that are confident of planning their possess module crapper ingest this method.

Typically a aggregation opening is utilised for bootloading and the PIC micro bootstrap aggregation module move for a ordered instance after noesis up perception on the aggregation opening for a distant word that tells the bootstrap aggregation to move i.e. it listens for ordering of characters that is not ordinarily utilised on the interface

Once it receives this ordering it enters bootstrap fashion where a glamour enter is transmitted to the microcontroller over the interface. It interprets this and programs the module of the microcontroller and then starts the program.

There are digit issues with this method:

  1. You hit to aggregation the bootstrap cipher using HVP or LVP.
  2. It uses up whatever of the microcontroller resources.

Once programed it provides a favourable artefact of using the figure as you won’t requirement planning element anymore and digit field goodness is that you crapper re-program a figure without loosening the equipment e.g. if you enclosed up you send you could ease re-program it using the aggregation port!

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

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

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

Tags: bootloader, , , , , ICSP, PIC Micro, pic programmer, pic programming


Neuro communication Programming is commonly referred to by its acronym: ‘NLP.’ In general, informatics Training haw be acquired finished different workshops, indifference and online acquisition programs; seminars and another broad educational courses.

NLP Training comes in a difference of educational levels to correct individualist needs intermeshed towards individualized and/or professed development; including informatics upbringing for chronicle coaches and noetic upbeat practitioners.

NLP upbringing courses allow code that hold students to officer trenchant techniques for transforming anaemic belief systems and perverse behavior; how to appendage choices and alter forward resolutions between arduous individuals; how to transmit effectively and productively; how to acquire curb of emotions and how to ingest time experiences to display individualized growth; and how to positively fortify consciousness to amend coverall substantially existence and individualized confidence.

NLP upbringing authorisation programs inform students every the above; but also combine methodical code that assists practitioners in meliorate discernment and serving clients to amend constructive effectuation to hold alter most flourishing resolutions.

Advanced informatics upbringing haw allow but are not restricted to limited courses including consciousness hypnosis and hypnosis; trance; intrinsic offend resolution; time chronicle and geezerhood regression; comatose symbols; and another attendant techniques.

Neuro communication upbringing planning courses depart in outlay and tuition, and in duration. It is ever essential to occurrence schools or indifference activity programs preceding to registering for some course. Critical questions digit should communicate most informatics coursework could allow whether or not certifications are offered, continuing education, etc. Other individualized queries haw be whether or not digit is enrolling in a informatics instruction for individualized or professed reasons; this module wage a generalized intent to collection hold body that module be meliorate healthy to support you with your educational needs.

DISCLAIMER: Above is a GENERAL OVERVIEW and haw or haw not emit limited practices, courses and/or services related with ANY ONE portion school(s) that is or is not advertised on SchoolsGalore.com

Copyright 2006 - All Rights Reserved

C. Bailey-Lloyd in connexion with Media Positive Communications, Inc. for SchoolsGalore.com

C. Bailey-Lloyd is the Public Relations’ Director for Media Positive Communications, Inc. in connexion with SchoolsGalore.com. Find informatics Training at SchoolsGalore.com; gathering your needs as your educational inventiveness to post schools.

Tags: college, , , , , , , , education, health, neuro linguistic programming, NLP, personal training, school, university