Microcomputer Architecture PDF
Microcomputer Architecture PDF
Microcomputer Architecture PDF
Microcomputer architecture
2.1 Embedded system architecture
Harvard Architecture
Physically separate storage and signal pathways for instructions
and data.
DATA INSTRUCTION
MEMORY MEMORY
Control
IN
ALU CONTROL
OUT
Status CLOCK
MEMORY
INPUT OUTPUT
* keyboard
Address Bus Data Bus
* monitor
* mouse
* printer
* scanner
* LEDs
* A/D PROCESSING UNIT * D/A
* serial
* disk
* disk ALU
Registers
Clock
Program Counter
Control
Logic Instruction Register
Instructions
and Data
Processing
Unit (CPU)
Input / Output
ALU
• Arithmetic operations: add, subtract.
• Logical operations: and, xor, bit.
• Sets condition codes.
• The word length of a computer is the number of bits processed
by the ALU.
Sixteen 16-bit registers
• R0 (PC) – Program Counter
⋄ always points to the next instruction to be fetched.
⋄ each instruction occupies an even number of bytes → the
least significant bit (LSB) of the PC register is always zero.
⋄ after fetch of an instruction, the PC register is incremented
by 2, 4, or 6 to point to the next instruction.
15 9 8 7 6 5 4 3 2 1 0
OSC CPU
Reserved V SCG1 SCG0 GIE N Z C
OFF OFF
rw-0
Flash (ROM)
(0x0000 – 0xFFFF).
• Flash/ROM - Used for both code/data, In-
terrupt vectors (upper 16 words).
• RAM - Volatile storage.
• Peripherals: 0x0100 – 0x01FF 16-bit pe-
ripherals, 0x0010 – 0x00FF 8-bit peripher-
als, Special Function Registers (lower 16
RAM
bytes).
I/O
0x0000
Flash (ROM)
computer.
• External devices attached to a computer
are called peripherals.
• Lower 512 (0x0000 – 0x01FF) of address
space.
RAM
I/O
0x0000