Submitted To: Submitted By: Mr. Abishek Sharma Arish Kumar Sharma 100640418019 Ece-A
Submitted To: Submitted By: Mr. Abishek Sharma Arish Kumar Sharma 100640418019 Ece-A
SYSTEMS
Cellular telephones
Engine controllers in
automobiles
Calculators
Medical equipment’s
Videogames
Timer
Interrupt
Introduction to Microprocessors
“A Microprocessor is a general purpose chip used to create multifunction
device ”
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
• Single-purpose • General-purpose
Criteria for Choosing a
Microcontroller
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
Microcontroller Architectures
Memory
0
Address Bus
Program
CPU Data Bus + Data Von Neumann
2n
Architecture
Memory
Address Bus 0
Program
CPU Fetch Bus Harvard
Address Bus 0
Architecture
Data Bus Data
Features Of 8051
The Intel 8051 is used in embedded systems has
8-bit CPU
2 timers
6 interrupt sources
•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.
IMPORTANT PINS
VCC (Pin-40): Vcc provides supply voltage to the chip. The
voltage source is +5V.
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
INTERRUPT
Interrupt is an event that causes program to change its
normal execution and branch up to specific subroutine
putting normal program on hold.
•IMMEDIATE ADDRESSING
•REGISTER ADDRESSING
•DIRECT ADDRESSING
•REGISTER INDIRECT ADDRESSING
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
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
For example -
•MOV A, @R0; Moves content of address pointed by R0 to A
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:
• 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’
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.
Ultrabook is a latest example which aims in reducing size of conventional laptops, while
efficiently managing power consumption and also improving performance
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.
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.
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, 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.
THANKS