Академический Документы
Профессиональный Документы
Культура Документы
(Microprocessors)
B.Tech Mechanical Engineering
3rd Year, 6th Semester
G D Goenka University
Sohna, Gurgaon
Mechatronics
Mechatronics is a concept of Japanese origin (1970s), originated from
Yaskawa Corporation from the combination of Mechanical and
Electronics.
It is a multidisciplinary approach to product and manufacturing
system design
Micro
Micro is a non specific term covering a wide range of electronic
devices including microprocessors, microcontrollers, DSPs and other
more customizable devices.
Each device is tailored to perform better in specific circumstances.
For example, a microcontroller may be capable of performing a task
suited to a DSP, but it will probably do so more slowly and less
efficiently.
The key component common to microprocessor, microcontroller and
DSP is the Central Processing Unit (CPU), which is the fundamental
control logic hardware that executes instructions.
Microprocessors
p are, at their core, a CPU on a chip.
The fundamental components such as the program and data memory,
parallel input/output, communication peripherals are physically
separate from the p and must be integrated separately.
p can fetch and execute instructions, perform mathematical and
logical operations, store data and request action from the peripheral
systems and nothing else.
All operations
components.
and
tasks
require
interaction
with
external
Microcontrollers
Microcontrollers integrate the CPU of a p with everything else
necessary to create a single chip computer.
They were originally known as microcomputers.
At a minimum, this requires non volatile memory for programs (such
as ROM), memory for data (such as RAM) and digital inputs and/or
outputs (usually called I/O).
Other peripherals such as serial communication modules, analog to
digital converters, timers, etc. are added.
Each microcontroller is appropriate for different applications and
markets.
Example of a Microcontroller
Examples of microcontrollers that have become household names are
rare, but devices that incorporate microcontrollers are easy to
identify.
One such device is a standard optical mouse, which optically tracks its
position as it moves across a flat surface and communicates mouse
displacement data via Universal Serial Bus (USB) portal to a personal
computer.
Example of DSP
DSPs are widely used in cell phone, digital voice recorders, HD
televisions, etc.
In cell phones, they are responsible for digitizing and compressing
sound from the mouthpiece microphone for the outgoing signal and
decompressing and converting the incoming digital data stream into
analog signals for the earpiece speaker.
Manufacturers of DSPs now routinely incorporate many of the
subsystems previously found only in microcontrollers, such as digital
I/O and analog to digital converters, in order to attractive choice in a
wide variety of applications.
Other devices
There are several types of highly configurable and flexible devices that
can be configured by designer to incorporate a CPU.
Other devices include:
1. Field Programmable Gate Array (FPGA)
A customable logic chip that contains very large number of
fundamental logic building blocks.
Since these building blocks are the same as those used to design and
construct microprocessors, microcontrollers and DSPs. FPGA can also
be configured as any of these devices, with the additional benefit of
being highly customizable at end user.
Microprocessor Systems
Systems using microprocessors basically have three parts:
1. CPU to recognize and carry out program instructions
2. Input and Output Interfaces to handle communications between
the microprocessor and the outside world
3. Memory to hold the program instruction and data
Buses
Digital signals move from one section to another through paths called
buses.
A bus is just a number of parallel conductors along which electrical
signals can be carried and are paths which can be shared by all the
chips in the system, else there would be a very large number of
connecting conductors.
Typically a bus has 16 or 32 parallel connections so that each can
carry 1 bit of data word simultaneously.
This gives faster transmission than having a serial connection in which
an entire word is sent in a sequence of bits along a single conductor.
There are three forms of buses:
1. Data Bus
2. Address Bus
3. Control Bus
p performs 4 operations:
1. Memory Read
2. Memory Write
3. I/O Read
4. I/O Write
All these operations are part of the communication process between
the p and peripheral devices. To communicate with a peripheral, the
p needs to perform the following steps:
Address Bus
It carries signals which indicate where data is to be found and so the
selection of certain memory location or I/O ports.
Each storage location within a memory or I/O peripherals has a
unique identification, so that the system is able to select a particular
instruction or data item in the memory.
When a particular address is selected by its address being placed on
the address bus, only that location is open to communications form
CPU, i.e. one location at a time.
These buses are unidirectional, bits flow in one direction from p to
the peripherals or memory location.
Data Bus
Data flow associated with the processing function of the CPU is
carried by the Data bus.
These buses are bidirectional data flow in both directions between
p and memory & peripheral devices.
It is used to transport a word to or fro from the CPU and the memory
& I/O interfaces. Each wire carries a binary signal 0 or 1.
Data bus is used to transfer the binary information.
For a 4 wire bus, word 1010 is carried by a separate wire as follows:
Word
Bus Wire
Control Bus
Signals relating to control actions are carried by the control bus.
It performs the third function of providing the timing signals apart from
carrying control signals.
These are not group of lines like the address bus or data bus, but individual
lines that provide a pulse to indicate a p operation.
p generates specific control signals for every operation it performs.
For example, to read an instruction from the memory, the p places the 16
bit address on the address bus which is decoded by an external circuit to
identify the memory location. The p then ends a pulse called Memory
Read as the control signal, which activates the memory chip and the
contents of the memory location are placed on the data bus and brought
inside the p.
Computer Languages
p recognize and operate in binary numbers
Word is defined as the number of bits the p recognizes and
processes at a time. Word length varies form 4 bits to 64 bits
Byte is defined as a group of 8 bits. Eg. A 16 bit p has a word
length equals to 2 bytes.
Nibble stands fro a group of 4 bits. A byte has 2 nibbles.
Microprocessor Architecture
p is a programmable digital device, designed with registers, flip flops
and timing elements.
p has a set of instructions, designed internally, to manipulate data
and communication with peripherals.
This process is determined by the logic design of the p, called
architecture.
p is generally referred to as the central processing unit (CPU). It is
that part of the processor system which processes the data, fetches
information from the memory, decoding them and executing them.
The constituent parts of a p are:
Registers
There are a number of registers, the number, size and type varies
from one p to another. Following the commonly used regiters:
1. Accumulator (A)
2. Status Register/Flag Register
3. Program Counter (PC)/Instruction Pointer (IP)
4. Memory Address Register
5. Instruction Register (IR)
6. General purpose Register
7. Stack Pointer (SP)
Accumulator
Here the data for the input to the ALU is temporarily stored.
CPU can access the data by providing the address of the required
memory location using address bus. The required data can then be
read using data bus.
Since only one memory location can be accessed at a time, temporary
storage is used.
It holds the result after the ALU operation.
Accumulator is involved in all data transfers associated with the
execution of arithmetic and logic operation.
Eg. In addition of two numbers
Set, i.e. 1
Reset, i.e. 0
Result is Zero
Result is Negative
Carry is generated
Overflow occurs
Interrupt is ignored
Z=0
N=0
C=0
V=0
Z=0
N=0
C=1
V=0
Memory
ROM
PROM
EPROM
EEPROM
Masked ROM
RAM
SRAM
DRAM
Flash Memory
Decoder
Encoder
Flip Flops
D Flip Flop (Latch and Clocked)