Professional Documents
Culture Documents
Memory
• Utility Lines:
Clock, I/O Lines
Power Supply Lines.
Bus structure of Microprocessor(µ.p)
Clock speed:- Determines how many instructions per
second the processor can execute.
Address bus:- The bus over which the cpu sends out
the address of the memory location is called as
Address bus. If there are N address lines then it can
directly address 2N Memory locations. It is
unidirectional bus.
Data bus:-The bus which is used to transfer the data
from cpu to memory and vice versa. The number of
data lines used in the data bus is equal to the size of
the data word .It is bidirectional bus.
Control bus :- used for sending control signals to the
memory and Input/output devices.
Arithmetic logic unit(ALU)
Operations performed by ALU
• Addition
• Subtraction
• Logical AND
• Logical OR
• Logical Exclusive OR
• Complement
• Increment/decrement by 1
• Rotate left, rotate right
Registers
• Flag Register: It indicates arithmetic
conditions such as carry bit, called status
register.
CY/CS:
• This flag bit is effected after an 8-bit addition or subtraction.
• It is used to detect errors in unsigned arithmetic operations.
AC:
• This bit is set, if there is a carry from D3 to D4 during an ADD or SUB operation.
.
P:
• It reflects the no. of 1’s in the Accumulator register only.
• If A contains an even no. of 1’s, then P=0 vice versa.
24
Classification of Interrupts
• Maskable and Non-Maskable
25
Maskable Interrupts
• Maskable interrupts are those interrupts
which can be enabled or disabled.
26
Maskable Interrupts
• List of Maskable Interrupts:
• RST 7.5
• RST 6.5
• RST 5.5
• INTR
27
Non-Maskable Interrupts
• The interrupts which are always in
enabled mode are called non-maskable
interrupts.
28
Vectored Interrupts
• List of vectored interrupts:
• RST 7.5
• RST 6.5
• RST 5.5
• TRAP
29
Vectored Interrupts
The addresses to which program control
goes:
Name Vectored Address
RST 7.5 003C H (7.5 x 0008 H)
RST 6.5 0034 H (6.5 x 0008 H)
RST 5.5 002C H (5.5 x 0008 H)
TRAP(RST4.5) 0024 H (4.5 x 0008 H)
31
Edge Triggered Interrupts
• The interrupts which are triggered at
leading or trailing edge are called edge
triggered interrupts.
32
Level Triggered Interrupts
The interrupts which are triggered at high
or low level are called level triggered
interrupts.
RST 6.5
RST 5.5
INTR
34
Priority Based Interrupts
• Priority of interrupts:
Interrupt Priority
TRAP 1
RST 7.5 2
RST 6.5 3
RST 5.5 4
INTR 5
35
Instruction Format
• Instruction word size