Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

How many bits of address can a register PC hold?

Answer»

Register PC can hold 16- bit of address number.

2.

What are directives?

Answer»

Assembly language instructions like ADD and MOV are statements called directives.

3.

How much “PAL register PC” can hold code address?

Answer»

Practice Assembly Language (PAL) Register can hold code address from 0000H to FFFFH (64K).

4.

Which sign is used as the mnemonic for immediate data?

Answer»

The mnemonic for immediate data is hash (#).

5.

Write the mnemonic for the operation “load the decimal value 66 into R3”.

Answer»

The mnemonic for loading decimal value 66 into R3 is MOV R3, #66.

6.

What is an Operational code (op code)?

Answer»

Operational code (op code) is the short form of expressing the instruction. It consists of mnemonic and operands.

7.

What is meaning of MOV DPTR, #1246H?

Answer»

The meaning of MOV DPTR, #1246H is to load 16 bit number (1246H) immediately into register DPTR.

8.

What is meaning of MOV A, #22H?

Answer»

The meaning of MOV A, #22H is to load value 22H into accumulator A.

9.

What is the meaning of MOV R5, A?

Answer»

Copy the contents of register A(Accomulator) to Register 5.

10.

What is meaning of MOV A, @R1?

Answer»

The meaning of MOV A, @R1 is to copy the contents of RAM location whose address is stored in R1 into accumulator A.

11.

What is the meaning of MOV A, R0?

Answer»

The content of R0 is moved (copied) to register A (accumulator).

12.

Compare a microprocessor with a microcontroller.

Answer»
MicroprocessorMicrocontroller
μP have many operational codes for moving data and performing operations, but it has only few bit-handling instructions.μC have one or two operational codes for moving data from and performing operations, but it has many bit- handling instructions.
μP is concerned with rapid movement of code and data from external addresses to the chip.μC is concerned with rapid movement of bits within the chip.
μP need external digital parts (Hardware) to perform its tasks as computer.μC can function as computer without addition of external digital parts.
μP are used in general purpose computing devices, supports wide range of applications with general hardware.μC are used in embedded systems and supports only dedicated applications with customized hardware.
13.

What is the main feature of MOV opcode? Give an example.

Answer»

MOV opcode transfers data within the 8051 memory. MOV A, R1; MOV R0,22H; MOV A, #54H; MOV R2, #40.

14.

Mention the features of 8051.

Answer»

1. Eight-bit CPU with registers A (Accumulator) and B.
2. Sixteen-bit program counter (PC) and data pointer(DPTR)
3. Eight-bit program status word (PSW)
4. Eight-bit stack pointer(SP)
5. Internal ROM or EPROM (8751) of 4k bytes
6. Internal RAM of 128 bytes :

(a) Four register banks, each containing eight registers

(b) Sixteen bytes, which may be addressed at the bit level

(c) Eight bytes of general purpose registers

7. Four 8-bit I/O ports (P0-P3)
8. Two 16-bit timer/counter TO and T1
9. Full duplex serial data receiver/ transmitter : SBUF
10. Control register: TCON, TMOD, SCON, PCON, IP and IE
11. Two external and two internal interrupt sources
12. Oscillator and clock circuits

15.

How many interrupt sources are there in microcontroller 8051?

Answer»

Microcontroller 8051 has six(6) interrupt sources.

16.

What is the function of register A?

Answer»

The register A is used to store the data temporarily and also to hold the result of arithmetic and logical instructions.

17.

What are the different parts of memory of 8051?

Answer»

The memory is divided into Internal RAM, Internal SFR, External RAM, internal and External ROM.

18.

Mention three key features,i. Max operating frequencyii. Flash programming memoryiii. No. of pins of 16F877.

Answer»

i). Operating speed:

(a) DC – 20 MHz oscillator/clock input

(b) DC – 200 ns instruction cycle

ii). Flash memory size:

(a) 100,000 write Flash endurance

(b) 1,000,000 write EEPROM endurance

(c) Flash/Data EEPROM retention: > 40 years

iii). No. of pins of 16F877: 28 pins

19.

What is the function of register R?

Answer»

Register R stores numbers temporarily.

20.

Write the instructions to move value 34H into register A and value 3FH into register B, then add them together.

Answer»

MOV A, #34h
MOV 0F0, #3Fh
ADD A, 0F0
LCALL 0003h

21.

Mention the different programs required ALPs converted into code memory bit charges.

Answer»

The different programs required ALPs converted into code memory bit charges are:

a). An operating system program, which controls the operation of the personal computer used for the entire programming process. DOS is the operating system program used by many PCs. Windows is another.

b). A word processing, often called a text editor program. Programs in assembly language mnemonics are written using the text editor and stored on a disk as files that, normally, end in the extension asm. The asm files are intended for the use of another program called the assembler programs. Any text editor that can produce an ASCII (text) file is suitable for writing assembly language, asm files.

c). An assembler program, which takes the. asm assembly language program file and converts it to a machine code, obj file. The assembler converts the ASCII mnemonic text file into an. obj file that contains machine code instructions to the CPU, in binary form.

d). A testing program, which lets you run and test your program under controlled conditions. Testing your program is the most important step of the programming process. To be able to test program one must be able to execute each instruction and see the results. Utility programs that allow the user to test programs are called debuggers or simulators.

22.

What is the largest hex value that can be moved into an 8 bit register?

Answer»

FFH is the largest value that can be moved into an 8 bit register.

23.

Write a program to add two 8-bit numbers and store it in R6. The numbers are 01EH and 01CH.

