Unit 3 PDSP
Unit 3 PDSP
Unit 3 PDSP
BY
Mr. M. SAKTHIMOHAN
MICROPROCESSOR VS MICROCONTROLLER:
MICROCONTROLLER TYPES
What is a Microcontroller?
A microcontroller is a small, low-cost and self contained
computer-on-a-chip that can be used as an embedded
system.
Microcontroller is a compressed micro computer
manufactured to control the functions of embedded systems
in office machines, robots, home appliances, motor vehicles,
and a number of other gadgets.
A microcontroller is comprises components like – memory,
peripherals and most importantly a processor.
The basic structure of a microcontroller comprise of:-
CPU, Memory, Input/output ports, Serial Ports, Timers, ADC
(Analog to digital converter), DAC (digital to analog converter),
Interpret Control, Special Functioning Block
How are Microcontrollers Classified?
BY
Mr. M. SAKTHIMOHAN
RISC
Reduced Instruction Set Computers
• Microprocessor architecture
• Designed to perform a set of smaller
computer instructions so that it can operate
at higher speeds
CISC vs RISC
Before the RISC era
• Compilers were hard to build especially for machines with registers
• Make machine do more work than software
• Have instructions load and store directly to memory (memory-to-memory
operations)
• Software costs were rising and hardware costs were dropping
• Move as much functionality to hardware
• Magnetic core memory was used as main memory which was slow and
expensive
• Minimize assembly code
• Complex Instruction Set Computers (CISC)
• Use complex instructions “MULT”, “ADD”…
Technology was advancing
• Compilers were improving
• Simple compilers found it difficult to use more complex instructions
• Optimizing compilers rarely needed more powerful instructions
• Caches
• allowed main memory to be accessed at similar speeds to control memory
• Semiconductor memory was replacing magnetic core memory
• Reduced performance gap between control and main memory
Inception of RISC
• 1974 – John Cocke (IBM) proved that 80% of work was done using
only 20% of the instructions
• Three RISC projects
• IBM 801 machine (1974)
• Berkeley’s RISC-I and RISC-II processors (1980)
• Stanford’s MIPS processor (1981)
• 1986 – announcement of first commercial RISC chip
RISC Approach
• Use only simple instructions that can be executed within one clock
cycle
• Fewer transistors for instructions = more registers
• Pipelining
• Register-to-register operations
• Operand reuse
• Reduction of load/store
Pipelining
Sequential
IF ID O OE O
F S
IF ID O OE O
F S
Clock Cycle IF ID O OE O
F S
Pipelined
IF – Instruction Fetch
IF ID O OE O
F S ID – Instruction Decode
IF ID O OE O
Clock Cycle
F S OF – Operand Fetch
IF ID O OE O
OE – Operand Execution
F S
OS – Operation Store
Time
Pipelining
Data Dependency
IF – Instruction Fetch
IF ID O OE O
ID – Instruction Decode
F S
IF ID O OE O OF – Operand Fetch
F S
OE – Operand Execution
OS – Operation Store
IF ID O OE O
F S