Unit 4 - Microcontroller & Embedded System - WWW - Rgpvnotes.in
Unit 4 - Microcontroller & Embedded System - WWW - Rgpvnotes.in
Tech
Subject Name: Microcontroller & Embedded system
Subject Code: EC-604
Semester: 6th
Downloaded from www.rgpvnotes.in
In case data and code lie in the same memory block, then the architecture is referred as Von Neumann
architecture. In case data and code lie in different memory blocks, then the architecture is referred
as Harvard architecture.
Harvard Architecture:
The Harvard architecture offers separate storage and signal buses for instructions and data. This
architecture has data storage entirely contained within the CPU, and there is no access to the instruction
storage as data. Computers have separate memory areas for program instructions and data using internal
data buses, allowing simultaneous access to both instructions and data.
Programs needed to be loaded by an operator; the processor could not boot itself. In Harvard architecture,
there is no need to make the two memories share properties.
Single memory to be shared by both code and data. Separate memories for code and data.
Processor needs to fetch code in a separate clock Single clock cycle is sufficient, as separate buses
cycle and data in another clock cycle. So it requires are used to access code and data.
two clock cycles.
Higher speed, thus less time consuming. Slower in speed, thus more time-consuming.
Larger set of instructions. Easy to program Smaller set of Instructions. Difficult to program.
Many addressing modes causing complex instruction Few addressing modes, fix instruction format.
formats.
Higher clock cycles per second. Low clock cycle per second.
Control unit implements large instruction set using Each instruction is to be executed by hardware.
micro-program unit.
Slower execution, as instructions are to be read from Faster execution, as each instruction is to be
memory and decoded by the decoder unit. executed by hardware.
Processors in a System:
A processor has two essential units – Program Flow Control Unit (CU) and Execution Unit (EU)
The CU includes a fetch unit for fetching instructions from the memory. The EU has circuits that implement
the instructions pertaining to data transfer operation and data conversion from one form to another.
The EU includes the Arithmetic and Logical Unit (ALU) and also the circuits that execute instructions for a
program control task such as interrupt, or jump to another set of instructions.
A processor runs the cycles off fetch and executes the instructions in the same sequence as they are
fetched from memory.
Types of Processors:
(i) Processors can be of the following categories −
• General Purpose Processor (GPP)
• Microprocessor
• Microcontroller
• Embedded Processor
• Digital Signal Processor
• Media Processor
(ii) Application Specific System Processor (ASSP)
(iii) Application Specific Instruction Processors ((ASIPs))
(iv) GPP core(s) or ASIIP core(s) on either an Application Specific Integrated Circuit (ASIIC) or a Very Large-
Scale Integration ((VLSII)) circuit.
Microcontroller:
A microcontroller is a single--chip VLSI unit (also called microcomputer) which, although having limited
computational capabilities, possesses enhanced input/output capability and a number off on--chip
functional units. CPU, RAM, ROM, I/O Port, Timer Serial COM Port
Microcontrollers are particularly used in embedded systems for real--time control applications with on--
chip program memory and devices.