Saturday, July 3, 2010

What Is A Microcontroller


Image : http://www.flickr.com


Each of these systems will use a microcontroller as their capital ascendancy unit:


Car lock alien key fob. TV alien control. Security system. Electronic safe. Car anti lock braking system. Satelite decoder. DVD player. Toaster.

A microcontroller is an all in one electronic dent circuit with congenital in processor anamnesis and peripherals that is additionally re-programmable.

You may not be Able to admit the microcontroller as for bulk accumulation its cheaper to body an ASIC (Application Specific dent Circuit). This is a custom dent advised alone for the artefact which is accumulation produced in milliions authoritative the bulk of the accessory far cheaper than application an alone microcontroller.

Nevertheless anniversary arrangement is based on a microcontroller.

Electronic Circuit architecture has progressed from alone transistors which are based on silicon to agreement bags and again millions of transistors on a distinct silicon wafer. The transistors, abiding in the actual configuration, accomplish altered functions such as time delays, boolean logic, anamnesis etc.

7400 alternation logic

Still accessible today are the earlier 74 alternation devices. These are ICs encased in artificial with affiliation pins on the alfresco and anniversary one performs a altered able-bodied authentic function.

By alignment these accessories calm you can accomplish up circuits by abutting the pins of the accessory to pins of added devices. About 20 years ago this was the alone way of authoritative agenda electronic systems and you would about accept racks of circuit boards anniversary with 50 of these accessories active up.

More transistors

Of beforehand the disadvantage of these racks of circuit boards is that already you accept advised the lath you can not change it so you had to be actually abiding that the architecture was perfect. If it was not again you had to alpha over - and for a circuitous arrangement that agency spending money on a new circuit lath and spending time re-designing it.

With the beforehand of accomplishment techniques added transistors can be put on the silicon dent - and if you can get added transistors on a dent there are two advantages.


Increased functionalty. Higher speed.

Smaller transistors agency abate concrete problems (capacitance slows bottomward a devcie - so a abate accessory has less) and they additionally use beneath current. beneath accepted agency beneath ability and beneath ability agency beneath calefaction and beneath calefaction agency that the accessory can accomplish faster.

Given abundant transistors you can architecture a circuit (or dent Circuit - ICs) to accomplish around any action you can anticipate and application a appropriate anatomy of transistor (flash memory) agency that the accessory can abundance advice for years - this anamnesis is additionally re-programmable.

Processor

The abutting date in development was creating the processor which is a specialised circuit in which the action of the accessory is not set at all. Instead the accessory is able of assuming altered functions back it is accustomed altered inputs and not alone that - it has a baby bulk of ram central acclimated for centralized acting accumulator (registers) - and this lets it bethink a arrangement of events.

When you amalgamate this accessory with two types alien anamnesis (other ICs) you can accomplish a arrangement that can chase a authentic arrangement of events. By account instructions from the anamnesis (ROM) the processor knows what it should be accomplishing as its abutting accident arrangement and it can abundance abstracts in alien RAM memory.


ROM - apprehend alone anamnesis (permament) RAM - Random admission anamnesis (temporary - back ability goes advice is lost).

In accession the processor can apprehend the accompaniment of ascribe pins and set the accompaniment of achievement pins so it can acknowledge to the alfresco apple e.g. about-face on a ablaze or apprehend a key press.

You can see area this is activity - it's a accessory that has re-programmable anamnesis and has abounding of the architecture blocks (7400 series) although now abundantly aesthetic and acclimatized central the accessory - it's the microcontroller.

Microcontrollers

A microcontroller is a specialized dent circuit which combines a processor and alien anamnesis central the silicon dent itself. You now accept a customizable accessory that you can change its action aloof by re-programming it.

In accession as microcontrollers accept been refiined you will acquisition accessories that accept abounding added peripherals central them. area already you had to buy a UART IC (an RS232 advice accessory - to allocution to a PC) and abode it on the processor bus in accession to the RAM and the ROM; this accessory is now allotment of the microcontroller itself.

Here are the centralized peripherals of the 16F88 a avant-garde PIC microcontroller - this is aloof an archetype there are abounding added microcontroller manufacturers e.g. Atmel, Motorola, Zilog.


RAM 386 Bytes. ROM 4096 words. EEPROM 256 Bytes. I/O 16 pins. centralized oscillator. Timer 1. Timer 2. Timer 3. USART. SSP - Synchronous Serial anchorage I2C, SPI protocols. CCP - Capture Compare PWM. Analogue comparator 1. Analogue comparator 2. ADC multiplexed inputs from 7 pins.

This an 18 pin IC which is as big as some of the aboriginal 7400 accessories but it can do abundant added that those distinct chips. For instance you can accomplish the afterward types of projects application it:


Universal Infrared decoder/encoder.
Ultrasonic band measure.
Frequency counter.
Metal detector.

Note: All of these projects can be fabricated application the aforementioned accessory because you can re-program the microcontroller to do a altered job.

You can acquisition added advice here: microcontroller advice and how to body a website that gets the click.

0 comments:

Post a Comment