2. âSpecial purpose system which are either used as standalone or part of a
big systemâÂ
An Embedded System is one that has computer hardware with software
embedded in it as one of its important components.
An embedded product uses a microprocessor (or microcontroller) to do
one task and one task only.
A printer is an example of embedded system since the processor inside
it
performs only one task; namely, getting the data and printing it
3. īHousehold appliances
īIntegrated systems in aircrafts
and missiles
īCellular telephones
īElectric and Electronic Motor
controllers
īEngine controllers in
automobiles
īCalculators
īMedical equipmentâs
īVideogames
īDigital musical instruments
WHERE ARE THEY PRESENT
?
4. ī CPU: Central Processing Unit
ī I/O: Input /Output
ī Bus: Address bus & Data bus
ī Memory: RAM & ROM
ī Timer
ī Interrupt
5. âA Microprocessor is a general purpose chip used to create multifunction
device â
īNo RAM, ROM, I/O ports on CPU chip itself
īCPU is stand-alone, Must add RAM, ROM, I/O ports, and timers
externally to make them functional
īDesigner can decide on the amount of ROM, RAM and I/O ports
īExample īŧ Intelâs x86, Motorolaâs 680x0
6. âA Microcontroller is a computer-on-a-chip optimized to control Electronic
devicesâ
īCPU + I/O + Timer(s) [+ ROM] [+ RAM] ī All on single chip
īLimited RAM space, ROM space and I/O pins
īLow chip-count to implement a small system
īLow-cost at large quantities
īDevelopment tools readily available at reasonable cost
7.
8. Microprocessor
īŊ CPU is stand-alone, RAM, ROM, I/O, timer
are separate
âĸ Designer can decide the amount of ROM,
RAM and I/O ports
âĸ Expansive
īŊ Versatility
âĸ General-purpose
Microcontroller
âĸ CPU, RAM, ROM, I/O and
timer are all on a single chip
īŊ Fix amount of on-chip ROM,
RAM, I/O ports
īŊ For applications in which cost,
power and space are critical
īŊ Not Expansive
īŊ Single-purpose
9. Following must be kept in mind while choosing a
microcontroller
ī Speed
ī Packaging
ī Power consumption
ī The amount of RAM and ROM on chip
ī The number of I/O pins and the timer on chip
ī How easy to upgrade to higher performance or lower power-
consumption versions
ī Cost per unit
10. CPU
Program
+ Data
Address Bus
Data Bus
Memory
Von Neumann
Architecture
CPU
Program
Address Bus
Data Bus
Harvard
Architecture
Memory
Data
Address Bus
Fetch Bus
0
0
0
2n
11. The Intel 8051 is used in embedded systems
has
ī8-bit CPU
ī4k bytes ROM for the program
ī128 BYTES of RAM for variables
ī32 I/O lines ( 4 PORTS WITH 8 EACH )
ī2 timers
ī6 interrupt sources
īLow cost per chip
13. 8051 microcontroller has four I/O ports P0, P1, P2 and P3 each use 8 pins making
them 8 bit ports. All the ports can be used as either input or output
īŊPort 0: Port 0 occupies a total of 8 pins (pins 32-39) .It can be used for input or
output. To use the pins of port 0 as both input and output ports, each pin must be
connected externally to a 10K ohm pull-up resistor.
īŊPort 1: Port 1 occupies a total of 8 pins (pins 1-8). It can be used as input or
output. In contrast to port 0, this port does not need any pull-up resistors since it
already has pull-up resistors internally.
īŊPort 2 : Port 2 occupies a total of 8 pins (pins 21- 28). It can be used as input or
output. Just like P1, P2 does not need any pull-up resistors since it already has
pull-up resistors internally.
īŊPort 3 : Port 3 occupies a total of 8 pins (pins 10 -17). It can be used as input or
output. P3 does not need any pull-up resistors, the same as P1 and P2 did not.
Port 3 has the additional function of providing some extremely important signals
such as interrupts, etc.
14. īVCC (Pin-40): Vcc provides supply voltage to the chip. The
voltage source is +5V.
īGND (Pin-20): It is ground pin.
īRST (Pin-9): It is reset pin. Upon applying high pulse to this
pin the micro controller will reset and terminate all activities.
īXTAL1 & XTAL2 (Pin-18,19): These 2 pins provide external
clock using a quartz crystal oscillator Crystal inputs for
internal oscillator.
īPSEN (Pin-29): Program Store Enable, the read signal for
external program memory.
15. īALE (Pin-30): Address Latch Enable, to latch address outputs
at Port0 and Port2, used for both data and address transmission.
īEA (Pin-31): External Access pin should be connected to Vcc in
order to fetch code from internal program memory and to fetch
code from external program memory EA is connected to Ground.
īInterrupts (Pin-12,13): An interrupt is an event that disturbs the
microcontroller to inform it that a device needs its service.
īTimers/Counters (Pin-14,15): They are used for counting
internal or external events.
16. TI MER 8051 is of two types
ī Timer T0 16-bit
ī Timer T1 16-bit
Features
īŊ Both Timer T0 and T1 are 16 bits wide.
īŊ When used as a âtimerâ the register is programmed
to count internal clock pulses
īŊ When used as a âcounterâ the register is
programmed to count external clock pulses
17. Interrupt is an event that causes program to change
its normal execution and branch up to specific
subroutine putting normal program on hold.
īWhenever any device needs its service, the device
notifies the microcontroller by sending it an interrupt
signal.
īUpon receiving an interrupt signal, the microcontroller
interrupts whatever it is doing and serves the device.
18. Different addressing modes in 8051 microcontroller are
âĸIMMEDIATE ADDRESSING
âĸREGISTER ADDRESSING
âĸDIRECT ADDRESSING
âĸREGISTER INDIRECT ADDRESSING
19. Immediate Addressing :
This addressing mode is named as âimmediateâ because it transfers an data
immediately to the destination operand.
For example -
īŊMOV A, #77H ; Loads 77 (hexadecimal) to A and stores in A
īŊADD A, #4DH ;Â Adds 4D (hexadecimal) to A and stores in A
īŊMOV DPTR, #1234H ; Moves 1234 (hexadecimal) to data pointer
The â#â symbol before 77H indicates that operand is a data (8 bit). If â#â is not present
then the hexadecimal number would be taken as address
Register Addressing :
Used while moving data between two registers.
Moving data between two Rn registers is not allowed.
For example-
īŊADD A, R0 ;Adds content of R0 to A and stores in A
īŊMOV A, R1 ;Copy contents of R1 into A
20. Direct Addressing :
There are 128 bytes of RAM in 8051 and have been assigned addresses 00
to 7FH. Entire 128 bytes of RAM can be accessed by using direct addressing
mode.
For example -
īŊMOV R0, 088H; Save the contents of RAM location 88h to R0
Register Indirect Addressing :
An address is considered to be the address of an address, rather than the
address of a value.
For example -
īŊMOV A, @R0; Moves content of address pointed by R0 to A
Value inside R0 is considered as an address, which holds the data to be
transferred to Accumulator.
21. Embedded systems are more than part of human life. For instance, one cannot imagine life without
mobile phones for personal communication. Its presence is virtually unavoidable in almost all facets of
human endeavor.
We can clearly identify the trend as to where the future of embedded systems is heading.
Conventionally, chip manufacturers developed faster single core processors to meet the ever increasing
performance requirements but soon they realized that increasing frequency, though offered certain
benefits had drawbacks too such as:
âĸÂ Â Â It drove to higher power consumption
âĸÂ Â Â Overall cost increased as the peripherals surrounding also needed to operate at matching
speed, which was truly not practical in all cases, there by driving the costs.
So semiconductor manufacturers recognized that the way forward is to build processors that run at
lower frequency and voltages but include parallel cores onto single chip. The overall performance
increases because multicores can perform more than one task at given point of time, so today most of
our devices such as smartphones, are indeed getting 'smarterâ and âsmallerâ
22. Embedded operating systems
Traditionally embedded systems did away with an operating system (OS), it had lightweight
control program/monitor to offer limited I/O and memory services, however, as the systems
became complex, it was inevitable to have OS which offered low latency real-time response.
Most of the new designs today are moving away from proprietary OS and tool chains and are
more and more opting for open source platforms both of development and deployment as the
key market differentiator for them is cost.
Royalty free licensing deployment is the key for reducing the end user costs so OS like Linux
embedded and new OS such as Android are making inroads into places where traditionally
Windows CE/Vx works etc., used to play. Today many new handhelds and smart phones are
embracing Android.
Convergence embedded systems and applications
The retail segment is one of the fastest growing segments in emerging markets and the trend in
retail markets is moving towards improving the user experience, which is most certainly setting
trend towards increased performance, connectivity and rich graphics, while reducing power
consumption and size of the device.
Ultrabook is a latest example which aims in reducing size of conventional laptops, while
efficiently managing power consumption and also improving performance
23. Healthcare
Electronic medical devices and other technological innovations with the convergence of biotech,
nanotech, manufacturing tech making breathtaking transformations in healthcare delivery and
creating new health care paradigms.
The fastest growing markets within medical for semiconductors are home monitoring and
diagnostic device ECG, pulse rate, temperature, oxygen, blood pressure etc.
Embedded digital security and surveillance
In the ever increasing interconnected world, Digital embedded security is no more an option but
a necessity as it is very critical for more transactions happening over embedded devices as front
ends.
Digital security and surveillance is currently in the host of new applications in the embedded
arena which is benefiting from multicore phenomenon.
The applications based on computer vision and tracking offers multiple benefits in capturing, post
processing and identification and alerting of security video in real time.
Telecommunications
If ever there is an industry that has reaped the benefits to Embedded Technology, for sure, it is
only Telecommunications. The Telecom industry utilizes numerous embedded systems from
telephone switches for the network to mobile phones at the end-user.
24. Automotive
With drive across the world to improve on emission controls and bring in efficiency in
usage of fossil fuels, the automotive segment is challenged by various factors and
embedded systems are clearly the ways and means of achieving multiple objectives in
this segment taking it from infotainment systems, engine control unit, Car-area-network,
fuel management, safety systems all need embedded to be in it.
Entertainment
While we have seen mobiles, handhelds, iPods etc., have changed the landscape of the
personal entertainment in the world in the recent past, the emerging trend is adding more
intelligence in the personal entertainment, communication devices by converging the
social networks, city information, location based services into a single device.
Smart cards industry
Smart cards, though began prominently as either a debit or a credit card, are now being
introduced in personal identification and entitlement schemes at regional, national, and
international levels. Smart cards are appearing now as Citizen Cards, driversâ licenses,
and patient cards.