Answer»

MOV A, #1Eh
ADD A, #1Ch
MOV R6, A
LCALL 0003h

24.

What is the working voltage range of PIC16F877?

Answer»

PIC microcontrollers has working voltage range of 2.0V to 5.5V.

25.

What is a PIC microcontroller?

Answer»

PIC microcontrollers are a family of microcontroller chips produced by microchip technology.

26.

What is PIC?

Answer»

PIC is Peripheral Interface Controller.

27.

How many accumulators are there in PIC microcontroller?

Answer»

PIC microcontrollers has one accumulator.

28.

Briefly explain the steps used in creating a program.

Answer»

The steps to create a program are:

(i) Program editor is used to type in the program. The editor must be able to produce ASCII file for many assembler and will have the extension “.asm” or “src”.

(ii) Assembler on receiving the file in “.asm” form converts the instructions into steps to creat a program machine code. Assembler will produce an object file “.obj” and list file “.1st”.

(iii) Linker program links one or more object files and produce an absolute object file “.abs”.

(iv) The “.abs” file is fed to object to hex converter(OH) and create an extension “.hex” and is ready to run ROM.

29.

What is data address?

Answer»

Address in memory that is used by the CPU to read or write is called data address.

30.

Expand SRAM.

Answer»

Static Random Access Memory.

31.

Why is ROM called non volatile?

Answer»

ROM is called non volatile because it does not depend on electrical power to store the numbers.

32.

Why is RAM called volatile?

Answer»

RAM is called volatile because it depends on electrical power to store the numbers, when power is OFF it loses its information.

33.

What is the need of clock circuit?

Answer»

Clock circuit generates the internal clock pulses and all the internal operations are synchronised with this pulse.

34.

What is an interrupt circuit?

Answer»

It is an electronic circuit, which breaks in the normal flow of system or routine and flow can be resumed from that point at a later time.

35.

Briefly explain Logical instructions.

Answer»

Logical operations like AND, OR, XOR, complement, rotate are performed by these instructions. One of the operand is always register A.

36.

Briefly explain arithmetic instructions.

Answer»

These instructions perform several basic arithmetic operations. After execution, the result is stored in the first operand. 8 bit addition, subtraction, multiplication, increment-decrement instructions can be performed in 8051.

Example:
ADDA, Rn
ADDA, #8 bit data
ADDC A, Direct
ADDC A, Rn
ADDC A, @Ri
ADDC A, #8 bit data
SUBB A, Rn
SUBB A, Direct
SUBB A, @Ri
SUBB A, #8 bit data
INC A
INC Rn
INC Direct
INC @Ri
DEC A
DEC Rn
DEC Direct
DEC @Ri
INC DPTR
MUL A B
DIVA B
DA A

37.

Briefly explain Arithmetic instruction.

Answer»

Various arithmetic operations are carried out in this group of instructions. ADD, SUB, INC, DEC, MUL, DIV are the basic operations used.

38.

What does 'call' instruction do?

Answer»

The call instruction temporarily changes the contents of program counter to allow another part of the program to run either conditionally or unconditionally.

39.

Briefly explain Data transfer instruction.

Answer»

In data transfer instructions, data is moved(copied) from the source to destination. Most of the instructions in this group does not affect the PSW flags. MOV, PUSH, POP and XCH are the commonly used instructions in this group.

40.

How many times data can be written in PIC16F877?

Answer»

In PIC16F877 microcontrollers 8k ROM memory in flash technology upto 105 times chip can be reprogrammed.

41.

Mention the maximum operating frequency of PIC16F877.

Answer»

Maximum operating frequency of PIC16F877 is 20MHz.

42.

Briefly explain about structure of Assembly Language.

Answer»

Assembly language is a series of lines of assembly language instructions consisting of mnemonics, one or two operands. The four fields of assembly language are: label, mnemonic, operand, comment.

43.

What is a machine language?

Answer»

Machine language is one in which information is available only in binary form.

44.

What is an assembly language?

Answer»

Assembly language fills the gap between low level machine language and high level language. It is written in instruction mnemonics.

45.

Write ALP to represent “load 15H into R2”.

Answer»

MOV R2, #15H

46.

What are the different fields present in ALP (PAL – Practice Assembly language)?

Answer»

PAL contains three internal registers:

Register A: Performs all operations in the CPU. 

Register B: Stores numbers temporarily.

Register PC: Holds the address of the next instruction to be executed in code memory. 

Register A and R can hold 8 bits of binary data and register PC can hold a 16-bit address number. PAL is called an 8-bit computer because the working registers A and R can hold a 1-byte number. PAL register PC limits the number of code byte addresses to 64k because it can hold code address from address 0000H to address FFFFH.

47.

Write the description of ALP ADDA, R2.

Answer»

The content of register R2 is added with the content of accumulator and the the sum is stored in the accumulator.

48.

What is an addressing mode? Why is it necessary?

Answer»

The CPU can store data may be in registers, memory or in an external source. The ways by which these data source address are specified are called addressing modes. These are necessary because, the data can be accessed using any one of the modes.

49.

What is the use of direct addressing mode?

Answer»

In direct addressing mode 128 bytes of internal RAM and SFRs may be addressed directly using single byte address assigned to each RAM location and each SFR.

50.

Mention the different types of addressing modes.

Answer»

There are four addressing modes in 8051

(i) Immediate addressing mode

(ii) Register addressing mode

(iii) Direct addressing mode

(iv) Indirect addressing mode

Previous Next