Module 3 : Programmable Logic Devices (PLDs)

Lecture 2 : Introduction to microprocessor programming

3.2 Accumulator

The accumulator is an 8-bit register (can store 8 bit data) that is a part of arithmetic/logic unit (ALU). In general after performing logical or arithmetical operations, result is stored in accumulator. Accumulator is also identified as Register A.

3.3 Flags

ALU of 8085 have five flip flops whose states (set/reset) are determined by the result data of other registers and accumulator. They are called as Zero, Carry, Sign, Parity and Auxiliary-Carry flags.

 

Figure 3.2.2 shows a 8-bit flag register, adjacent to the accumulator. It is not used as a register. Out of eight bit-positions, five positions are used to store the outputs of five flip-flops. These flags play an important role in decision-making process of the microprocessor.

3.4 Instruction Register/Decoder

Before execution of an instruction, it is sent to the Instruction Register. Instruction register stores current instruction of any program. Decoder takes the instruction from memory, decodes it and then passes it to the next stage.

3.5 Memory Address Register

Memory Address Register (MAR) holds the address of next instruction to be executed.

3.6 Control Generator

In microprocessor, the Control Generator generates a signal that executes the operations in accordance to the decoded instructions. In fact it creates a signal (information) which have details about connections between different blocks of the microprocessor so that data reaches to the respective place.

3.7 Register Selector

Register selector is basically a logical controller which directs switching between different registers of microprocessor.

3.8 General Purpose Registers

Microprocessor has few extra registers which can be used to store additional data during a program.