Microprocessor_4th_2020_01_17_1579268823
Microprocessor_4th_2020_01_17_1579268823
Program Counter
This is the first type of special purpose register and considers that the
instruction is being performed by the microprocessor. When the ALU
completed performing the instruction, then the microprocessor searches for
other instruction to be performed. Thus, there will be a requirement of holding
the next instruction address to be performed in order to conserve time.
Microprocessor increases the program when an instruction is being
performed, therefore that the program counter position to the next instruction
memory address is going to be performed…
Interrupts
Mainly in the microprocessor based system the interrupts are used for data
transfer between the peripheral and the microprocessor.
The processor will check the interrupts always at the 2nd T-state of last
machine cycle.
If there is any interrupt it accept the interrupt and send the INTA (active low)
signal to the peripheral.
The vectored address of particular interrupt is stored in program counter.
The processor executes an interrupt service routine (ISR) addressed in
program counter.
It returned to main program by RET instruction.
Types of Interrupts:
Hardware
Software
1 Software interrupts:
2 Hardware interrupts:
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
TRAP:
RST 7.5:
1.DI instruction
Enabled by EI instruction.
RST 6.5 and 5.5:
The RST 6.5 and RST 5.5 both are level triggered. . ie. Input goes to high and
stay high until it recognized.
Maskable interrupt. It is disabled by,
Enabled by EI instruction.
The RST 6.5 has the third priority whereas RST 5.5 has the fourth priority.
INTR:
INTR is a maskable interrupt. It is disabled by,
Enabled by EI instruction.
Non- vectored interrupt. After receiving INTA (active low) signal, it has to
supply the address of ISR.
It has lowest priority.
It is a level sensitive interrupts. ie. Input goes to high and it is necessary to
maintain high state until it recognized.
The following sequence of events occurs when INTR signal goes high.
1. The 8085 checks the status of INTR signal during execution of each instruction.
2. If INTR signal is high, then 8085 complete its current instruction and sends
active low interrupt acknowledge signal, if the interrupt is enabled.
4. On receiving the instruction, the 8085 save the address of next instruction on
stack and execute received instruction.
SIM and RIM for interrupts:
The 8085 provide additional masking facility for RST 7.5, RST 6.5 and RST
5.5 using SIM instruction.
The status of these interrupts can be read by executing RIM instruction.
The masking or unmasking of RST 7.5, RST 6.5 and RST 5.5 interrupts can
be performed by moving an 8-bit data to accumulator and then executing
SIM instruction.
The status of pending interrupts can be read from accumulator after executing
RIM instruction.
When RIM instruction is executed an 8-bit data is loaded in accumulator,
which can be interpreted as shown in fig.