Professional Documents
Culture Documents
The smallest microcontroller has only eight pins but some having 68 pins are also
being marketed. In the last five years, the prices of microcontrollers have dropped by
80% and are now one of the most cost-effective components in industry. Being software-
driven, microcontrollers greatly simplify the design of sophisticated instrumentation and
control circuitry.
The microcontrollers are able to effect precise calculations sometimes needed for
feedback in control systems and now form the basis of all intelligent embedded systems
such as those required in television and VCR remote controls, microwave ovens, washing
machines, etc. More than ten times as many microcontrollers than microprocessors are
manufactured and sold in the world in spite of the high profile that the latter enjoys
because of the personal computer market.
ABSTRACT v
1 INTRODUCTION
1.1 DEFINITION 1
2 EXISTING 8
2.4 PROGRAMMING
LATENCY
2.6 HISTORY
3 CONCLUSION
REFERENCES
CHAPTER-1
INTRODUCTION
The integrated circuit from an Intel 8742, an 8-bit microcontroller that includes a CPU
running at 12 MHz, 128 bytes of RAM, 2048 bytes of EPROM, and I/O in the same chip.
1.1Definition
The majority of computer systems in use today are embedded in other machinery, such as
telephones, clocks, appliances, and vehicles. An embedded system may have minimal
requirements for memory and program length. Input and output devices may be discrete
switches, relays, or solenoids. An embedded controller may lack any human-readable
interface devices at all. For example, embedded systems usually don't have keyboards,
screens, disks, printers, or other recognizable I/O devices of a personal computer.
Microcontrollers may control electric motors, relays or voltages, and may read switches,
variable resistors or other electronic devices.
Since the embedded system is dedicated to specific tasks, design engineers can optimize
it, reducing the size and cost of the product, or increasing the reliability and performance.
Some embedded systems are mass-produced, benefiting from economies of scale.
Physically, embedded systems range from portable devices such as digital watches and
MP3 players, to large stationary installations like traffic lights, factory controllers, or the
systems controlling nuclear power plants. Complexity varies from low, with a single
microcontroller chip, to very high with multiple units, peripherals and networks mounted
inside a large chassis or enclosure.
In general, "embedded system" is not an exactly defined term, as many systems have
some element of programmability. For example, Handheld computers share some
elements with embedded systems — such as the operating systems and microprocessors
which power them — but are not truly embedded systems, because they allow different
applications to be loaded and peripherals to be connected.
2.1.2Microprocessor
Processors were for a long period constructed out of small and medium-scale ICs
containing the equivalent of a few to a few hundred transistors. The integration of the
whole CPU onto a single VLSI chip therefore greatly reduced the cost of processing
capacity. From their humble beginnings, continued increases in microprocessor capacity
has rendered other forms of computers almost completely obsolete (see history of
computing hardware), with one or more microprocessor as processing element in
everything from the smallest embedded systems and handheld devices to the largest
mainframes and super computers.
Since the early 1970s, the increase in processing capacity of evolving microprocessors
has been known to generally follow Moore's Law. It suggests that the complexity of an
integrated circuit, with respect to minimum component cost, doubles every 18 months. In
the late 1990s, heat generation (TDP), due to current leakage and other factors, emerged
as a leading developmental constraint[2].
Example of writable but volatile random access memory: Synchronous Dynamic RAM
modules, primarily used as main memory in personal computers, workstations, and
servers.
Random access memory (usually known by its acronym, RAM) is a type of computer
data storage. Today it takes the form of integrated circuits that allow the stored data to be
accessed in any order, i.e. at random. The word random thus refers to the fact that any
piece of data can be returned in a constant time, regardless of its physical location and
whether or not it is related to the previous piece of data.[1]
This contrasts with storage mechanisms such as tapes, magnetic discs and optical discs,
which rely on the physical movement of the recording medium or a reading head. In these
devices, the movement takes longer than the data transfer, and the retrieval time varies
depending on the physical location of the next item.
The word RAM is mostly associated with volatile types of memory (such as DRAM
memory modules), where the information is lost after the power is switched off.
However, many other types of memory are RAM as well (i.e. Random Access Memory),
including most types of ROM and a kind of flash memory called NOR-Flash.
A USB flash drive. The chip on the left is the flash memory. The microcontroller is on
the right.
Flash memory is non-volatile computer memory that can be electrically erased and
reprogrammed. It is a technology that is primarily used in memory cards and USB flash
drives (thumb drives, handy drive, memory stick, flash stick, jump drive) for general
storage and transfer of data between computers and other digital products. It is a specific
type of EEPROM (Electrically Erasable Programmable Read-Only Memory) that is
erased and programmed in large blocks; in early flash the entire chip had to be erased at
once. Flash memory costs far less than byte-programmable EEPROM and therefore has
become the dominant technology wherever a significant amount of non-volatile, solid-
state storage is needed. Examples of applications include PDAs (personal digital
assistants) and laptop computers, digital audio players, digital cameras and mobile
phones. It has also gained popularity in the game console market, where it is often used
instead of EEPROMs or battery-powered SRAM for game save data.
Flash memory is non-volatile, which means that it does not need power to maintain the
information stored in the chip. In addition, flash memory offers fast read access times
(although not as fast as volatile DRAM memory used for main memory in PCs) and
better kinetic shock resistance than hard disks. These characteristics explain the
popularity of flash memory in portable devices. Another feature of flash memory is that
when packaged in a "memory card", it is enormously durable, being able to withstand
intense pressure, extremes of temperature, and immersion in water.
Although technically a type of EEPROM, the term "EEPROM" is generally used to refer
specifically to non-flash EEPROM which is erasable in small blocks, typically bytes.
Because erase cycles are slow, the large block sizes used in flash memory erasing give it
a significant speed advantage over old-style EEPROM when writing large amounts of
data.
Integrating the memory and other peripherals on a single chip and testing them as a unit
increases the cost of that chip, but often results in decreased net cost of the embedded
system as a whole. Even if the cost of a CPU that has integrated peripherals is slightly
more than the cost of a CPU + external peripherals, having fewer chips typically allows a
smaller and cheaper circuit board, and reduces the labor required to assemble and test the
circuit board.
central processing unit - ranging from small and simple 4-bit processors to complex 32-
or 64-bit processors
discrete input and output bits, allowing control or detection of the logic state of an
individual package pin
other serial communications interfaces like I²C, Serial Peripheral Interface and Controller
Area Network for system interconnect
ROM, EPROM, [EEPROM] or Flash memory for program and operating parameter
storage
clock generator - often an oscillator for a quartz timing crystal, resonator or RC circuit
This integration drastically reduces the number of chips and the amount of wiring and
PCB space that would be needed to produce equivalent systems using separate chips.
Furthermore, and on low pin count devices in particular, each pin may interface to several
internal peripherals, with the pin function selected by software. This allows a part to be
used in a wider variety of applications than if pins had dedicated functions.
Microcontrollers have proved to be highly popular in embedded systems since their
introduction in the 1970s.
About 55% of all CPUs sold in the world are 8-bit microcontrollers. Over 2 billion 8-bit
microcontrollers were sold in 1997. [1]
Another 10% are of all CPUs sold in the world are more specialized digital signal
processors (DSPs). [2]
Microcontrollers take the largest share of sales in the wider microprocessor market. Over
50% are "simple" controllers, and another 20% are more specialized digital signal
processors (DSPs)[citation needed]. A typical home in a developed country is likely to have only
one or two general-purpose microprocessors but somewhere between one and two dozen
microcontrollers. A typical mid range automobile has as many as 50 or more
microcontrollers. They can also be found in almost any electrical device: washing
machines, microwave ovens, telephones etc.
An economical option for intermediate levels of production (usually a few score to a few
thousand parts) is a one-time programmable (OTP) microcontroller. This uses the same
die as the UV EPROM version of the part, and is programmed on the same equipment,
but the package does not include the expensive quartz window required to admit UV light
on to the chip.
Other versions may be available where the ROM is accessed as an external device rather
than as internal memory. A simple EPROM programmer, rather than a more complex and
expensive microcontroller programmer, may then be used, however there is a potential
loss of functionality through pin outs being tied up with external memory addressing
rather than for general input/output. These kind of devices usually carry a higher cost but
if the target production quantities are small, certainly in the case of a hobbyist, they can
be the most economical option compared with the set up charges involved in mask
programmed devices.
A more rarely encountered development microcontroller is the "piggy back" version. This
device has no internal ROM memory; instead pin outs on the top of the microcontroller
form a socket into which a standard EPROM program memory device may be installed.
The benefit of this approach is the release of microcontroller pins for input and output use
rather than program memory. These kinds of devices are normally expensive and are
impractical for anything but the development phase of a project or very small production
quantities.
Where a large number of systems will be made (say, several thousand), the cost of a
mask-programmed memory is amortized over all products sold. A simpler integrated
circuit process is used, and the contents of the read-only memory are set in the last step of
chip manufacture instead of after assembly and test. However, mask-programmed parts
cannot be updated in the field. If product firmware updates are still contemplated, a
socket may be used to hold the controller which can then be replaced by a service
technician, if required.
Interpreter firmware is also available for some microcontrollers. The Intel 8052 and Zilog
Z8 were available with BASIC very early on, and BASIC is more recently used in the
BASIC Stamp MCUs.
When an electronic device causes an interrupt, the intermediate results, the registers, have
to be saved before the software responsible for handling the interrupt can run, and then
must be put back after it is finished. If there are more registers, this saving and restoring
process takes more time, increasing the latency.
Low-latency MCUs generally have relatively few registers in their central processing
units, or they have "shadow registers", a duplicate register set that is only used by the
interrupt software.
2.6 History
• AMCC
• ALTERA
• FREESCALE SEMICONDUCTOR
• INTEL
AMCC
Until May 2004, these µCs were developed and marketed by IBM, whose 4xx family was
sold to Applied Micro Circuits Corporation.
Altera
Freescale Semiconductor
Until 2004, these µCs were developed and marketed by Motorola, whose semiconductor
division was spun-off to establish Freescale.
8-bit
16-bit
32-bit
Intel
8-bit
MCS-48 (8048 family – also incl. 8035, 8038, 8039, 8040, 8X42, 8X49, 8050; X=0 or 7)
8xC251
16-bit
Microchip Technology
PIC16F84
For almost every manufacturer of bare microcontrollers, there are various companies
repacking its products into more hobbyist-friendly packages. Their product is often an
MCU preloaded with a BASIC or similar interpreter, soldered onto a board with the same
footprint as a Dual Inline Pin package for convenient prototyping, and possibly a few
external components such as a power regulator and clock source. PICmicros seem to be
very popular here, possibly due to good static protection. More powerful examples (e.g.
faster execution, more RAM and code space) are based on Atmel AVR or Hitachi chips
and now ARM.
7.1 Arduino
Parallax produce the BASIC Stamp. These are Microchip PIC microcontrollers
programmed with an interpreter that processes a program stored in an external EEPROM.
Several different modules are available of varying processing speeds, RAM, and
EEPROM sizes. The BASIC Stamp is used by Parallax as a platform for introductory
programming and robotic kits.
7.3 PICAXE
This PICAXE range of controllers from Revolution Education Limited [1] are also based
upon Microchip PICs and programmed with a BASIC interpreter. Using internal
EEPROM or Flash to store the user's program, they deliver a single-chip solution and are
quite inexpensive. A PICAXE programmer is simply a serial plug plus two resistors, and
complete development software, comprehensive documentation and application notes are
all available free of charge.
The 5.0.X versions of the Visual IDE (the Programming Editor) introduced 'enhanced
compilers' that support block-structured programming constructs plus conditional
compilation and other directives.
Initially targeted at the UK educational sector, use of the PICAXE has spread to
hobbyists and semi-professionals, and it can also be found inside some commercial
products.
CONCLUSION
Conclusion
WBANs promise inexpensive, unobtrusive, and unsupervised ambulatory monitoring during
normal daily activities for prolonged periods of time. To make this technology ubiquitous and
affordable, a number of challenging issues should be resolved, such as system design,
configuration and customization, seamless integration, standardization, further utilization of
common off-the-shelf components, security and privacy, and social issues.