MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICROPROCESSOR BASICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
During the decode cycle of an instruction, the PC
A
stays unaltered
B
is incremented
C
is decremented
D
can’t determine beforehand
Explanation: 

Detailed explanation-1: -Decode stage The decoding process allows the CPU to determine what instruction is to be performed so that the CPU can tell how many operands it needs to fetch in order to perform the instruction. The opcode fetched from the memory is decoded for the next steps and moved to the appropriate registers.

Detailed explanation-2: -The fetch-execute cycle (also known as fetch-decode-execute cycle) is followed by a processor to process an instruction . The cycle consists of several stages. The memory address held in the program counter is copied into the MAR . The address in the program counter is then incremented-increased-by one.

Detailed explanation-3: -Decode: this is the step where the CPU determines what the statement is telling it to do.

Detailed explanation-4: -The CPU fetches the instructions one at a time from the main memory into the registers. One register is the program counter (pc). The pc holds the memory address of the next instruction to be fetched from main memory. The CPU decodes the instruction.

There is 1 question to complete.