Pa MCQS
Pa MCQS
a. 4
b. 8
c. 12
d. 16
Answer Explanation Related Ques
ANSWER: 4
Explanation:
No explanation is available for this question!
2) Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
a. 0.1 μs
b. 0.2 μs
c. 0.4 μs
d. 0.8 μs
Answer Explanation Related Ques
ANSWER: 0.2 μs
Explanation:
No explanation is available for this question!
4) Which operational feature of PIC allows it to reset especially when the power
supply drops the voltage below 4V?
a. Built-in Power-on-reset
b. Brown-out reset
c. Both a & b
d. None of the above
Answer Explanation Related Ques
5) Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
a. Improvement in bandwidth
b. Instruction fetching becomes possible over a single instruction cycle
c. Independent bus access provision to data memory even while accessing the program
memory
d. All of the above
Answer Explanation Related Ques
6) Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
a. Excogitation of Inputs
b. Handling of Outputs
c. Interpretation of internal timing for program execution
d. Provision of OTP for large and small production runs
a. Only C
b. C & D
c. A, B & D
d. A, B & C
Answer Explanation Related Ques
ANSWER: A, B & C
Explanation:
No explanation is available for this question!
8) Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
a. Status Register
b. Program Counter Latch (PCLATH) Register
c. Program Counter Low Byte (PCL) Register
d. File Selection Register (FSR)
Answer Explanation Related Ques
9) Which register/s is/are mandatory to get loaded at the beginning before loading
or transferring the contents to corresponding destination registers?
a. W
b. INDF
c. PCL
d. All of the above
Answer Explanation Related Ques
ANSWER: W
Explanation:
No explanation is available for this question!
10) How many RPO status bits are required for the selection of two register banks?
a. 1
b. 2
c. 8
d. 16
Answer Explanation Related Ques
ANSWER: 1
Explanation:
No explanation is available for this question!
11) Which among the below mentioned bits specify the reset status of register in
readable format and are usually utilized in sleep mode of PIC?
a. TO
b. PD
c. Both a & b
d. None of the above
Answer Explanation Related Ques
12) The RPO status register bit has the potential to determine the effective address
of______
13) Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
14) Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
a. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
b. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
c. Address byte must be written in FSR at the same time during the execution of INDF
instruction in indirect addressing mode
d. Address byte must be always written in FSR as it is independent of any instruction
in indirect addressing mode
a. Only A
b. Only B
c. Only A & B
d. A & D
Answer Explanation Related Ques
ANSWER: Only A
Explanation:
No explanation is available for this question!
15) Which among the below stated registers specify the address reachability within
7 bits of address independent of RP0 status bit register?
a. PCL
b. FSR
c. INTCON
d. All of the above
Answer Explanation Related Ques
16) Where do the contents of PCLATH get transferred in the higher location of
program counter while writing in PCL (Program Counter Latch)?
a. 11th bit
b. 12th bit
c. 13th bit
d. 14th bit
Answer Explanation Related Ques
17) Which condition/s of MCLR (master clear) pin allow to reset the PIC?
a. High
b. Low
c. Moderate
d. All of the above
Answer Explanation Related Ques
ANSWER: Low
Explanation:
No explanation is available for this question!
19) What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
a. 512 cycles
b. 1024 cycles
c. 2048 cycles
d. 4096 cycles
Answer Explanation Related Ques
20) Which kind of mode is favourable for MCLR pin for indulging in reset
operations?
a. Normal mode
b. Sleep mode
c. Power-down mode
d. Any flexible mode
Answer Explanation Related Ques
21) What is the purpose of using the start-up timers in an oscillator circuit of PIC?
ANSWER: For ensuring the inception and stabilization of an oscillator in a proper manner
Explanation:
No explanation is available for this question!
22) Which program location is allocated to the program counter by the reset
function in Power-on-Reset (POR) action modes?
a. Initial address
b. Middle address
c. Final address
d. At any address reliable for reset operations
Answer Explanation Related Ques
23) When does it become very essential to use the external RC components for the
reset circuits?
24) Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
a. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
a. A & B
b. C & D
c. A & C
d. B & D
Answer Explanation Related Ques
ANSWER: C & D
Explanation:
No explanation is available for this question!
26) What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
a. CPU resets PIC once again in BOR mode
b. BOR reset mode gets disabled
c. PIC does not remain in BOR mode until the voltage increases irrespective of stability
d. Power-up timer kills 72ms more again
Answer Explanation Related Ques
28) Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
a. RC
b. LP (Low-Power Clocking)
c. XT
d. HS (High Speed)
Answer Explanation Related Ques
a. High accuracy
b. Proficiency in time generation
c. Applicability in real-time operations
d. All of the above
Answer Explanation Related Ques
30) What is the executable frequency range of High speed (HS) clocking
method by using cystal/ ceramic/ resonator or any other external clock source?
a. 0-4 MHz
b. 5-200 KHz
c. 100kHz- 4 MHZ
d. 4-20 MHz
Answer Explanation Related Ques
31) How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
a. 4 & 8 bits
b. 8 & 16 bits
c. 11 & 12 bits
d. 12 & 16 bits
Answer Explanation Related Ques
a. 000H
b. 004H
c. 001H
d. 011H
Answer Explanation Related Ques
ANSWER: 000H
Explanation:
No explanation is available for this question!
33) When do the special address 004H get automatically loaded into the program
counter?
34) How many bits are utilized by the instruction of direct addressing mode in order
to address the register files in PIC?
a. 2
b. 5
c. 7
d. 8
Answer Explanation Related Ques
ANSWER: 7
Explanation:
No explanation is available for this question!
35) Which registers are adopted by CPU and peripheral modules so as to control
and handle the operation of device inhibited in RFS?
Related Content
https://www.careerride.com/mcq-daily/microcontrollers-applications-test-questions-set-7-565.aspx
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit I MCQs
Q.1 A computer accepts data from the user processes the data according to the
instructions given and produces the desired output result.
A. True B. False Ans: True
Q.3 A single IC which consists of ALU, control section and Register section is called
as
A.Microprocessor B. Microcontroller
C.Minicomputer D. None of the above Ans:A
Q.4 What is the name of the system which carries only the control and timing
signals
A. Address Bus B. Data Bus C. Control Bus D. System Bus Ans:C
Q.6 Interpreter translates language into machine level language and the
translation is done line by line.
A. Low B. High Ans:B
Q.8 enables the programmers to run the program step by step so that the
programmer can find out the exact location of the error.
A. Assembler B. Linker C. Loader D. Debugger Ans:D
Q.13 The process of interrupting the normal program execution to carry out a specific
task/work is referred to as .
A. Interrupt B. ISR C. Macro D. Procedure Ans:A
Q.14 Register that is used to hold the memory address of the next instruction to be
executed is
A. Program Memory B. Program Counter
C. Control Unit D. Instruction Decoder Ans:B
Q.16 The has built-in ROM,RAM, Parallel I/O, Serial I/O, counters and
clock circuit.
A. Microcontroller B. Microprocessor
C. Mainframe computers D. none of the above Ans: A
Q.26 used for control and status of the controller and peripheral functions.
A. SFRs B. GPRs C. WREG D. FSRs Ans: A
Q.27 used for data storage and scratchpad operations in the user’s
application.
A. SFRs B. GPRs C. WREG D. FSRs Ans: B
Q.29 register that stores flags- indicates the status of the operation done
by ALU.
A. Status B. SFR C.GPR D. FSR Ans:A
Q.32 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Q.39 Flag is set whenever the result of signed number operation is too large,
causing the high order bit to over flow in to sign bit.
A. Carry B. Negative C.Over Flow D. Zero Ans:C
Q. 40 After execution of ALU operations, if bit 7 of the result is 1, the flag is set
indicating result is negative.
A. Digit Carry B. Carry C. Over Flow D. Negative Ans:D
Q. 42 When using addressing, the BSR is used to select the desired bank.
A. Direct B. Indirect C. Implied D. Immediate Ans: A
Q. 43 Indirect addressing requires use of .
A. SFRs B. GPRs C. PC D. FSRs Ans: D
Q.44 Each FSR holds a bit address value that can be used to access any location
in the data memory map without banking.
A. 10 B. 11 C. 12 D. 13 Ans: C
Q.47 In addressing mode, the letter ‘F’ in the instruction means the address of
the File Register location.
A. Direct B. Indirect C. Immediate D. Register Ans:D
Q.48 The ECIO oscillator mode functions like the EC mode, except that the
OSC2 pin becomes an additional general purpose I/O pin.
A. True B. False Ans:A
Q.49 The PLL can only be enabled when the oscillator configuration bits are
programmed for HS mode.
A. True B. False Ans:A
Q.50 In the Sleep mode, the on-chip clocks and oscillator are turned off.
A. True B. False Ans:A
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit II MCQs
Q.1 When does it become possible for a bit to get accessed from bank '0' in the direct
addressing mode of PICs?
A. Only when RPO bit is set 'zero'
B. Only when RPO bit is set '1'
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.2 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to
turn on the weak internal pull-ups of port B?
A. RPO’ B. RPBU’ C. RBIF D. All of the above Ans:B
Q.3 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of 'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.4 Which digital operations are performed over the detected mismatch outputs with
an intention to generate a single output RB port change output?
A. OR B. AND C. EXOR D. NAND Ans: A
Q.5 How many clock pulses are confined by each machine cycle of Peripheral-Interface
Controllers?
A. 4 B. 8 C.12 D. 16 Ans:A
Q.6 Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
A. Carry (C) Flags B. Zero (Z) Flags
C. Digit Carry (DC) Flags D. All of the above Ans:D
Q.7 What is the execution speed of instructions in PIC especially while operating at the
maximum value of clock rate?
A. 0.1 μs B. 0.2 μs C. 0.4 μs D. 0.8 μs Ans: B
Q.8 Which operational feature of PIC allows it to reset especially when the power supply
drops the voltage below 4V?
A. Built-in Power-on-reset B. Brown-out reset
C. Both a & b D. None of the above Ans:B
Q.9 Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
A. Improvement in bandwidth
B. Instruction fetching becomes possible over a single instruction cycle
C. Independent bus access provision to data memory even while accessing the
program memory
D. All of the above Ans:D
Q.10 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C
B. C&D
C. A, B & D
D. A, B & C Ans:D
Q.11 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT)
B. Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT)
D. All of the above Ans:C
Q. 12 Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
A. Status Register
B. Program Counter Latch (PCLATH) Register
C. Program Counter Low Byte (PCL) Register
D. File Selection Register (FSR) Ans: B
Q.13 Which register/s is/are mandatory to get loaded at the beginning before loading or
transferring the contents to corresponding destination registers?
A. W B. INDF C. PCL D. All of the above Ans: A
Q.14 How many RPO status bits are required for the selection of two register banks?
A. 1 B.2 C. 8 D. 16 Ans: A
Q.15 The RPO status register bit has the potential to determine the effective address
of
A. Direct Addressing Mode
B. Indirect Addressing Mode
C. Immediate Addressing Mode
D. Indc. Watchdog Timer (WDT) exed Addressing Mode Ans:A
Q.16 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B. Digits Carry bit (DC)
C. Both A & B D. None of the above Ans:B
Q.17 Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
A. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
B. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
C. Address byte must be written in FSR at the same time during the execution of
INDF instruction in indirect addressing mode
D. Address byte must be always written in FSR as it is independent of any
instruction in indirect addressing mode
A. Only A B. Only B C. Only A & B D. A & D Ans:A
Q.18 Which among the below stated registers specify the address reachability within 7
bits of address independent of RP0 status bit register?
A. PCL B. FSR C. INTCON D. All of the above Ans:D
Q.19 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th Bit B. 12th Bit C. 13th Bit D. 14th Bit Ans:C
Q.20 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B. Low C. Moderate D. All of the above Ans:B
Q.22 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 Cycles B. 1024 Cycles C. 2048 Cycles D.4096 Cycles Ans:B
Q.23 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode
B. Sleep mode
C. Power-down mode
D. Any flexible mode Ans:B
Q.24 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A. For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.25 Which program location is allocated to the program counter by the reset function
in Power-on-Reset (POR) action modes?
A. Initial address
B. Middle address
C. Final address
D. At any address reliable for reset operations Ans:A
Q.26 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans:B
Q. 27 Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
A. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
Q.30 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC
B. LP (Low-Power Clocking)
C. XT
D. HS (High Speed) Ans:B
Q.32 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ ceramic/ resonator or any other external clock source?
A.0-4 MHz B. 5-200 KHz C.100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.33 How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
A. 4 & 8 bits B. 8 & 16 bits C. 11 & 12 bits D. 12 & 16 bits Ans:C
Q.34 When do the special address 004H get automatically loaded into the program
counter?
A. After the execution of RESET action in program counter
B. After the execution of ‘goto Mainline ‘ instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.35 How many bits are utilized by the instruction of direct addressing mode in order to
address the register files in PIC?
A. 2 B.5 C.7 D.8 Ans:C
Q.36 Which registers are adopted by CPU and peripheral modules so as to control and
handle the operation of device inhibited in RFS?
A. General Purpose Register
B. Special Purpose Register
C. Special Function Register
D. All of the above Ans:C
Q.37 Which among the below specified registors are addressable only from bank1 of
RFS?
A. PORTA (05H)
B. PORTB (06H)
C. FSR (04H)
D. ADCON0 (07H) Ans:A
Q.38 Which register acts as an input-output control as well as data direction register for
PORTA in bank 2 of RFS?
A. INDF (80H) B. TRISB (85H) C. TRISA (85H) D. PCLATH (8A) Ans:C
Q.39 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1
B. Only Bank 2
C. Either Bank 1 or Bank 2
D. Neither Bank 1 nor Bank 2 Ans:C
Q.40 Which bit of OPTION register has a potential to decide the falling or rising edge
sensitivity for the external interrupt INT?
A. RBPU B.INTEDG C.PSA D.RTS Ans:B
Q.41 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC
B. Only Watchdog timer
C. Either RTCC or Watchdog timer
D. Neither RTCC nor Watchdog timer Ans:C
Q.42 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C.ADRES D.PCLATH Ans:B
Q.43 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B.ADIE C.RBIE D.TOIE Ans:A
Q.44 When does it become possible for a bit to get accessed from bank ‘0’ in the direct
addressing mode of PICs?
A. Only when RPO bit is set ‘zero’
B. Only when RPO bit is set ‘1’
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.45 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of ‘interrupt on change’?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.46 What is the purpose of acquiring two different bits from INTCON register for
performing any interrupt operation in PIC 16C61 / 71?
A. One for enabling & one for disabling the interrupt
B. One for enabling the interrupt & one for its occurrence detection
C. One for setting or clearing the RBIE bit
D. None of the above Ans:B
Q.47 What kind of external edge-sensitive interrupt is generated due to transition effect
at pin RBO/INT?
A. INT
B. RBO
C. INTF
D. All of the above Ans:A
Q.49 What is the purpose of setting TOIE bit in INTCON along with GIE bit?
A. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow
interrupt
B. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow
interrupt
C. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
D. None of the above Ans:A
Q.50 Which command enables the PIC to enter into the power down mode during the
operation of watchdog timer (WDT)?
A. SLEEP B. RESET C. STATUS D. CLR Ans:A
Q.51 How much delay is required to sunchronize the externalclock at TOCKI in Timer 0
of Pic16FXXX?
A. 2 cycles B. 4cycles C. 6cycles D. 8cycles Ans:A
Q.52 How much time is required for conversion per channel if PIC possesses four analog
channels, each comprising of 8 bits?
A. 10 µs B.15 µs C.20 µs D. 25µs Ans: C
Q.53 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT) B.Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT) D.All of the above
Ans:C
Q.54 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B.Digits Carry bit (DC)
C. Both a & b D.None of the above Ans:B
Q.55 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th bit B.12th bit C.13th bit D.14th bit Ans:C
Q.56 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B.Low C. Moderate D. All of the above Ans:B
Q.58 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode B.Sleep mode C.Power-down mode D.Any flexible mode Ans:B
Q.59 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 cycles B.1024 cycles C.2048 cycles D. 4096 cycles Ans:B
Q.60 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A.For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.61 Which program location is allocated to the program counter by the reset function
in Power-onReset (POR) action modes?
A. Initial address B.Middle address
C.Final address D.At any address reliable for reset operations Ans: A
Q.62 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans: B
Q.63 What output is generated by OSC2 pin in PIC oscillator comprising RC components
for sychronizing the peripherals with PIC microcontroller?
A.(1/2) x frequency of OSC1
B.(1/4) x frequency of OSC1
C.(1/8) x frequency of OSC1
D.(1/16) x frequency of OSC1 Ans: C
Q.65 What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
A.CPU resets PIC once again in BOR mode
B.BOR reset mode gets disabled
C.PIC does not remain in BOR mode until the voltage increases irrespective of
stability
D.Power-up timer kills 72ms more again
Ans: A
Q.66 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC B.LP (Low-Power Clocking) C. XT D. HS (High Speed) Ans: B
Q.68 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ceramic/ resonator or any other external clock source?
A. 0-4 MHz B. 5-200 KHz C. 100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.69 Which bits play a crucial role in specifying the details or reasons associated with
the system wake-up in WDT?
A. PD’ & TO’ B. C & Z C. DC & RPO D. All of the above Ans:A
Q.70 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B. ADIE C. RBIE D. TOIE Ans: A
Q.71 Which instruction is applicable to set any bit while performing bitwise operation
settings?
A. bcf B. bsf C. Both A & B D. None of the above Ans:B
Q.72 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
A. Provision of MPLAB specific extensions
B. Floating-point Format Support
C. Data in Program Memory
D. All of the above Ans:D
Q.73 What does the 'program idata' section of data memory contain in C-18 Compiler?
A. statically assigned/allocated initialized user variables
B. statically assigned /allocated uninitialized user variables
C. only executable instructions
D. variables as well as constants Ans:A
Q.74 Where is the result stored after an execution of increment and decrement operations over
the special - purpose registers in PIC?
A. File Register B. Working Register C. Both A & B D. None of the above Ans:C
Q.75 Which flags of status register are most likely to get affected by the single-cycle increment
and decrement instructions?
A. P Flags B. C Flags C. OV Flags D. Z Flags Ans:D
Q.76 Which command-line option of compiler exhibits the banner comprising overall number of
errors, messages, warnings and version number after an accomplishment of the
compilation process?
A. help B. verbose C. overlay D. char Ans:B
Q.77 Which among the below assertions represent the salient features of PIC in C-18 compiler?
A. Transparent read/ write access to an external memory
B. Provision of supporting an inline assembly during the necessity of an overall control
C. Integration with MPLAB IDE for source-level debugging
D. All of the above Ans:D
Q.78 Which bit plays a salient role in defining the master or slave mode in TXSTA register
especially in synchronous mode?
A. RSRC B. CSRC C. SPEN D. SYNC Ans:B
Q.79 What is the status of shift clock supply in an USART synchronous mode?
A. Master-internally, Slave-externally
B. Master-externally, Slave-internally
C. Master & Slave (both) - internally
D. Master & Slave (both) – externally Ans:A
Q.80 When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of
'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.81 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to turn
on the weak internal pull-ups of port B?
A.RPO B.RPBU’ C. RBIF D.All of the above Ans:B
Q.82 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C. ADRES D.PCLATH Ans:B
Q.83 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC B. Only Watchdog timer
C. Either RTCC or Watchdog timer D. Neither RTCC nor Watchdog timer Ans:C
Q.84 Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity
for the external interrupt INT?
A. RBPU B. INTEDG C. PSA D. RTS Ans:B
Q.85 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1 B. Only Bank 2
C. Either Bank 1 or Bank 2 D. Neither Bank 1 nor Bank 2 Ans:C
Q.86 Which register acts as an input-output control as well as data direction register for PORTA
in bank 2 of RFS?
A. INDF B. TRISB C.TRISA D.PCLATH Ans:C
Q.87 Which registers are adopted by CPU and peripheral modules so as to control and handle
the operation of device inhibited in RFS?
A. General Purpose Register B. Special Purpose Register
C. Special Function Registers D. All of the above Ans:C
Q.88 How many bits are utilized by the instruction of direct addressing mode in order to address
the register files in PIC?
A. 2 B. 5 C. 7 D. 8 Ans:C
Q.89 When do the special address 004H get automatically loaded into the program counter?
A. After the execution of RESET action in program counter
B. After the execution of 'goto Mainline ' instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.90 Which significant feature/s of crystal source contribute/s to its maximum predilection and
utility as compared to other clock sources?
A. High accuracy B. Proficiency in time generation
C. Applicability in real-time operations D. All of the above Ans:D
Q.91 Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely
unique and distinct from other microcontrollers?
A. It can reset the PIC automatically in running condition
B. It can reset the PIC even when the supply voltage increases above 4V
C. It can reset the PIC without enabling the power-up timer
D. All of the above Ans:A
Q.92 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C B. C & D C. A, B & D D. A, B & C Ans:D
Q.93 is 16 bit register used as memory pointers in indirect addressing data
memory.
A. Status B. SFR C.GPR D. FSR Ans:D
Q.94 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
MICROPROCESSOR
BCA
IV Sem
MULTIPLE CHOICE QUESTIONS
1) Which is the microprocessor comprises:
a. Register section
b. One or more ALU
c. Control unit
d. All of these
2) What is the store by register?
a. data
b. operands
c. memory
d. None of these
3) Accumulator based microprocessor example are:
a. Intel 8085
b. Motorola 6809
c. A and B
d. None of these
4) A set of register which contain are:
a. data
b. memory addresses
c. result
d. all of these
5) There are primarily two types of register:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
6) Name of typical dedicated register is:
a. PC
b. IR
c. SP
d. All of these
7) BCD stands for:
a. Binary coded decimal
b. Binary coded decoded
c. Both a & b
d. none of these
8) Which is used to store critical pieces of data during subroutines and interrupts:
a. Stack
b. Queue
c. Accumulator
d. Data register
9) The data in the stack is called:
a. Pushing data
b. Pushed
c. Pulling
d. None of these
10) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
11) The processor 80386/80486 and the Pentium processor uses _____ bits address bus:
a. 16
b. 32
c. 36
d. 64
12) Which is not the control bus signal:
a. READ
b. WRITE
c. RESET
d. None of these
13) PROM stands for:
a. Programmable read‐only memory
b. Programmable read write memory
c. Programmer read and write memory
d. None of these
14) EPROM stands for:
a. Erasable Programmable read‐only memory
b. Electrically Programmable read write memory
c. Electrically Programmable read‐only memory
d. None of these
15) Each memory location has:
a. Address
b. Contents
c. Both A and B
d. None of these
16) Which is the type of microcomputer memory:
a. Processor memory
b. Primary memory
c. Secondary memory
d. All of these
17) Secondary memory can store____:
a. Program store code
b. Compiler
c. Operating system
d. All of these
18) Secondary memory is also called____:
a. Auxiliary
b. Backup store
c. Both A and B
d. None of these
19) Customized ROMS are called:
a. Mask ROM
b. Flash ROM
c. EPROM
d. None of these
20) The RAM which is created using bipolar transistors is called:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. DDR RAM
21) Which type of RAM needs regular referred:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
22) Which RAM is created using MOS transistors:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
23) A microprocessor retries instructions from :
a. Control memory
b. Cache memory
c. Main memory
d. Virtual memory
24) The lower red curvy arrow show that CPU places the address extracted from the memory
location on the_____:
a. Address bus
b. System bus
c. Control bus
d. Data bus
25) The CPU sends out a ____ signal to indicate that valid data is available on the data bus:
a. Read
b. Write
c. Both A and B
d. None of these
26) The CPU removes the ___ signal to complete the memory write operation:
a. Read
b. Write
c. Both A and B
d. None of these
27) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
28) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
29) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
30) Eight of the register are known as:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
31) The four index register can be used for:
a. Arithmetic operation
b. Multipulation operation
c. Subtraction operation
d. All of these
32) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
33) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
34) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
35) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
36) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
37) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
38) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
39) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
40) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
41) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
42) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
43) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
44) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
45) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
46) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
47) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
48) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
49) ________ is the most important segment and it contains the actual assembly language
instruction to be executed by the microprocessor:
a. Data segment
b. Code segment
c. Stack segment
d. Extra segment
50) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
51) Which are the factor of cache memory:
a. Architecture of the microprocessor
b. Properties of the programs being executed
c. Size organization of the cache
d. All of these
52) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
53) Which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
54) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
55) Microprocessor reference that are available in the cache are called______:
a. Cache hits
b. Cache line
c. Cache memory
d. All of these
56) Microprocessor reference that are not available in the cache are called_________:
a. Cache hits
b. Cache line
c. Cache misses
d. Cache memory
57) Which causes the microprocessor to immediately terminate its present activity:
a. RESET signal
b. INTERUPT signal
c. Both
d. None of these
58) Which is responsible for all the outside world communication by the microprocessor:
a. BIU
b. PIU
c. TIU
d. LIU
59) INTR: it implies the__________ signal:
a. INTRRUPT REQUEST
b. INTRRUPT RIGHT
c. INTRRUPT RONGH
d. INTRRUPT RESET
60) Which of the following are the two main components of the CPU?
a. Control Unit and Registers
b. Registers and Main Memory
c. Control unit and ALU
d. ALU and bus
61) Different components n the motherboard of a PC unit are linked together by sets of parallel
electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Consecutives
62) The language that the computer can understand and execute is called
a. Machine language
b. Application software
c. System program
d. All of the above
63) Which of the following is used as a primary storage device?
a. Magnetic drum
b. PROM
c. Floppy disk
d. All of these
64) Which of the following memories needs refresh?
a. SRAM
b. DRAM
c. ROM
d. All of above
65) The memory which is programmed at the time it is manufactured
a. PROM
b. RAM
c. PROM
d. EPROM
66) Which of the following memory medium is not used as main memory system?
a. Magnetic core
b. Semiconductor
c. Magnetic tape
d. Both a and b
67) Registers, which are partially visible to users and used to hold conditional, are known as
a. PC
b. Memory address registers
c. General purpose register
d. Flags
68) One of the main feature that distinguish microprocessors from micro‐computers is
a. Words are usually larger in microprocessors
b. Words are shorter in microprocessors
c. Microprocessor does not contain I/O devices
d. Exactly the same as the machine cycle time
69) The first microprocessor built by the Intel Corporation was called
a. 8008
b. 8080
c. 4004
d. 8800
70) An integrated circuit is
a. A complicated circuit
b. An integrating device
c. Much costlier than a single transistor
d. Fabricated on a tiny silicon chip
71) Most important advantage of an IC is its
a. Easy replacement in case of circuit failure
b. Extremely high reliability
c. Reduced cost
d. Low powers consumption
72) Which of the following items are examples of storage devices?
a. Floppy / hard disks
b. CD‐ROMs
c. Tape devices
d. All of the above
73) The Width of a processor’s data path is measured in bits. Which of the following are common
data paths?
a. 8 bits
b. 12 bits
c. 16 bits
d. 32 bits
74) Which is the type of memory for information that does not change on your computer?
a. RAM
b. ROM
c. ERAM
d. RW / RAM
75) What type of memory is not directly addressable by the CPU and requires special softw3are
called EMS (expanded memory specification)?
a. Extended
b. Expanded
c. Base
d. Conventional
76) Before a disk can be used to store data. It must be…….
a. Formatted
b. Reformatted
c. Addressed
d. None of the above
77) Which company is the biggest player in the microprocessor industry?
a. Motorola
b. IBM
c. Intel
d. AMD
78) A typical personal computer used for business purposes would have… of RAM.
a. 4 KB
b. 16 K
c. 64 K
d. 256 K
78) The word length of a computer is measured in
a. Bytes
b. Millimeters
c. Meters
d. Bits
79) What are the three decisions making operations performed by the ALU of a computer?
a. Grater than
b. Less than
c. Equal to
d. All of the above
80) Which part of the computer is used for calculating and comparing?
a. Disk unit
b. Control unit
c. ALU
d. Modem
81) Can you tell what passes into and out from the computer via its ports?
a. Data
b. Bytes
c. Graphics
d. Pictures
82) What is the responsibility of the logical unit in the CPU of a computer?
a. To produce result
b. To compare numbers
c. To control flow of information
d. To do math’s works
83) The secondary storage devices can only store data but they cannot perform
a. Arithmetic Operation
b. Logic operation
c. Fetch operations
d. Either of the above
84) Which of the following memories allows simultaneous read and write operations?
a. ROM
b. RAM
c. EPROM
d. None of above
85) Which of the following memories has the shortest access times?
a. Cache memory
b. Magnetic bubble memory
c. Magnetic core memory
d. RAM
86) A 32 bit microprocessor has the word length equal to
a. 2 byte
b. 32 byte
c. 4 byte
d. 8 byte
87) An error in computer data is called
a. Chip
b. Bug
c. CPU
d. Storage device
88) The silicon chips used for data processing are called
a. RAM chips
b. ROM chips
c. Micro processors
d. PROM chips
89) The metal disks, which are permanently housed in, sealed and contamination free containers
are called
a. Hard disks
b. Floppy disk
c. Winchester disk
d. Flexible disk
90) A computer consists of
a. A central processing unit
b. A memory
c. Input and output unit
d. All of the above
91) The instructions for starting the computer are house on
a. Random access memory
b. CD‐Rom
c. Read only memory chip
d. All of above
92) The ALU of a computer normally contains a number of high speed storage element called
a. Semiconductor memory
b. Registers
c. Hard disks
d. Magnetic disk
93) The first digital computer built with IC chips was known as
a. IBM 7090
b. Apple – 1
c. IBM System / 360
d. VAX‐10
94) Which of the following terms is the most closely related to main memory?
a. Non volatile
b. Permanent
c. Control unit
d. Temporary
95) Which of the following is used for manufacturing chips?
a. Control bus
b. Control unit
c. Parity unit
d. Semiconductor
96) To locate a data item for storage is
a. Field
b. Feed
c. Database
d. Fetch
97) A directly accessible appointment calendar is feature of a … resident package
a. CPU
b. Memory
c. Buffer
d. ALU
98) The term gigabyte refers to
a. 1024 bytes
b. 1024 kilobytes
c. 1024 megabytes
d. 1024 gigabyte
99) A/n …. Device is any device that provides information, which is sent to the CPU
a. Input
b. Output
c. CPU
d. Memory
100) Current SIMMs have either … or … connectors (pins)
a. 9 or 32
b. 30 or 70
c. 28 or 72
d. 30 or 72
101) Which is the brain of computer:
a. ALU
b. CPU
c. MU
d. None of these
102) Which technology using the microprocessor is fabricated on a single chip:
a. POS
b. MOS
c. ALU
d. ABM
103) MOS stands for:
a. Metal oxide semiconductor
b. Memory oxide semiconductor
c. Metal oxide select
d. None of these
104) In which form CPU provide output:
a. Computer signals
b. Digital signals
c. Metal signals
d. None of these
105) The register section is related to______ of the computer:
a. Processing
b. ALU
c. Main memory
d. None of these
106) In Microprocessor one of the operands holds a special register called:
a. Calculator
b. Dedicated
c. Accumulator
d. None of these
107) Which register is a temporary storage location:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
108) PC stands for:
a. Program counter
b. Points counter
c. Paragraph counter
d. Paint counter
109) IR stands for:
a. Intel register
b. In counter register
c. Index register
d. Instruction register
110) SP stands for:
a. Status pointer
b. Stack pointer
c. a and b
d. None of these
111) The act of acquiring an instruction is referred as the____ the instruction:
a. Fetching
b. Fetch cycle
c. Both a and b
d. None of these
112) How many bit of instruction on our simple computer consist of one____:
a. 2‐bit
b. 6‐bit
c. 12‐bit
d. None of these
113) How many parts of single address computer instruction :
a. 1
b. 2
c. 3
d. 4
114) Single address computer instruction has two parts:
a. The operation code
b. The operand
c. A and B
d. None of these
115) LA stands for:
a. Load accumulator
b. Least accumulator
c. Last accumulator
d. None of these
116) Which are the flags of status register:
a. Over flow flag
b. Carry flag
c. Half carry flag
d. Zero flag
e. Interrupt flag
f. Negative flag
g. All of these
117) The carry is operand by:
a. C
b. D
c. S
d. O
118) The sign is operand by:
a. S
b. D
c. C
d. O
119) The zero is operand by:
a. Z
b. D
c. S
d. O
120) The overflow is operand by:
a. O
b. D
c. S
d. C
121) _________ Stores the instruction currently being executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
122) In which register instruction is decoded prepared and ultimately executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
123) The status register is also called the____:
a. Condition code register
b. Flag register
c. A and B
d. None of these
124) The area of memory with addresses near zero are called:
a. High memory
b. Mid memory
c. Memory
d. Low memory
125) The processor uses the stack to keep track of where the items are stored on it this by using
the:
a. Stack pointer register
b. Queue pointer register
c. Both a & b
d. None of these
126) Stack words on:
a. LILO
b. LIFO
c. FIFO
d. None of these
127) Which is the basic stack operation:
a. PUSH
b. POP
c. BOTH A and B
d. None of these
128) SP stand for:
a. Stack pointer
b. Stack pop
c. Stack push
d. None of these
129) How many bit stored by status register:
a. 1 bit
b. 4 bit
c. 6 bit
d. 8 bit
130) The 16 bit register is separated into groups of 4 bit where each groups is called:
a. BCD
b. Nibble
c. Half byte
d. None of these
131) A nibble can be represented in the from of:
a. Octal digit
b. Decimal
c. Hexadecimal
d. None of these
132) The left side of any binary number is called:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
133) MSD stands for:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
134) _____ a subsystem that transfer data between computer components inside a computer
or between computer:
a. Chip
b. Register
c. Processor
d. Bus
135) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
136) Which bus carry addresses:
a. System bus
b. Address bus
c. Control bus
d. Data bus
137) A 16 bit address bus can generate___ addresses:
a. 32767
b. 25652
c. 65536
d. none of these
138) CPU can read & write data by using :
a. Control bus
b. Data bus
c. Address bus
d. None of these
139) Which bus transfer singles from the CPU to external device and others that carry singles
from external device to the CPU:
a. Control bus
b. Data bus
c. Address bus
d. None of these
140) When memory read or I/O read are active data is to the processor :
a. Input
b. Output
c. Processor
d. None of these
141) When memory write or I/O read are active data is from the processor:
a. Input
b. Output
c. Processor
d. None of these
142) CS stands for:
a. Cable select
b. Chip select
c. Control select
d. Cable system
143) WE stands for:
a. Write enable
b. Wrote enable
c. Write envy
d. None of these
144) MAR stands for:
a. Memory address register
b. Memory address recode
c. Micro address register
d. None of these
145) MDR stands for:
a. Memory data register
b. Memory data recode
c. Micro data register
d. None of these
146) Which are the READ operation can in simple steps:
a. Address
b. Data
c. Control
d. All of these
147) DMA stands for:
a. Direct memory access
b. Direct memory allocation
c. Data memory access
d. Data memory allocation
148) The ____ place the data from a register onto the data bus:
a. CPU
b. ALU
c. Both A and B
d. None of these
149) The microcomputer system by using the ____device interface:
a. Input
b. Output
c. Both A and B
d. None of these
150) The standard I/O is also called:
a. Isolated I/O
b. Parallel I/O
c. both a and b
d. none of these
151) The external device is connected to a pin called the ______ pin on the processor chip.
a. Interrupt
b. Transfer
c. Both
d. None of these
152) Which interrupt has the highest priority?
a) INTR
b) TRAP
c) RST6.5
d) none of these
153) In 8085 name the 16 bit registers?
a) Stack pointer
b) Program counter
c) a & b
d) none of these
154) What are level Triggering interrupts?
a) INTR&TRAP
b) RST6.5&RST5.5
c) RST7.5&RST6.5
d) none of these
155) Which stack is used in 8085?
a) FIFO
b) LIFO
c) FILO
d) none of these
156) What is SIM?
a) Select Interrupt Mask
b) Sorting Interrupt Mask
c) Set Interrupt Mask.
d) none of these
157) RIM is used to check whether, ______
a) The write operation is done or not
b) The interrupt is Masked or not
c) a & b
d) none of these
158) In 8086, Example for Non maskable interrupts are
a) Trap b) RST6.5 c) INTR d) none of these
159) In 8086 microprocessor the following has the highest priority among all type interrupts.
a) NMI
b) DIV 0
c) TYPE 255
d) OVER FLOW
160) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
161) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
162) Which are the part of architecture of 8086:
a. The bus interface unit
b. The execution unit
c. Both A and B
d. None of these
163) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
164) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
165) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
166) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
167) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
168) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
169) The upper 8 bit are called______:
a. BH
b. BL
c. AH
d. CH
170) The lower 8 bit are called_______:
a. AL
b. CL
c. BL
d. DL
171) IP stand for:
a. Industry pointer
b. Instruction pointer
c. Index pointer
d. None of these
172) Which has great important in modular programming:
a. Stack segment
b. Queue segment
c. Array segment
d. All of these
173) Which register containing the 8086/8088 flag:
a. Status register
b. Stack register
c. Flag register
d. Stand register
174) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
175) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
176) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
177) The physical address of memory is :
a. 20 bit
b. 16 bit
c. 32 bit
d. 64 bit
178) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
179) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
180) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
181) PA stand for:
a. Project address
b. Physical address
c. Pin address
d. Pointer address
182) SBA stand for:
a. Segment bus address
b. Segment bit address
c. Segment base address
d. Segment byte address
183) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
184) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
185) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
186) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
187) DS stand for:
a. Default segment
b. Defect segment
c. Delete segment
d. Definition segment
188) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
189) AD stand for:
a. Address data
b. Address delete
c. Address date
d. Address deal
190) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
191) PC stand for:
a. program counter
b. project counter
c. protect counter
d. planning counter
192) AH stand for:
a. Accumulator high
b. Address high
c. Appropriate high
d. Application high
193) AL stand for:
a. Accumulator low
b. Address low
c. Appropriate low
d. Application low
194) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
195) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
196) which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
197) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
198) How many type of cache memory:
a. 1
b. 2
c. 3
d. 4
199) Which is the type of cache memory:
a. Fully associative cache
b. Direct‐mapped cache
c. Set‐associative cache
d. All of these
200) ) Which memory is used to holds the address of the data stored in the cache :
a. Associative memory
b. Case memory
c. Ordinary memory
d. None of these
PAI UNIT -2 MCQ
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Privilege”.
Answer: d
Explanation: The operating system, interrupt handlers and other system softwares can be protected
from unauthorized accesses in virtual address space of each task using the privilege mechanism.
Answer: b
Explanation: Any one of the four privilege levels may be used to execute a task. The task privilege level
at that instant is called the Current Privilege Level (CPL).
Answer: c
Explanation: Once the CPL is selected, it cannot be changed during the execution normally in a single
code segment. It can only be changed by transferring the control, using gate descriptors, to a new
segment.
4. The data segments defined in GDT (global descriptor table) and the LDT (local descriptor
table) can be accessed by a task with
a) privilege level 0
b) privilege level 1
c) privilege level 2
d) privilege level 3
View Answer
Answer: a
Explanation: A task executing at level 0, the most privileged level, can access all the data segments
defined in GDT and the LDT of the task.
5. A task with privilege level 0, doesn’t refer to all the lower level privilege descriptors in
a) GDT (global descriptor table)
b) LDT (local descriptor table)
c) IDT (interrupt descriptor table)
d) None of the mentioned
View Answer
Answer: b
Explanation: The task with privilege level 0, refers to all the lower level privilege descriptors which apply
to all the descriptors except the LDT descriptors.
6. The selector RPL that uses a less trusted privilege than the current privilege level for further
use is known as
a) Least task privilege level
b) Descriptor privilege level
c) Effective privilege level
d) None of the mentioned
View Answer
Answer: c
Explanation: A selector RPL uses a less trusted privilege than the current privilege level for further use.
This is known as the Effective Privilege Level of the task.
Answer: c
Explanation: The effective privilege level is minimum in numeric and maximum in the privilege of RPL
and CPL.
8. The task requesting an access to a descriptor is allowed to access after checking the
a) type of descriptor
b) privilege level
c) type of descriptor and privilege level
d) corresponding segment
View Answer
Answer: c
Explanation: The task requesting an access to a descriptor is allowed to access to it and to the
corresponding segment, only after checking the type of the descriptor and privilege level(CPL, RPL, DPL).
Answer: b
Explanation: A CALL or JUMP instruction can reference only a code segment descriptor with DPL equal to
CPL of the task or a segment with a DPL of equal or greater privilege than CPL.
10. The RPL of a selector that referred to the code descriptor must have
a) less privilege than CPL
b) greater privilege than CPL
c) equal privilege than CPL
d) any privilege regarding CPL
View Answer
Answer: c
Explanation: The RPL of a selector that referred to the code descriptor must have the same privilege as
CPL.
11. The instruction that refers to only code segment descriptors with DPL equal to or less than
the task CPL is
a) CALL
b) IRET
c) ESC
d) RET and IRET
View Answer
Answer: d
Explanation: The RET and IRET instructions are to refer to only code segment descriptors with DPL equal
to or less than the task CPL.
12. When a JUMP instruction references a Task State Segment(TSS) descriptor, then DPL must
be
a) equally privileged as CPL
b) greater or equally privileged than CPL
c) less or equally privileged than CPL
d) less privileged than CPL
View Answer
Answer: c
Explanation: When a CALL or JUMP instruction references a Task State Segment(TSS) descriptor, then
DPL must be less or equally privileged than CPL.
advertisement
Answer: d
Explanation: Loading DS, ES or SS for referring to a new descriptor comes under the data segment
access.
Answer: d
Explanation: If the privilege test is negative or an improper segment is referenced then an exception 13
is generated. If the referenced segment is not present in physical memory, an exception 11 is ge
Topic – Protection
1. The mechanism to provide protection, that is accomplished with the help of read/write
privileges is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions
d) privileged operations
View Answer
Answer: a
Explanation: The restricted use of segments is accomplished with the help of read/write privileges.
2. The Local descriptor table (LDT) and Global descriptor table (GDT) are present in
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: c
Explanation: In restricted use of segments i.e. segment load check, the segment usages are restricted by
classifying the corresponding descriptors, under LDT and GDT.
3. The mechanism that is accomplished using descriptor usages limitations and rules of privilege
check is
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: b
Explanation: Restricted accesses to segment, also called, operation reference check, is accomplished
using descriptor usages limitations, and rules of privilege check.
4. The mechanism that is executed at certain privilege levels, determined by CPL (Current
Privilege Level) and I/O privilege level (IOPL) is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions or operations
d) none of the mentioned
View Answer
5. If CPL is not of the required privilege level, then the instructions that get affected is
a) IRET
b) POPF
c) IRET and POPF
d) None of the mentioned
View Answer
6. If CPL is greater than zero, then the instruction that remains unaffected is
a) IRET
b) POPF
c) IF
d) IRET and POPF
View Answer
Answer: c
Explanation: IF remains unaffected if CPL is greater than zero. No exception is generated for this
condition.
7. The condition, “CPL not equals to zero” satisfies when executing the instruction
a) LIDT
b) LGDT
c) LTR
d) All of the mentioned
View Answer
Answer: d
Explanation: The condition, “CPL not equals to zero” satisfies, when executing the instructions, LIDT,
LGDT, LTR, LMSW, CTS and HLT.
Answer: c
Explanation: The condition CPL>IOPL exists, when executing the instructions, INs, IN, OUTS, OUT, STI, CLI
and LOCK.
9. The instruction at which the exception is generated, but the processor extension registers
contain the address of failing instruction is
a) LTR
b) INS
c) CTS
d) ESC
View Answer
Answer: d
Explanation: At the ESC instruction, the exception is generated, but the processor extension registers
contain the address of failing instruction.
Answer: d
Explanation: Double exception detected, invalid task state segment, stack segment overrun, processor
extension segment overrun, are the protected mode exceptions.
This set of Advanced Microprocessors Questions and Answers focuses on “Protected Virtual
Address Mode (PVAM) -2”.
Answer: c
Explanation: The system segment descriptors are of seven types. The types 1 to 3 are called system
descriptors and the types 4 to 7 are called gate descriptors.
Answer: d
Explanation: The gate descriptors are of four types namely, call gate, task gate, interrupt gate and trap
gate.
Answer: d
Explanation: The gate descriptor contains the information regarding the destination of control transfer,
required stack manipulations, privilege level and its type.
Answer: a
Explanation: Call gates are used to alter the privilege levels.
Answer: c
Explanation: Interrupt gates and trap gates are used to specify corresponding service routines.
Answer: d
Explanation: The word count field is only used by a call gate descriptor, to indicate the number of bytes
to be transferred from the stack of the calling routine to the stack of the called routine.
8. The memory that maintains the most frequently required data for execution, in a high speed
memory is called
a) virtual memory
b) physical memory
c) cache memory
d) ROM (read only memory)
View Answer
Answer: c
Explanation: To minimize the time required for fetching the frequently required descriptor information,
from the main memory, cache memory is used in which the most frequently required data for execution
is stored.
Answer: d
Explanation: In the protected mode, the contents of the segment registers are known as selectors. The
selector field consists of three fields namely, RPL, table indicator (TI) and index.
Answer: b
Explanation: The LGDT and LLDT instructions are privileged, and may be executed only at privilege level
0.
12. The instruction that loads a selector which refers to a local descriptor table, containing the
base address and limit for LDT is
a) LGT
b) GDT
c) LGDT
d) LLDT
View Answer
Answer: d
Explanation: The LLDT instruction loads a selector, which refers to a local descriptor table, containing
the base address, and limit for LDT.
advertisement
13. The descriptor that is used to store task gates, interrupt gates and trap gates is
a) system descriptor table
b) gate descriptor table
c) interrupt descriptor table
d) none of the mentioned
View Answer
14. The number of interrupt descriptors that the interrupt descriptor table (IDT) handles is
a) 16
b) 64
c) 128
d) 256
View Answer
Answer: d
Explanation: The IDT is able to handle upto 256 interrupt descriptors.
15. The number of bytes required for an interrupt in an IDT is
a) 2
b) 4
c) 6
d) 8
View Answer
Answer: c
Explanation: Six bytes are required for each interrupt in an interrupt descriptor table.
3. The number of debug registers that are available in 80386, for hardware debugging and control is a) 2
b) 4
c) 8
d) 16
Answer: c
Explanation: The 80386 offers a set of total eight debug registers DR0-DR7, for hardware debugging and
control.
5. The 80386 enables itself to organize the available physical memory into pages, which is known as a)
segmentation
b) paging
c) memory division
d) none of the mentioned
Answer: b
Explanation: The concept of paging which is introduced in 80386, enables it to organise the available
physical memory into pages of size 4 KB each, under the segmented memory.
6. The 80386 consists of
a) on-chip address translation cache
b) instruction set of predecessors with upward compatibility
c) virtual memory space of 64TB
d) all of the mentioned
Answer: d
Explanation: The 80386 has on-chip address translation cache, and instruction set is upward compatible
with all its predecessors.
7. 80386DX is available in a grid array package of
a) 64 pin
b) 128 pin
c) 132 pin
d) 142 pin
Answer: c
Explanation: The 80386DX is available in a 132-pin grid array package.
8. The operating frequency of 80386DX is
a) 12 MHz and 20 MHz
b) 20 MHz and 33 MHz
c) 32 MHz and 12 MHz
d) all of the mentioned
Answer: b
Explanation: The operating frequency of 80386DX is 20MHz and 33 MHz.
9. The 80386 in its protected mode, in its virtual mode of operation, can run the applications of
a) 8086
b) 80286
c) 80287
d) 80387
Answer: a
Explanation: The 80386 can run the applications under protected mode, in its virtual 8086 mode of
operation.
10. The 80386 in protected mode, supports all software written for
a) 8086 and 80287
b) 80286 and 80287
c) 80287 and 80387
d) 80286 and 8086
Answer: d
Explanation: The 80386 in protected mode, supports all software written for 8086 and 80286 (to be
executed under the control of memory management and protection abilities of 80386).
13. The unit that is used for handling data, and calculate offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
14. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
15. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
16. The memory management unit consists of
a) segmentation unit
b) paging unit
c) segmentation and paging units
d) none of the mentioned
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
18. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
20. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
21. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
22. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
23. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
24. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) none of the mentioned
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
25. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
26. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
28. The 16-bit registers are available with their extended size of 32 bits, by adding the registers with a
prefix of
a) X
b) E
c) 32
d) XX
Answer: b
Explanation: A 32 bit register, known as extended register, is represented by the register name with a
prefix of E.
29. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) none of the mentioned
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
32. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) none of the mentioned
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
35. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
38. The 32-bit control register, that is used to hold global machine status, independent of the executed
task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
40. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
42. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
Answer: c
Explanation: Two test registers are provided by 80386 for page cacheing, namely test control and test
status registers.
43. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
44. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
45. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
46. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
47. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers, rather, they
are internally used to store the descriptor information.
48. Which of the following is not a scale factor of addressing modes of 80386?
a) 2
b) 4
c) 6
d) 8
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
49. Contents of an index register are multiplied by a scale factor that may be added further to get the
operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
50. Contents of an index register are multiplied by a scale factor and then added to base register to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
51. In based scaled indexed mode with displacement mode, the contents of an index register are
multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is addedto a
base register and a displacement to get the offset of an operand.
52. The following statement of ALP is an example of MOV EBX, [EDX*4] [ECX]
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
53. The following statement is an example of MOV EBX, LIST [ESI*2] MUL ECX, LIST [EBP*4] a) base
scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
54. Bit field can be defined as a group of
a) 8 bits
b) 16 bits
c) 32 bits
d) 64 bits
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
55. The maximum length of the string in a bit string of contiguous bits is
a) 2 MB
b) 4 MB
c) 2 GB
d) 4 GB
57. A 16-bit displacement that references a memory location using any of the addressing modes is
a) pointer
b) character
c) BCD
d) offset
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing modes.
59. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
61. To form a physical memory address, appropriate segment register contents are
a) shifted by left by 4 positions
b) added to 16-bit offset address
c) operated using one of addressing modes
d) all of the mentioned
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
63. The operation that can be performed on segments in 80386 real mode is
a) read
b) write
c) execute
d) all of the mentioned
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
66. If the paging unit is enabled, then it converts linear address into
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The paging unit when enabled, it converts linear address into physical address.
67. If the paging unit is disabled, then the linear address is used as
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The linear address is used as physical address if the paging unit is disabled.
70. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granulary bit
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
73. The bit that indicates whether the segment is page addressable is
a) base address
b) attribute bit
c) present bit
d) granularity bit
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
74. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
82. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by segmentation unit, into physical addresses.
83. The control register that stores the 32-bit linear address, at which the previous page fault is detected
is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
85. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
89. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
92. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
B. 64 bytes
C. 128 bytes
D.256 bytes
Answer: Option C
JNZ STAT
A.True
B. False
Answer: Option A
B. 2
C. 3
D.4
Answer: Option B
4. The address space of the 8051 is divided into four distinct areas: internal data, external data,
internal code, and external code.
A.True
B. False
Answer: Option A
5. Data transfer from I/O to external data memory can only be done with the MOVX command.
A.True
B. False
Answer: Option A
B. 4
C. 5
D.6
Answer: Option C
Explanation:
There are five interrupt sources for the 8051, which means that they can recognize 5 different events
that can interrupt regular program execution. Each interrupt can be enabled or disabled by setting
bits of the IE register. Likewise, the whole interrupt system can be disabled by clearing the EA bit of
the same register.
7. The special function registers are maintained in the next 128 locations after the general-
purpose data storage and stack.
A.True
B. False
Answer: Option A
8. This statement will set the address of the bit to 1 (8051 Micro-controller):
SETB 01H
A.True
B. False
Answer: Option B
9. MOV A, @ R1 will:
A. copy R1 to the accumulator
Answer: Option C
B.False
Answer: Option A
11. The following program will receive data from port 1, determine whether bit 2 is high, and
then send the number FFH to port 3:
READ: MOV A,P1
ANL A,#2H
CJNE A,#02H,READ
MOV P3,#FFH
A.True
B.False
Answer: Option A
12. Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
oscillator or crystal.
A.True
B.False
Answer: Option A
13. When the 8051 is reset and the line is HIGH, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option A
B. Timer 1
C. interrupt 0
D.interrupt 1
Answer: Option A
15. Both registers TL0 and TL1 are needed to start Timer 0.
A.True
B.False
Answer: Option B
16. The I/O ports that are used as address and data for external memory are:
A. ports 1 and 2
B. ports 1 and 3
C. ports 0 and 2
D.ports 0 and 3
Answer: Option C
17. The last 96 locations in the internal data memory are reserved for general-purpose data
storage and stack.
A.True
B.False
Answer: Option B
B. RAM
C. ROM
B. 3
C. 4
D.5
Answer: Option C
20. The total external data memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
21. Which of the following instructions will load the value 35H into the high byte of timer 0?
A. MOV TH0, #35H
Answer: Option A
23. The 8-bit address bus allows access to an address range of:
A. 0000 to FFFFH
B. 000 to FFFH
C. 00 to FFH
D.0 to FH
Answer: Option C
B. 11011010
C. 00001000
D.00101000
Answer: Option C
B. CS line
C. INTR line
Answer: Option A
26. This program code will be executed once:
A.True
B.False
Answer: Option B
27. Which of the following instructions will move the contents of register 3 to the accumulator?
A. MOV 3R, A
B. MOV R3, A
C. MOV A, R3
D.MOV A, 3R
Answer: Option C
28. Which of the following statements will add the accumulator and register 3?
A. ADD @R3, @A
B. ADD @A, R3
C. ADD R3, A
D.ADD A, R3
Answer: Option D
29. Data transfer from I/O to external data memory can only be done with the MOV command.
A.True
B.False
Answer: Option B
30. Which of the following commands will move the number 27H into the accumulator?
A. MOV A, P27
B. MOV A, #27H
C. MOV A, 27H
D.MOV A, @27
Answer: Option B
31. This program code will read data from port 0 and write it to port 2, and it will stop looping
when bit 3 of port 2 is set:
STAT: MOV A, PO
MOV P2,A
A.True
B.False
Answer: Option A
32. Which of the following commands will move the value at port 3 to register 2?
A. MOV P2, R3
B. MOV R3, P2
C. MOV 3P, R2
D.MOV R2, P3
Answer: Option D
B. 16
C. 32
D.64
Answer: Option C
34. When the 8051 is reset and the EA line is LOW, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option B
35. The designs of a centigrade thermometer and a PWM speed-control circuit can be
implemented by the 8051.
A.True
B.False
Answer: Option A
36. What is the difference between the 8031 and the 8051?
A. The 8031 has no interrupts.
Answer: Option B
37. The I/O port that does not have a dual-purpose role is:
A. port 0
B. port 1
C. port 2
D.port 3
Answer: Option B
38. To interface external EPROM memory for applications, it is necessary to demultiplex the
address/data lines of the 8051.
A.True
B.False
Answer: Option A
39. The following command will copy the accumulator to the location whose address is 23H:
MOV 23H,A
A.True
B.False
Answer: Option A
40. The special function registers can be referred to by their hex addresses or by their register
names.
A.True
B.False
Answer: Option A
41. The contents of the accumulator after this operation
MOV A,#2BH
ORL A,00H
will be:
A. 1B H
B. 2B H
C. 3B H
D.4B H
Answer: Option B
42. The following program will cause the 8051 to be stuck in a loop:
JNZ LOOP
A.True
B.False
Answer: Option B
43. Which of the following commands will copy the contents of RAM whose address is in
register 0 to port 1?
A. MOV @ P1, R0
B. MOV @ R0, P1
C. MOV P1, @ R0
D.MOV P1, R0
Answer: Option C
44. The statement LCALL READ passes control to the line labelled READ.
A.True
B.False
Answer: Option A
45. Which of the following commands will copy the contents of location 4H to the accumulator?
A. MOV A, 04H
B. MOV A, L4
C. MOV L4, A
D.MOV 04H, A
Answer: Option A
46. The microcontroller is useful in systems that have nonvariable programs for dedicated
applications.
A.True
B.False
Answer: Option A
47. The total amount of external code memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
B. 8-bit
C. 16-bit
D.32-bit
Answer: Option B
B. RST
C. PSEN
D.RSET
Answer: Option B
51. Which of the following instructions will move the contents of the accumulator to register 6?
A. MOV 6R, A
B. MOV R6, A
C. MOV A, 6R
D.MOV A, R6
Answer: Option B
52. The following command will rotate the 8 bits of the accumulator one position to the left:
RL A
A.True
B.False
Answer: Option A
53. An alternate function of port pin P3.0 (RXD) in the 8051 is:
A. serial port input
B. serial port output
Answer: Option A
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Arithmetic and Logic Instructions”.
1. When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
View Answer
Answer: c
Explanation: For addition purposes, the destination address must always be an accumulator.
Example- ADD A,R0; ADD A, @R1; ADD A,@ DPTR
Answer: b
Explanation: DAA command adds 6 to the nibble if any of the nibbles becomes greater than 9.
Answer: c
Explanation: When we divide two numbers then AC and CY become zero.
Answer: d
Explanation: In 8 bit operations, if a carry is generated from D6 or D7 bit, then OV flag is set to
1.
Answer: b
Explanation: If unsigned numbers operations are involved, then the status of CY flag is
important and in signed number operation the status of OV flag is important.
Answer: d
Explanation: These instructions are the arithmetic operations and the flags are affected by the
data copy instructions, so all these instructions don’t affect the bits of the flag.
8. ANL instruction is used _______
a) to AND the contents of the two registers
b) to mask the status of the bits
c) all of the mentioned
d) none of the mentioned
View Answer
Answer: c
Explanation: ANL instruction is used to AND the contents of the two registers and is also used to
mask the status of the bits of the register.
Answer: d
Explanation: In CJNE command, the pointer jumps if the values of the two registers are not
equal and it resets CY if the destination address is larger then the source address and sets CY if
the destination address is smaller then the source address.
Answer: a
Explanation: These commands have accumulator as the destination address and any register,
memory or any immediate data as the source address.
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Architecture”.
Answer: a
Explanation: It has 128 bytes of RAM in it.
Answer: a
Explanation: It has two 16 bit registers DPTR and PC.
Answer: c
Explanation: When a program wakes up, then 0x00 is loaded to the program counter register
because at this place the first op code is burnt.
5. When the microcontroller executes some arithmetic operations, then the flag bits of which
register are affected?
a) PSW
b) SP
c) DPTR
d) PC
View Answer
Answer: a
Explanation: It stands for program status word. It consists of carry, auxiliary carry, overflow,
parity, register bank select bits etc which are affected during such operations.
6. How are the status of the carry, auxiliary carry and parity flag affected if the write instruction
MOV A,#9C
ADD A,#64H
a) CY=0,AC=0,P=0
b) CY=1,AC=1,P=0
c) CY=0,AC=1,P=0
d) CY=1,AC=1,P=1
View Answer
Answer: b
Explanation: On adding 9C and 64, a carry is generated from D3 and from the D7 bit so CY and
AC are set to 1. In the result, the number of 1’s present are even so parity flag is set to zero.
7. How are the bits of the register PSW affected if we select Bank2 of 8051?
a) PSW.5=0 and PSW.4=1
b) PSW.2=0 and PSW.3=1
c) PSW.3=1 and PSW.4=1
d) PSW.3=0 and PSW.4=1
View Answer
Answer: d
Explanation: Bits of PSW register are CY, AC, F0, RS1, RS0, OV, -, P so for selecting bank2
RS1=1 and RS0=0 which are fourth and third bit of the register respectively.
Answer: a
Explanation: If we push elements onto the stack then the stack pointer increases with every push
of element.
9. On power up, the 8051 uses which RAM locations for register R0- R7
a) 00-2F
b) 00-07
c) 00-7F
d) 00-0F
View Answer
Answer: b
Explanation: On power up register bank 0 is selected which has memory address from 00H-07H.
10. How many bytes of bit addressable memory is present in 8051 based microcontrollers?
a) 8 bytes
b) 32 bytes
c) 16 bytes
d) 128 bytes
View Answer
Answer: c
Explanation: 8051 microcontrollers have 16 bytes of bit addressable memory.
Answer: a
Explanation: DJNZ R0, label has hex code, D8 and its corresponding label address. Hence, it is a
two byte instruction.
2. JZ, JNZ, DJNZ, JC, JNC instructions monitor the bits of which register?
a) DPTR
b) B
c) A
d) PSW
View Answer
Answer: d
Explanation: PSW register consists of flag bits like CY, P, Z etc so it is the one that is directly
being monitored by these instructions.
3. Calculate the jump code for again and here if code starts at 0000H
MOV R1,#0
MOV A,#0
MOV R0,#25H
AGAIN:ADD A,#0ECH
JNC HERE
HERE: INC R1
DJNZ R0,AGAIN
MOV R0,A
END
a) F3,02
b) F9,01
c) E9,01
d) E3,02
View Answer
Answer: c
Explanation: Loop address is calculated by subtracting destination address and the address next
to the source address.
So here if we start with 0000H
then source address is 0008H and the destination address is 0004H
So loop address is 04-0A=E9
4. When the call instruction is executed the topmost element of stack comes out to be
a) the address where stack pointer starts
b) the address next to the call instruction
c) address of the call instruction
d) next address of the stack pointer
View Answer
Answer: b
Explanation: The topmost element of the stack is the address of the instruction next to the call
instruction so that when RET is executed then PC is filled with that address and so the pointer
moves to the main program and continue with its routine task.
Answer: c
Explanation: LCALL instruction moves the pointer to a 16 bit address so it is a 3 byte
instruction.
Answer: b
Explanation: PUSH and POP instructions are not CALL instructions because in POP and PUSH
instructions the pointer does not move to any location specified by its address which is the
fundamental of CALL instruction, so it is not a type of CALL instruction.
7. What is the time taken by one machine cycle if crystal frequency is 20MHz?
a) 1.085 micro seconds
b) 0.60 micro seconds
c) 0.75 micro seconds
d) 1 micro seconds
View Answer
Answer: b
Explanation: Time taken by one machine cycle is calculated by the inverse of a (crystal
frequency) /12
MOV R6,#200
BACK:MOV R5,#100
HERE:DJNZ R5, HERE
DJNZ R6,BACK
END
a) 100
b) 200
c) 20000
d) 2000
View Answer
Answer: c
Explanation: It will be executed 200*100 times.
Answer: c
Explanation: If we need to store the address in the accumulator, then directly the address is
moved to it unlikely of using # used for storing data in any register.
1) BACK: DEC R0
JZ BACK
2) BACK: DJNZ RO, BACK
a) yes
b) no
c) cant be determined
d) yes and the second one is preferred
View Answer
Answer: b
Explanation: In the first statement, when the decrements approach zero then the jump moves
back and in the second statement, when the result after decrements is not zero, then it jumps
back.
Unit No.1
Answer: c
Explanation: An assembler is a software used to convert the programs into machine instructions.
Answer: a
Explanation: This OP – codes tell the system what operation to perform on the operands.
Answer: b
Explanation: The ADDI instruction, means the addition is in immediate addressing mode.
4. Instructions which won’t appear in the object program are called as _____
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives
View Answer
Answer: d
Explanation: The directives help the program in getting compiled and hence won’t be there in the
object code.
5. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum
View Answer
Answer: b
Explanation: This basically is used to replace the variable with a constant value.
Answer: a
Explanation: This does the function similar to the main statement.
7. The directive used to perform initialization before the execution of the code is ______
a) Reserve
b) Store
c) Dataword
d) EQU
View Answer
Answer: c
Explanation: None.
8. _____ directive is used to specify and assign the memory required for the block of code.
a) Allocate
b) Assign
c) Set
d) Reserve
View Answer
Answer: d
Explanation: This instruction is used to allocate a block of memory and to store the object code
of the program there.
Answer: b
Explanation: This instruction directive is used to terminate the program execution.
Answer: d
Explanation: This enables the processor to load some other process.
11. When dealing with the branching code the assembler ___________
a) Replaces the target with its address
b) Does not replace until the test condition is satisfied
c) Finds the Branch offset and replaces the Branch target with it
d) Replaces the target with the value specified by the DATAWORD directive
View Answer
Answer: c
Explanation: When the assembler comes across the branch code, it immediately finds the branch
offset and replaces it with it.
12. The assembler stores all the names and their corresponding values in ______
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the mentioned
View Answer
Answer: b
Explanation: The table where the assembler stores the variable names along with their
corresponding memory locations and values.
advertisement
14. The utility program used to bring the object code into memory for execution is ______
a) Loader
b) Fetcher
c) Extractor
d) Linker
View Answer
Answer: a
Explanation: The program is used to load the program into memory.
15. To overcome the problems of the assembler in dealing with branching code we use _____
a) Interpreter
b) Debugger
c) Op-Assembler
d) Two-pass assembler
View Answer
Answer: d
Explanation: This creates entries into the symbol table first and then creates the object code.
Answer: d
Explanation: The machine level programming is complicated.
Answer: d
Explanation: The assembly level programming is more advantageous than the machine level
programming.
Answer: c
Explanation: All the files should have the extension, .ASM.
5. The directory that is under work must have the files that are related to
a) Norton’s editor
b) Assembler
c) Linker
d) All of the mentioned
View Answer
Answer: d
Explanation: Before starting the process of entering a small program on PC, ensure that all the
files namely Norton’s editor, assembler, linker and debugger are available in the same directory
in which work is been done.
7. The extension file that is must for a file to be accepted by the LINK as a valid object file is
a) .OBJ file
b) .EXE file
c) .MASM file
d) DEBUG file
View Answer
Answer: a
Explanation: The .OBJ extension is a must for a file to be accepted by the LINK as a valid object
file.
Answer: d
Explanation: The listing file contains total offset map of source file including labels, offset
addresses, opcodes, memory allotments for different directives and labels and relocation
information.
Answer: c
Explanation: DEBUG.COM is a DOS utility that facilitates the debugging and trouble shooting.
• A. To indicate the starting position in memory, where the program block is to be stored
• B. To indicate the starting of the computation code
• C. To indicate the purpose of the code
• D. To list the locations of all the registers used
Answer: Option A
• A. Stop
• B. Return
• C. OP
• D. End
Answer: Option D
• A. .EXE files
• B. .OBJ files
• C. .EXE file and .OBJ file
• D. .EXE flie and .LST file
Answer: Option A
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
2. The unit that is disabled in real address mode is
a) central processing unit
b) memory management unit
c) paging unit
d) bus control unit
View Answer
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: d
Explanation: In protected mode, the contents of segment registers are used as selectors to address
descriptors which contain the segment limit, base address and access rights byte of the segment.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task.
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Segmentation”.
1. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granular bit
View Answer
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
Answer: c
Explanation: The type field decides the descriptor type and hence the segment type.
3. If the segment descriptor bit, S=0, then the descriptor is
a) data segment descriptor
b) code segment descriptor
c) system descriptor
d) all of the mentioned
View Answer
Answer: c
Explanation: If S=0, then system descriptor. If S=1, then code or data segment descriptor.
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
5. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
View Answer
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
Answer: d
Explanation: The segment descriptors are 8-byte quantities containing access right or attribute bits
along with the base and limit of the segments.
Answer: d
Explanation: The five types of segment descriptors of 80386 are:
1. Code or data segment descriptors
2. System descriptors
3. Local descriptors
4. TSS(task state segment) descriptors
5. Gate descriptors.
Answer: d
Explanation: The limit field of the descriptor is of 20 bits.
Answer: c
Explanation: The base address that marks the starting address of the segment in physical memory is
decided by the operating system and is of 32 bits.
Answer: d
Explanation: 80386 can handle total 16K descriptors and hence
TOPIC:– Architecture and Signal Descriptions of 80386
Answer: d
Explanation: The internal architecture of 80386 is divided into three sections namely, central processing
unit, memory management unit and bus interface unit.
Answer: c
Explanation: The central processing unit is further divided into the execution unit and instruction unit.
3. The unit that is used for handling data, and calculates offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
View Answer
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
4. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
5. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
Answer: d
Explanation: The segmentation unit allows the use of two address components. They are: segment and
offset for relocation and sharing of code and data.
8. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
View Answer
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
10. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
View Answer
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
11. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
12. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
advertisement
13. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
View Answer
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
14. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) None of the mentioned
View Answer
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
15. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
View Answer
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
16. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
View Answer
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
Answer: c
Explanation: The pip
TOPICS– Register Organisation of 80386 -1
1. The 16-bit registers are available with their extended size of 32 bits, by adding the registers
with a prefix of
a) X
b) E
c) 32
d) XX
View Answer
Answer: b
Explanation: A 32 bit register, known as an extended register, is represented by the register name with a
prefix of E.
2. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) None of the mentioned
View Answer
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
Answer: d
Explanation: The six segment registers available in 80386 are CS, SS, DS, ES, FS and GS, out of which DS,
ES, FS and GS are the four data segment registers.
Answer: d
Explanation: The 32-bit addressing modes may use all the register widths, i.e. 8, 16 or 32 bits.
5. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) None of the mentioned
View Answer
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
Answer: b
Explanation: If VM flag is set, the 80386 enters the virtual 8086 mode within the protected mode. This is
to be set only when the 80386 is in protected mode.
Answer: c
Explanation: The VM flag can be set using the IRET instruction or any task switch operation, only in the
protected mode.
8. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
View Answer
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
Answer: c
Explanation: The RF is automatically reset after the execution of every instruction, except for the IRET
and POPF instructions. Also, it is not cleared automatically after the successful execution of JMP, CALL
and INT instructions causing a task switch.
Answer: d
Explanation: The segment descriptor register is used to store the descriptor information like attributes,
limit and base addresses of se
1. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) All of the mentioned
View Answer
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
Answer: d
Explanation: The 80386 supports four types of descriptor tables. They are, GDT, IDT, LDT and TSS.
3. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
View Answer
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
Answer: b
Explanation: The LDTR and TR are known as system segment registers.
Answer: c
Explanation: Two test registers are provided by 80386 for page caching, namely test control and test
status registers.
6. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
View Answer
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
7. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
View Answer
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
9. The flag bits that indicate the privilege level of current IO operations are
a) Virtual mode flag bits
b) IOPL flag bits
c) Resume flag bits
d) None of the mentioned
View Answer
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
10. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
View Answer
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers,
rather, they are internally used to store the descriptor information
TOPIC: Addressing Modes of 80386, Data Types of 80386
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
2. Contents of an index register are multiplied by a scale factor that may be added further to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
3. Contents of an index register are multiplied by a scale factor and then added to base register to
get the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
4. In the based scaled indexed mode with displacement mode, the contents of an index register
are multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
View Answer
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is added to a
base register and a displacement to get the offset of an operand.
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
Answer: d
Explanation: Bit string is a string of contiguous bits of maximum 4Gbytes in length.
Answer: c
Explanation: The integer word is the signed 16-bit data.
10. A 16-bit displacement that references a memory location using any of the addressing modes
is
a) Pointer
b) Character
c) BCD
d) Offset
View Answer
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing mod
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer.A
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task
Topic: – Paging
Answer: d
Explanation: The advantage of paging scheme is that the complete segment of a task need not be in the
physical memory at any time. Only a few pages of the segments, which are required currently for the
execution, need to be available in the physical memory.
Answer: b
Explanation: The paging divides the memory into fixed size pages.
3. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
View Answer
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by the segmentation unit, into physical addresses.
4. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
Answer: b
Explanation: The paging unit handles every task in terms of three components namely page directory,
page table and the page itself.
6. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
Answer: b
Explanation: Each directory entry is of 4 bytes, thus a total of 1024 entries are allowed in a directory.
Answer: c
Explanation: Each page table is of 4 Kbytes in size, and may contain a maximum of 1024 entries.
10. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
View Answer
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
Answer: c
Explanation: The D-bit is undefined for page directory entries.
Answer: d
Explanation: The User/Supervisor (U/S) bit and Read/Write (R/W) bit are used to provide protection.
advertisement
13. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
View Answer
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
Answer: c
Explanation: The page table cache is also known as translation look aside buffer.
2. If the processor is executing a main program that calls a subroutine, then after executing the
main program up to the CALL instruction, the control will be transferred to
a) address of main program
b) subroutine address
c) address of CALL instruction
d) none of the mentioned
3. The stack is useful for
a) storing the register status of the processor
b) temporary storage of data
c) storing contents of registers temporarily inside the CPU
d) all of the mentioned
5. As the storing of data words onto the stack is increased, the stack pointer is
a) incremented by 1
b) decremented by 1
c) incremented by 2
d) decremented by 2
7. The process of storing the data in the stack is called ……… the stack.
a) pulling into
b) pulling out
c) pushing into
d) popping into
8. The reverse process of transferring the data back from the stack to the CPU register is known
as
a) pulling out the stack
b) pushing out the stack
c) popping out the stack
d) popping off the stack
11. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
13. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
15. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
16. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
17. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
18. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
19. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
20. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
23. To convert linear addresses into physical addresses, the mechanism that the paging unit uses
is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
24. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
26. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
30. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answers
Page 1
Sheet1
Page 2
Sheet1
Page 3
Sheet1
Page 1
Sheet1
Page 2
Sheet1
Page 3
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q.2 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans:a
Q.3 The capture operation in counter mode is feasible when mode of CCP module is
__ _ __
a. synchronized
b. asynchronized
c. synchronized as well as asynchronized
d. irrespective of synchronization
Ans:a
Q.4 Which register is suitable for the corresponding count, if the measurement of pul se
width is less than 65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
Ans:c
Q.5 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR Ans:a
Q.6 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.7 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.8 Which among the below mentioned aspect issues are supported by
capture/compare/PWM modules corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
Ans:d
Q.9 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.10 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.11 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR
Ans:a
Q.12 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans: a
Q.13 How does the pin RC2/CCP1 get configured while initializing the CCP module in
the compare mode of operation?
a. As an input by writing it in TRISC register
b. As an output by writing it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC register
d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
Ans: b
Q.14 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0
Ans: a
Q.15 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above
Ans: b
Q.16 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.17 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value
Ans: b
Q.18 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter ?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components
Ans: a
Q.19 In ____ _ data transfer, group of bits (usually 8 bits) of data is transferred at a
time.
a. Parallel b. Serial c. simplex d. None of the above Ans: a
Q.20 In ____ _ data transfer, only one bit of data is transferred at a time.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.24 In _____ data communication, during transmission parallel data is converted into
serial bits using a PISO shift register.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.25 At the receiver, the serial bits are connected into parallel data by another shift
register called SIPO register.
a. TRUE b. FALSE Ans: a
Q.26 In ____ __, the hardware exists such that data transfer takes place only in one
direction.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: a
Q.28 The ______ transmission allows the data transfer in both directions, but not
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: b
Q.30 The ______ transmission allows the data transfer in both directions
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: c
Q.36 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.37 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.38 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0 Ans: a
Q.39 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above Ans: b
Q.40 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.41 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value Ans: b
Q.42 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components Ans: a
Q.43 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.44 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.45 What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave
mode by enabling SS pin control?
a. 0000 b. 0100 c. 0010 d. 0001 Ans: b
Q.46 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD
b. SSPBUF
c. Both a & b
d. None of the above Ans: a
Q.47 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.48 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line
b. SDA line
c. Both a & b
d. None of the above Ans: b
Q.49 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c. 16 d. 32 Ans: a
Q.50 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA
b. RCSTA
c. SPBRG
d. All of the above Ans: a
Q.51 What is the purpose of a special function register SPBRG in USART?
a. To control the operation associated with baud rate generation
b. To control an oscillator frequency
c. To control or prevent the false bit transmission of 9th bit
d. All of the above Ans: a
Q.52 Why is the flag bit TXIF tested or examined in the PIR1 register after shifting all the
data bits during the initialization process of USART in asynchronous mode?
a. For ensuring the transmission of byte
b. For ensuring the reception of byte
c. For ensuring the on-chip baud rate generation
d. For ensuring the 9th bit as a parity Ans: a
Q.53 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode?
a. FOSC / 8 (X + 1)
b. FOSC / 16 (X + 1)
c. FOSC / 32 (X + 1)
d. FOSC / 64 (X + 1) Ans: b
Q.54 What is the status of shift clock supply in an USART synchronous mode?
a. Master-internally, Slave-externally
b. Master-externally, Slave-internally
c. Master & Slave (both) – internally
d. Master & Slave (both) – externally Ans: a
Q.55 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.56 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins as
DT (data lines)?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.57 Which among the below assertions represent the salient features of PIC in C-18
compiler?
a. Transparent read/ write access to an external memory
b. Provision of supporting an inline assembly during the necessity of an overall control
c. Integration with MPLAB IDE for source-level debugging
d. All of the above Ans: d
Q.58 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
a. Provision of MPLAB specific extensions
b. Floating-point Format Support
c. Data in Program Memory
d. All of the above Ans: d
Q.59 Which flags of status register are most likely to get affected by the single-cycle
increment and decrement instructions?
a. P Flags b. C Flags c. OV Flags d. Z Flags Ans: d
Q.60 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.70 The rate at which the bits are transmitted (bits/second) is called ____ _.
a. speed b. bit rate c. baud d. sample Ans: c
Q.72 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.73 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.74 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD b. SSPBUF c. Both a & b d. None of the above Ans: a
Q.75 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.76 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line b. SDA line c. Both a & b d. None of the above Ans: b
Q.77 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c.16 d.32 Ans: a
Q.78 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA b. RCSTA c. SPBRG d. All of the above Ans: a
Q.81 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode ?
a. FOSC / 8 (X +1 )
b. FOSC / 16 (X +1 )
c. FOSC / 32 (X +1 )
d. FOSC / 64 (X +1 ) Ans: b
Q.82 What is the status of shift clock supply in an USART synchronous mode?
a. Master - internally, Slave - externally
b. Master - externally, Slave - internally
c. Master & Slave (both) - internally
d. Master & Slave (both)- externally Ans: a
Q.83 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode ?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.84 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins
as DT (data lines) ?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.87 SDA is having a transition when the clock line SCL is high.
a. high to low b. low to high c. low to low d. high to high Ans: a
Q.100 Synchronous interfaces make use of clock signal? State True or False
a. True b. False Ans: a
Q.101 Which of the following serial protocol is used for on-board serial communication?
a. USB b. I2C c. Wifi d. Bluetooth Ans: b
Q.102 Which of the following protocol make use of 7 bit address for its operation?
a. I2C b. SPI c. RS232 d. RS485 Ans: a
Q.103 Which of the following interface is used to 127 slave device to the master device?
a. SPI b. I2C c. RS232 d. RS485 Ans: b
Q.104 RS232 protocol makes use of clock signal for sending data? True or False
a. True b. False Ans: b
Q.105 Which serial communication interface is used to connect modems and for non
networked communication between computers and other devices?
a. SPI b. I2C c. UART d. USB Ans: c
Q.108 Which of the following make use of 4 wires for its operation?
a. USB b. CAN c. SPI d. I2C Ans: c
Q.111 Which of the following supports only point to point communication and not
suitable for multi drop communication
a. RS485 b. RS232 c. RS422 d. Rs484 Ans: b
Q.112 Which of the following is a low cost, low power, short range wireless
communication for voice and data
a. Wi-Fi b. Infrared c. Zigbee d. Bluetooth Ans: d
Q.113 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.114 Which bits exhibit and signify the termination phase of the character
transmission and reception in SCON special function register?
a. Control bits
b. Status bits
c. Both a & b
d. None of the above Ans: b
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q.3 A single IC which consists of ALU, control section and Register section is called
as
A.Microprocessor B. Microcontroller
C.Minicomputer D. None of the above Ans:A
Q.4 What is the name of the system which carries only the control and timing
signals
A. Address Bus B. Data Bus C. Control Bus D. System Bus Ans:C
Q.6 Interpreter translates language into machine level language and the
translation is done line by line.
A. Low B. High Ans:B
Q.8 enables the programmers to run the program step by step so that the
programmer can find out the exact location of the error.
A. Assembler B. Linker C. Loader D. Debugger Ans:D
Q.13 The process of interrupting the normal program execution to carry out a specific
task/work is referred to as .
A. Interrupt B. ISR C. Macro D. Procedure Ans:A
Q.14 Register that is used to hold the memory address of the next instruction to be
executed is
A. Program Memory B. Program Counter
C. Control Unit D. Instruction Decoder Ans:B
Q.16 The has built-in ROM,RAM, Parallel I/O, Serial I/O, counters and
clock circuit.
A. Microcontroller B. Microprocessor
C. Mainframe computers D. none of the above Ans: A
Q.26 used for control and status of the controller and peripheral functions.
A. SFRs B. GPRs C. WREG D. FSRs Ans: A
Q.27 used for data storage and scratchpad operations in the user’s
application.
A. SFRs B. GPRs C. WREG D. FSRs Ans: B
Q.29 register that stores flags- indicates the status of the operation done
by ALU.
A. Status B. SFR C.GPR D. FSR Ans:A
Q.32 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Q.39 Flag is set whenever the result of signed number operation is too large,
causing the high order bit to over flow in to sign bit.
A. Carry B. Negative C.Over Flow D. Zero Ans:C
Q. 40 After execution of ALU operations, if bit 7 of the result is 1, the flag is set
indicating result is negative.
A. Digit Carry B. Carry C. Over Flow D. Negative Ans:D
Q. 42 When using addressing, the BSR is used to select the desired bank.
A. Direct B. Indirect C. Implied D. Immediate Ans: A
Q. 43 Indirect addressing requires use of .
A. SFRs B. GPRs C. PC D. FSRs Ans: D
Q.44 Each FSR holds a bit address value that can be used to access any location
in the data memory map without banking.
A. 10 B. 11 C. 12 D. 13 Ans: C
Q.47 In addressing mode, the letter ‘F’ in the instruction means the address of
the File Register location.
A. Direct B. Indirect C. Immediate D. Register Ans:D
Q.48 The ECIO oscillator mode functions like the EC mode, except that the
OSC2 pin becomes an additional general purpose I/O pin.
A. True B. False Ans:A
Q.49 The PLL can only be enabled when the oscillator configuration bits are
programmed for HS mode.
A. True B. False Ans:A
Q.50 In the Sleep mode, the on-chip clocks and oscillator are turned off.
A. True B. False Ans:A
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit II MCQs
Q.1 When does it become possible for a bit to get accessed from bank '0' in the direct
addressing mode of PICs?
A. Only when RPO bit is set 'zero'
B. Only when RPO bit is set '1'
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.2 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to
turn on the weak internal pull-ups of port B?
A. RPO’ B. RPBU’ C. RBIF D. All of the above Ans:B
Q.3 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of 'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.4 Which digital operations are performed over the detected mismatch outputs with
an intention to generate a single output RB port change output?
A. OR B. AND C. EXOR D. NAND Ans: A
Q.5 How many clock pulses are confined by each machine cycle of Peripheral-Interface
Controllers?
A. 4 B. 8 C.12 D. 16 Ans:A
Q.6 Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
A. Carry (C) Flags B. Zero (Z) Flags
C. Digit Carry (DC) Flags D. All of the above Ans:D
Q.7 What is the execution speed of instructions in PIC especially while operating at the
maximum value of clock rate?
A. 0.1 μs B. 0.2 μs C. 0.4 μs D. 0.8 μs Ans: B
Q.8 Which operational feature of PIC allows it to reset especially when the power supply
drops the voltage below 4V?
A. Built-in Power-on-reset B. Brown-out reset
C. Both a & b D. None of the above Ans:B
Q.9 Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
A. Improvement in bandwidth
B. Instruction fetching becomes possible over a single instruction cycle
C. Independent bus access provision to data memory even while accessing the
program memory
D. All of the above Ans:D
Q.10 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C
B. C&D
C. A, B & D
D. A, B & C Ans:D
Q.11 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT)
B. Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT)
D. All of the above Ans:C
Q. 12 Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
A. Status Register
B. Program Counter Latch (PCLATH) Register
C. Program Counter Low Byte (PCL) Register
D. File Selection Register (FSR) Ans: B
Q.13 Which register/s is/are mandatory to get loaded at the beginning before loading or
transferring the contents to corresponding destination registers?
A. W B. INDF C. PCL D. All of the above Ans: A
Q.14 How many RPO status bits are required for the selection of two register banks?
A. 1 B.2 C. 8 D. 16 Ans: A
Q.15 The RPO status register bit has the potential to determine the effective address
of
A. Direct Addressing Mode
B. Indirect Addressing Mode
C. Immediate Addressing Mode
D. Indc. Watchdog Timer (WDT) exed Addressing Mode Ans:A
Q.16 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B. Digits Carry bit (DC)
C. Both A & B D. None of the above Ans:B
Q.17 Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
A. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
B. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
C. Address byte must be written in FSR at the same time during the execution of
INDF instruction in indirect addressing mode
D. Address byte must be always written in FSR as it is independent of any
instruction in indirect addressing mode
A. Only A B. Only B C. Only A & B D. A & D Ans:A
Q.18 Which among the below stated registers specify the address reachability within 7
bits of address independent of RP0 status bit register?
A. PCL B. FSR C. INTCON D. All of the above Ans:D
Q.19 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th Bit B. 12th Bit C. 13th Bit D. 14th Bit Ans:C
Q.20 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B. Low C. Moderate D. All of the above Ans:B
Q.22 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 Cycles B. 1024 Cycles C. 2048 Cycles D.4096 Cycles Ans:B
Q.23 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode
B. Sleep mode
C. Power-down mode
D. Any flexible mode Ans:B
Q.24 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A. For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.25 Which program location is allocated to the program counter by the reset function
in Power-on-Reset (POR) action modes?
A. Initial address
B. Middle address
C. Final address
D. At any address reliable for reset operations Ans:A
Q.26 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans:B
Q. 27 Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
A. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
Q.30 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC
B. LP (Low-Power Clocking)
C. XT
D. HS (High Speed) Ans:B
Q.32 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ ceramic/ resonator or any other external clock source?
A.0-4 MHz B. 5-200 KHz C.100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.33 How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
A. 4 & 8 bits B. 8 & 16 bits C. 11 & 12 bits D. 12 & 16 bits Ans:C
Q.34 When do the special address 004H get automatically loaded into the program
counter?
A. After the execution of RESET action in program counter
B. After the execution of ‘goto Mainline ‘ instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.35 How many bits are utilized by the instruction of direct addressing mode in order to
address the register files in PIC?
A. 2 B.5 C.7 D.8 Ans:C
Q.36 Which registers are adopted by CPU and peripheral modules so as to control and
handle the operation of device inhibited in RFS?
A. General Purpose Register
B. Special Purpose Register
C. Special Function Register
D. All of the above Ans:C
Q.37 Which among the below specified registors are addressable only from bank1 of
RFS?
A. PORTA (05H)
B. PORTB (06H)
C. FSR (04H)
D. ADCON0 (07H) Ans:A
Q.38 Which register acts as an input-output control as well as data direction register for
PORTA in bank 2 of RFS?
A. INDF (80H) B. TRISB (85H) C. TRISA (85H) D. PCLATH (8A) Ans:C
Q.39 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1
B. Only Bank 2
C. Either Bank 1 or Bank 2
D. Neither Bank 1 nor Bank 2 Ans:C
Q.40 Which bit of OPTION register has a potential to decide the falling or rising edge
sensitivity for the external interrupt INT?
A. RBPU B.INTEDG C.PSA D.RTS Ans:B
Q.41 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC
B. Only Watchdog timer
C. Either RTCC or Watchdog timer
D. Neither RTCC nor Watchdog timer Ans:C
Q.42 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C.ADRES D.PCLATH Ans:B
Q.43 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B.ADIE C.RBIE D.TOIE Ans:A
Q.44 When does it become possible for a bit to get accessed from bank ‘0’ in the direct
addressing mode of PICs?
A. Only when RPO bit is set ‘zero’
B. Only when RPO bit is set ‘1’
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.45 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of ‘interrupt on change’?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.46 What is the purpose of acquiring two different bits from INTCON register for
performing any interrupt operation in PIC 16C61 / 71?
A. One for enabling & one for disabling the interrupt
B. One for enabling the interrupt & one for its occurrence detection
C. One for setting or clearing the RBIE bit
D. None of the above Ans:B
Q.47 What kind of external edge-sensitive interrupt is generated due to transition effect
at pin RBO/INT?
A. INT
B. RBO
C. INTF
D. All of the above Ans:A
Q.49 What is the purpose of setting TOIE bit in INTCON along with GIE bit?
A. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow
interrupt
B. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow
interrupt
C. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
D. None of the above Ans:A
Q.50 Which command enables the PIC to enter into the power down mode during the
operation of watchdog timer (WDT)?
A. SLEEP B. RESET C. STATUS D. CLR Ans:A
Q.51 How much delay is required to sunchronize the externalclock at TOCKI in Timer 0
of Pic16FXXX?
A. 2 cycles B. 4cycles C. 6cycles D. 8cycles Ans:A
Q.52 How much time is required for conversion per channel if PIC possesses four analog
channels, each comprising of 8 bits?
A. 10 µs B.15 µs C.20 µs D. 25µs Ans: C
Q.53 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT) B.Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT) D.All of the above
Ans:C
Q.54 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B.Digits Carry bit (DC)
C. Both a & b D.None of the above Ans:B
Q.55 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th bit B.12th bit C.13th bit D.14th bit Ans:C
Q.56 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B.Low C. Moderate D. All of the above Ans:B
Q.58 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode B.Sleep mode C.Power-down mode D.Any flexible mode Ans:B
Q.59 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 cycles B.1024 cycles C.2048 cycles D. 4096 cycles Ans:B
Q.60 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A.For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.61 Which program location is allocated to the program counter by the reset function
in Power-onReset (POR) action modes?
A. Initial address B.Middle address
C.Final address D.At any address reliable for reset operations Ans: A
Q.62 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans: B
Q.63 What output is generated by OSC2 pin in PIC oscillator comprising RC components
for sychronizing the peripherals with PIC microcontroller?
A.(1/2) x frequency of OSC1
B.(1/4) x frequency of OSC1
C.(1/8) x frequency of OSC1
D.(1/16) x frequency of OSC1 Ans: C
Q.65 What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
A.CPU resets PIC once again in BOR mode
B.BOR reset mode gets disabled
C.PIC does not remain in BOR mode until the voltage increases irrespective of
stability
D.Power-up timer kills 72ms more again
Ans: A
Q.66 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC B.LP (Low-Power Clocking) C. XT D. HS (High Speed) Ans: B
Q.68 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ceramic/ resonator or any other external clock source?
A. 0-4 MHz B. 5-200 KHz C. 100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.69 Which bits play a crucial role in specifying the details or reasons associated with
the system wake-up in WDT?
A. PD’ & TO’ B. C & Z C. DC & RPO D. All of the above Ans:A
Q.70 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B. ADIE C. RBIE D. TOIE Ans: A
Q.71 Which instruction is applicable to set any bit while performing bitwise operation
settings?
A. bcf B. bsf C. Both A & B D. None of the above Ans:B
Q.72 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
A. Provision of MPLAB specific extensions
B. Floating-point Format Support
C. Data in Program Memory
D. All of the above Ans:D
Q.73 What does the 'program idata' section of data memory contain in C-18 Compiler?
A. statically assigned/allocated initialized user variables
B. statically assigned /allocated uninitialized user variables
C. only executable instructions
D. variables as well as constants Ans:A
Q.74 Where is the result stored after an execution of increment and decrement operations over
the special - purpose registers in PIC?
A. File Register B. Working Register C. Both A & B D. None of the above Ans:C
Q.75 Which flags of status register are most likely to get affected by the single-cycle increment
and decrement instructions?
A. P Flags B. C Flags C. OV Flags D. Z Flags Ans:D
Q.76 Which command-line option of compiler exhibits the banner comprising overall number of
errors, messages, warnings and version number after an accomplishment of the
compilation process?
A. help B. verbose C. overlay D. char Ans:B
Q.77 Which among the below assertions represent the salient features of PIC in C-18 compiler?
A. Transparent read/ write access to an external memory
B. Provision of supporting an inline assembly during the necessity of an overall control
C. Integration with MPLAB IDE for source-level debugging
D. All of the above Ans:D
Q.78 Which bit plays a salient role in defining the master or slave mode in TXSTA register
especially in synchronous mode?
A. RSRC B. CSRC C. SPEN D. SYNC Ans:B
Q.79 What is the status of shift clock supply in an USART synchronous mode?
A. Master-internally, Slave-externally
B. Master-externally, Slave-internally
C. Master & Slave (both) - internally
D. Master & Slave (both) – externally Ans:A
Q.80 When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of
'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.81 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to turn
on the weak internal pull-ups of port B?
A.RPO B.RPBU’ C. RBIF D.All of the above Ans:B
Q.82 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C. ADRES D.PCLATH Ans:B
Q.83 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC B. Only Watchdog timer
C. Either RTCC or Watchdog timer D. Neither RTCC nor Watchdog timer Ans:C
Q.84 Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity
for the external interrupt INT?
A. RBPU B. INTEDG C. PSA D. RTS Ans:B
Q.85 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1 B. Only Bank 2
C. Either Bank 1 or Bank 2 D. Neither Bank 1 nor Bank 2 Ans:C
Q.86 Which register acts as an input-output control as well as data direction register for PORTA
in bank 2 of RFS?
A. INDF B. TRISB C.TRISA D.PCLATH Ans:C
Q.87 Which registers are adopted by CPU and peripheral modules so as to control and handle
the operation of device inhibited in RFS?
A. General Purpose Register B. Special Purpose Register
C. Special Function Registers D. All of the above Ans:C
Q.88 How many bits are utilized by the instruction of direct addressing mode in order to address
the register files in PIC?
A. 2 B. 5 C. 7 D. 8 Ans:C
Q.89 When do the special address 004H get automatically loaded into the program counter?
A. After the execution of RESET action in program counter
B. After the execution of 'goto Mainline ' instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.90 Which significant feature/s of crystal source contribute/s to its maximum predilection and
utility as compared to other clock sources?
A. High accuracy B. Proficiency in time generation
C. Applicability in real-time operations D. All of the above Ans:D
Q.91 Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely
unique and distinct from other microcontrollers?
A. It can reset the PIC automatically in running condition
B. It can reset the PIC even when the supply voltage increases above 4V
C. It can reset the PIC without enabling the power-up timer
D. All of the above Ans:A
Q.92 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C B. C & D C. A, B & D D. A, B & C Ans:D
Q.93 is 16 bit register used as memory pointers in indirect addressing data
memory.
A. Status B. SFR C.GPR D. FSR Ans:D
Q.94 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
MICROPROCESSOR
BCA
IV Sem
MULTIPLE CHOICE QUESTIONS
1) Which is the microprocessor comprises:
a. Register section
b. One or more ALU
c. Control unit
d. All of these
2) What is the store by register?
a. data
b. operands
c. memory
d. None of these
3) Accumulator based microprocessor example are:
a. Intel 8085
b. Motorola 6809
c. A and B
d. None of these
4) A set of register which contain are:
a. data
b. memory addresses
c. result
d. all of these
5) There are primarily two types of register:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
6) Name of typical dedicated register is:
a. PC
b. IR
c. SP
d. All of these
7) BCD stands for:
a. Binary coded decimal
b. Binary coded decoded
c. Both a & b
d. none of these
8) Which is used to store critical pieces of data during subroutines and interrupts:
a. Stack
b. Queue
c. Accumulator
d. Data register
9) The data in the stack is called:
a. Pushing data
b. Pushed
c. Pulling
d. None of these
10) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
11) The processor 80386/80486 and the Pentium processor uses _____ bits address bus:
a. 16
b. 32
c. 36
d. 64
12) Which is not the control bus signal:
a. READ
b. WRITE
c. RESET
d. None of these
13) PROM stands for:
a. Programmable read‐only memory
b. Programmable read write memory
c. Programmer read and write memory
d. None of these
14) EPROM stands for:
a. Erasable Programmable read‐only memory
b. Electrically Programmable read write memory
c. Electrically Programmable read‐only memory
d. None of these
15) Each memory location has:
a. Address
b. Contents
c. Both A and B
d. None of these
16) Which is the type of microcomputer memory:
a. Processor memory
b. Primary memory
c. Secondary memory
d. All of these
17) Secondary memory can store____:
a. Program store code
b. Compiler
c. Operating system
d. All of these
18) Secondary memory is also called____:
a. Auxiliary
b. Backup store
c. Both A and B
d. None of these
19) Customized ROMS are called:
a. Mask ROM
b. Flash ROM
c. EPROM
d. None of these
20) The RAM which is created using bipolar transistors is called:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. DDR RAM
21) Which type of RAM needs regular referred:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
22) Which RAM is created using MOS transistors:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
23) A microprocessor retries instructions from :
a. Control memory
b. Cache memory
c. Main memory
d. Virtual memory
24) The lower red curvy arrow show that CPU places the address extracted from the memory
location on the_____:
a. Address bus
b. System bus
c. Control bus
d. Data bus
25) The CPU sends out a ____ signal to indicate that valid data is available on the data bus:
a. Read
b. Write
c. Both A and B
d. None of these
26) The CPU removes the ___ signal to complete the memory write operation:
a. Read
b. Write
c. Both A and B
d. None of these
27) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
28) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
29) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
30) Eight of the register are known as:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
31) The four index register can be used for:
a. Arithmetic operation
b. Multipulation operation
c. Subtraction operation
d. All of these
32) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
33) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
34) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
35) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
36) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
37) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
38) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
39) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
40) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
41) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
42) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
43) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
44) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
45) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
46) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
47) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
48) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
49) ________ is the most important segment and it contains the actual assembly language
instruction to be executed by the microprocessor:
a. Data segment
b. Code segment
c. Stack segment
d. Extra segment
50) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
51) Which are the factor of cache memory:
a. Architecture of the microprocessor
b. Properties of the programs being executed
c. Size organization of the cache
d. All of these
52) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
53) Which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
54) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
55) Microprocessor reference that are available in the cache are called______:
a. Cache hits
b. Cache line
c. Cache memory
d. All of these
56) Microprocessor reference that are not available in the cache are called_________:
a. Cache hits
b. Cache line
c. Cache misses
d. Cache memory
57) Which causes the microprocessor to immediately terminate its present activity:
a. RESET signal
b. INTERUPT signal
c. Both
d. None of these
58) Which is responsible for all the outside world communication by the microprocessor:
a. BIU
b. PIU
c. TIU
d. LIU
59) INTR: it implies the__________ signal:
a. INTRRUPT REQUEST
b. INTRRUPT RIGHT
c. INTRRUPT RONGH
d. INTRRUPT RESET
60) Which of the following are the two main components of the CPU?
a. Control Unit and Registers
b. Registers and Main Memory
c. Control unit and ALU
d. ALU and bus
61) Different components n the motherboard of a PC unit are linked together by sets of parallel
electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Consecutives
62) The language that the computer can understand and execute is called
a. Machine language
b. Application software
c. System program
d. All of the above
63) Which of the following is used as a primary storage device?
a. Magnetic drum
b. PROM
c. Floppy disk
d. All of these
64) Which of the following memories needs refresh?
a. SRAM
b. DRAM
c. ROM
d. All of above
65) The memory which is programmed at the time it is manufactured
a. PROM
b. RAM
c. PROM
d. EPROM
66) Which of the following memory medium is not used as main memory system?
a. Magnetic core
b. Semiconductor
c. Magnetic tape
d. Both a and b
67) Registers, which are partially visible to users and used to hold conditional, are known as
a. PC
b. Memory address registers
c. General purpose register
d. Flags
68) One of the main feature that distinguish microprocessors from micro‐computers is
a. Words are usually larger in microprocessors
b. Words are shorter in microprocessors
c. Microprocessor does not contain I/O devices
d. Exactly the same as the machine cycle time
69) The first microprocessor built by the Intel Corporation was called
a. 8008
b. 8080
c. 4004
d. 8800
70) An integrated circuit is
a. A complicated circuit
b. An integrating device
c. Much costlier than a single transistor
d. Fabricated on a tiny silicon chip
71) Most important advantage of an IC is its
a. Easy replacement in case of circuit failure
b. Extremely high reliability
c. Reduced cost
d. Low powers consumption
72) Which of the following items are examples of storage devices?
a. Floppy / hard disks
b. CD‐ROMs
c. Tape devices
d. All of the above
73) The Width of a processor’s data path is measured in bits. Which of the following are common
data paths?
a. 8 bits
b. 12 bits
c. 16 bits
d. 32 bits
74) Which is the type of memory for information that does not change on your computer?
a. RAM
b. ROM
c. ERAM
d. RW / RAM
75) What type of memory is not directly addressable by the CPU and requires special softw3are
called EMS (expanded memory specification)?
a. Extended
b. Expanded
c. Base
d. Conventional
76) Before a disk can be used to store data. It must be…….
a. Formatted
b. Reformatted
c. Addressed
d. None of the above
77) Which company is the biggest player in the microprocessor industry?
a. Motorola
b. IBM
c. Intel
d. AMD
78) A typical personal computer used for business purposes would have… of RAM.
a. 4 KB
b. 16 K
c. 64 K
d. 256 K
78) The word length of a computer is measured in
a. Bytes
b. Millimeters
c. Meters
d. Bits
79) What are the three decisions making operations performed by the ALU of a computer?
a. Grater than
b. Less than
c. Equal to
d. All of the above
80) Which part of the computer is used for calculating and comparing?
a. Disk unit
b. Control unit
c. ALU
d. Modem
81) Can you tell what passes into and out from the computer via its ports?
a. Data
b. Bytes
c. Graphics
d. Pictures
82) What is the responsibility of the logical unit in the CPU of a computer?
a. To produce result
b. To compare numbers
c. To control flow of information
d. To do math’s works
83) The secondary storage devices can only store data but they cannot perform
a. Arithmetic Operation
b. Logic operation
c. Fetch operations
d. Either of the above
84) Which of the following memories allows simultaneous read and write operations?
a. ROM
b. RAM
c. EPROM
d. None of above
85) Which of the following memories has the shortest access times?
a. Cache memory
b. Magnetic bubble memory
c. Magnetic core memory
d. RAM
86) A 32 bit microprocessor has the word length equal to
a. 2 byte
b. 32 byte
c. 4 byte
d. 8 byte
87) An error in computer data is called
a. Chip
b. Bug
c. CPU
d. Storage device
88) The silicon chips used for data processing are called
a. RAM chips
b. ROM chips
c. Micro processors
d. PROM chips
89) The metal disks, which are permanently housed in, sealed and contamination free containers
are called
a. Hard disks
b. Floppy disk
c. Winchester disk
d. Flexible disk
90) A computer consists of
a. A central processing unit
b. A memory
c. Input and output unit
d. All of the above
91) The instructions for starting the computer are house on
a. Random access memory
b. CD‐Rom
c. Read only memory chip
d. All of above
92) The ALU of a computer normally contains a number of high speed storage element called
a. Semiconductor memory
b. Registers
c. Hard disks
d. Magnetic disk
93) The first digital computer built with IC chips was known as
a. IBM 7090
b. Apple – 1
c. IBM System / 360
d. VAX‐10
94) Which of the following terms is the most closely related to main memory?
a. Non volatile
b. Permanent
c. Control unit
d. Temporary
95) Which of the following is used for manufacturing chips?
a. Control bus
b. Control unit
c. Parity unit
d. Semiconductor
96) To locate a data item for storage is
a. Field
b. Feed
c. Database
d. Fetch
97) A directly accessible appointment calendar is feature of a … resident package
a. CPU
b. Memory
c. Buffer
d. ALU
98) The term gigabyte refers to
a. 1024 bytes
b. 1024 kilobytes
c. 1024 megabytes
d. 1024 gigabyte
99) A/n …. Device is any device that provides information, which is sent to the CPU
a. Input
b. Output
c. CPU
d. Memory
100) Current SIMMs have either … or … connectors (pins)
a. 9 or 32
b. 30 or 70
c. 28 or 72
d. 30 or 72
101) Which is the brain of computer:
a. ALU
b. CPU
c. MU
d. None of these
102) Which technology using the microprocessor is fabricated on a single chip:
a. POS
b. MOS
c. ALU
d. ABM
103) MOS stands for:
a. Metal oxide semiconductor
b. Memory oxide semiconductor
c. Metal oxide select
d. None of these
104) In which form CPU provide output:
a. Computer signals
b. Digital signals
c. Metal signals
d. None of these
105) The register section is related to______ of the computer:
a. Processing
b. ALU
c. Main memory
d. None of these
106) In Microprocessor one of the operands holds a special register called:
a. Calculator
b. Dedicated
c. Accumulator
d. None of these
107) Which register is a temporary storage location:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
108) PC stands for:
a. Program counter
b. Points counter
c. Paragraph counter
d. Paint counter
109) IR stands for:
a. Intel register
b. In counter register
c. Index register
d. Instruction register
110) SP stands for:
a. Status pointer
b. Stack pointer
c. a and b
d. None of these
111) The act of acquiring an instruction is referred as the____ the instruction:
a. Fetching
b. Fetch cycle
c. Both a and b
d. None of these
112) How many bit of instruction on our simple computer consist of one____:
a. 2‐bit
b. 6‐bit
c. 12‐bit
d. None of these
113) How many parts of single address computer instruction :
a. 1
b. 2
c. 3
d. 4
114) Single address computer instruction has two parts:
a. The operation code
b. The operand
c. A and B
d. None of these
115) LA stands for:
a. Load accumulator
b. Least accumulator
c. Last accumulator
d. None of these
116) Which are the flags of status register:
a. Over flow flag
b. Carry flag
c. Half carry flag
d. Zero flag
e. Interrupt flag
f. Negative flag
g. All of these
117) The carry is operand by:
a. C
b. D
c. S
d. O
118) The sign is operand by:
a. S
b. D
c. C
d. O
119) The zero is operand by:
a. Z
b. D
c. S
d. O
120) The overflow is operand by:
a. O
b. D
c. S
d. C
121) _________ Stores the instruction currently being executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
122) In which register instruction is decoded prepared and ultimately executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
123) The status register is also called the____:
a. Condition code register
b. Flag register
c. A and B
d. None of these
124) The area of memory with addresses near zero are called:
a. High memory
b. Mid memory
c. Memory
d. Low memory
125) The processor uses the stack to keep track of where the items are stored on it this by using
the:
a. Stack pointer register
b. Queue pointer register
c. Both a & b
d. None of these
126) Stack words on:
a. LILO
b. LIFO
c. FIFO
d. None of these
127) Which is the basic stack operation:
a. PUSH
b. POP
c. BOTH A and B
d. None of these
128) SP stand for:
a. Stack pointer
b. Stack pop
c. Stack push
d. None of these
129) How many bit stored by status register:
a. 1 bit
b. 4 bit
c. 6 bit
d. 8 bit
130) The 16 bit register is separated into groups of 4 bit where each groups is called:
a. BCD
b. Nibble
c. Half byte
d. None of these
131) A nibble can be represented in the from of:
a. Octal digit
b. Decimal
c. Hexadecimal
d. None of these
132) The left side of any binary number is called:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
133) MSD stands for:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
134) _____ a subsystem that transfer data between computer components inside a computer
or between computer:
a. Chip
b. Register
c. Processor
d. Bus
135) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
136) Which bus carry addresses:
a. System bus
b. Address bus
c. Control bus
d. Data bus
137) A 16 bit address bus can generate___ addresses:
a. 32767
b. 25652
c. 65536
d. none of these
138) CPU can read & write data by using :
a. Control bus
b. Data bus
c. Address bus
d. None of these
139) Which bus transfer singles from the CPU to external device and others that carry singles
from external device to the CPU:
a. Control bus
b. Data bus
c. Address bus
d. None of these
140) When memory read or I/O read are active data is to the processor :
a. Input
b. Output
c. Processor
d. None of these
141) When memory write or I/O read are active data is from the processor:
a. Input
b. Output
c. Processor
d. None of these
142) CS stands for:
a. Cable select
b. Chip select
c. Control select
d. Cable system
143) WE stands for:
a. Write enable
b. Wrote enable
c. Write envy
d. None of these
144) MAR stands for:
a. Memory address register
b. Memory address recode
c. Micro address register
d. None of these
145) MDR stands for:
a. Memory data register
b. Memory data recode
c. Micro data register
d. None of these
146) Which are the READ operation can in simple steps:
a. Address
b. Data
c. Control
d. All of these
147) DMA stands for:
a. Direct memory access
b. Direct memory allocation
c. Data memory access
d. Data memory allocation
148) The ____ place the data from a register onto the data bus:
a. CPU
b. ALU
c. Both A and B
d. None of these
149) The microcomputer system by using the ____device interface:
a. Input
b. Output
c. Both A and B
d. None of these
150) The standard I/O is also called:
a. Isolated I/O
b. Parallel I/O
c. both a and b
d. none of these
151) The external device is connected to a pin called the ______ pin on the processor chip.
a. Interrupt
b. Transfer
c. Both
d. None of these
152) Which interrupt has the highest priority?
a) INTR
b) TRAP
c) RST6.5
d) none of these
153) In 8085 name the 16 bit registers?
a) Stack pointer
b) Program counter
c) a & b
d) none of these
154) What are level Triggering interrupts?
a) INTR&TRAP
b) RST6.5&RST5.5
c) RST7.5&RST6.5
d) none of these
155) Which stack is used in 8085?
a) FIFO
b) LIFO
c) FILO
d) none of these
156) What is SIM?
a) Select Interrupt Mask
b) Sorting Interrupt Mask
c) Set Interrupt Mask.
d) none of these
157) RIM is used to check whether, ______
a) The write operation is done or not
b) The interrupt is Masked or not
c) a & b
d) none of these
158) In 8086, Example for Non maskable interrupts are
a) Trap b) RST6.5 c) INTR d) none of these
159) In 8086 microprocessor the following has the highest priority among all type interrupts.
a) NMI
b) DIV 0
c) TYPE 255
d) OVER FLOW
160) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
161) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
162) Which are the part of architecture of 8086:
a. The bus interface unit
b. The execution unit
c. Both A and B
d. None of these
163) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
164) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
165) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
166) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
167) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
168) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
169) The upper 8 bit are called______:
a. BH
b. BL
c. AH
d. CH
170) The lower 8 bit are called_______:
a. AL
b. CL
c. BL
d. DL
171) IP stand for:
a. Industry pointer
b. Instruction pointer
c. Index pointer
d. None of these
172) Which has great important in modular programming:
a. Stack segment
b. Queue segment
c. Array segment
d. All of these
173) Which register containing the 8086/8088 flag:
a. Status register
b. Stack register
c. Flag register
d. Stand register
174) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
175) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
176) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
177) The physical address of memory is :
a. 20 bit
b. 16 bit
c. 32 bit
d. 64 bit
178) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
179) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
180) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
181) PA stand for:
a. Project address
b. Physical address
c. Pin address
d. Pointer address
182) SBA stand for:
a. Segment bus address
b. Segment bit address
c. Segment base address
d. Segment byte address
183) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
184) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
185) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
186) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
187) DS stand for:
a. Default segment
b. Defect segment
c. Delete segment
d. Definition segment
188) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
189) AD stand for:
a. Address data
b. Address delete
c. Address date
d. Address deal
190) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
191) PC stand for:
a. program counter
b. project counter
c. protect counter
d. planning counter
192) AH stand for:
a. Accumulator high
b. Address high
c. Appropriate high
d. Application high
193) AL stand for:
a. Accumulator low
b. Address low
c. Appropriate low
d. Application low
194) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
195) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
196) which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
197) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
198) How many type of cache memory:
a. 1
b. 2
c. 3
d. 4
199) Which is the type of cache memory:
a. Fully associative cache
b. Direct‐mapped cache
c. Set‐associative cache
d. All of these
200) ) Which memory is used to holds the address of the data stored in the cache :
a. Associative memory
b. Case memory
c. Ordinary memory
d. None of these
PAI UNIT -2 MCQ
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Privilege”.
Answer: d
Explanation: The operating system, interrupt handlers and other system softwares can be protected
from unauthorized accesses in virtual address space of each task using the privilege mechanism.
Answer: b
Explanation: Any one of the four privilege levels may be used to execute a task. The task privilege level
at that instant is called the Current Privilege Level (CPL).
Answer: c
Explanation: Once the CPL is selected, it cannot be changed during the execution normally in a single
code segment. It can only be changed by transferring the control, using gate descriptors, to a new
segment.
4. The data segments defined in GDT (global descriptor table) and the LDT (local descriptor
table) can be accessed by a task with
a) privilege level 0
b) privilege level 1
c) privilege level 2
d) privilege level 3
View Answer
Answer: a
Explanation: A task executing at level 0, the most privileged level, can access all the data segments
defined in GDT and the LDT of the task.
5. A task with privilege level 0, doesn’t refer to all the lower level privilege descriptors in
a) GDT (global descriptor table)
b) LDT (local descriptor table)
c) IDT (interrupt descriptor table)
d) None of the mentioned
View Answer
Answer: b
Explanation: The task with privilege level 0, refers to all the lower level privilege descriptors which apply
to all the descriptors except the LDT descriptors.
6. The selector RPL that uses a less trusted privilege than the current privilege level for further
use is known as
a) Least task privilege level
b) Descriptor privilege level
c) Effective privilege level
d) None of the mentioned
View Answer
Answer: c
Explanation: A selector RPL uses a less trusted privilege than the current privilege level for further use.
This is known as the Effective Privilege Level of the task.
Answer: c
Explanation: The effective privilege level is minimum in numeric and maximum in the privilege of RPL
and CPL.
8. The task requesting an access to a descriptor is allowed to access after checking the
a) type of descriptor
b) privilege level
c) type of descriptor and privilege level
d) corresponding segment
View Answer
Answer: c
Explanation: The task requesting an access to a descriptor is allowed to access to it and to the
corresponding segment, only after checking the type of the descriptor and privilege level(CPL, RPL, DPL).
Answer: b
Explanation: A CALL or JUMP instruction can reference only a code segment descriptor with DPL equal to
CPL of the task or a segment with a DPL of equal or greater privilege than CPL.
10. The RPL of a selector that referred to the code descriptor must have
a) less privilege than CPL
b) greater privilege than CPL
c) equal privilege than CPL
d) any privilege regarding CPL
View Answer
Answer: c
Explanation: The RPL of a selector that referred to the code descriptor must have the same privilege as
CPL.
11. The instruction that refers to only code segment descriptors with DPL equal to or less than
the task CPL is
a) CALL
b) IRET
c) ESC
d) RET and IRET
View Answer
Answer: d
Explanation: The RET and IRET instructions are to refer to only code segment descriptors with DPL equal
to or less than the task CPL.
12. When a JUMP instruction references a Task State Segment(TSS) descriptor, then DPL must
be
a) equally privileged as CPL
b) greater or equally privileged than CPL
c) less or equally privileged than CPL
d) less privileged than CPL
View Answer
Answer: c
Explanation: When a CALL or JUMP instruction references a Task State Segment(TSS) descriptor, then
DPL must be less or equally privileged than CPL.
advertisement
Answer: d
Explanation: Loading DS, ES or SS for referring to a new descriptor comes under the data segment
access.
Answer: d
Explanation: If the privilege test is negative or an improper segment is referenced then an exception 13
is generated. If the referenced segment is not present in physical memory, an exception 11 is ge
Topic – Protection
1. The mechanism to provide protection, that is accomplished with the help of read/write
privileges is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions
d) privileged operations
View Answer
Answer: a
Explanation: The restricted use of segments is accomplished with the help of read/write privileges.
2. The Local descriptor table (LDT) and Global descriptor table (GDT) are present in
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: c
Explanation: In restricted use of segments i.e. segment load check, the segment usages are restricted by
classifying the corresponding descriptors, under LDT and GDT.
3. The mechanism that is accomplished using descriptor usages limitations and rules of privilege
check is
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: b
Explanation: Restricted accesses to segment, also called, operation reference check, is accomplished
using descriptor usages limitations, and rules of privilege check.
4. The mechanism that is executed at certain privilege levels, determined by CPL (Current
Privilege Level) and I/O privilege level (IOPL) is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions or operations
d) none of the mentioned
View Answer
5. If CPL is not of the required privilege level, then the instructions that get affected is
a) IRET
b) POPF
c) IRET and POPF
d) None of the mentioned
View Answer
6. If CPL is greater than zero, then the instruction that remains unaffected is
a) IRET
b) POPF
c) IF
d) IRET and POPF
View Answer
Answer: c
Explanation: IF remains unaffected if CPL is greater than zero. No exception is generated for this
condition.
7. The condition, “CPL not equals to zero” satisfies when executing the instruction
a) LIDT
b) LGDT
c) LTR
d) All of the mentioned
View Answer
Answer: d
Explanation: The condition, “CPL not equals to zero” satisfies, when executing the instructions, LIDT,
LGDT, LTR, LMSW, CTS and HLT.
Answer: c
Explanation: The condition CPL>IOPL exists, when executing the instructions, INs, IN, OUTS, OUT, STI, CLI
and LOCK.
9. The instruction at which the exception is generated, but the processor extension registers
contain the address of failing instruction is
a) LTR
b) INS
c) CTS
d) ESC
View Answer
Answer: d
Explanation: At the ESC instruction, the exception is generated, but the processor extension registers
contain the address of failing instruction.
Answer: d
Explanation: Double exception detected, invalid task state segment, stack segment overrun, processor
extension segment overrun, are the protected mode exceptions.
This set of Advanced Microprocessors Questions and Answers focuses on “Protected Virtual
Address Mode (PVAM) -2”.
Answer: c
Explanation: The system segment descriptors are of seven types. The types 1 to 3 are called system
descriptors and the types 4 to 7 are called gate descriptors.
Answer: d
Explanation: The gate descriptors are of four types namely, call gate, task gate, interrupt gate and trap
gate.
Answer: d
Explanation: The gate descriptor contains the information regarding the destination of control transfer,
required stack manipulations, privilege level and its type.
Answer: a
Explanation: Call gates are used to alter the privilege levels.
Answer: c
Explanation: Interrupt gates and trap gates are used to specify corresponding service routines.
Answer: d
Explanation: The word count field is only used by a call gate descriptor, to indicate the number of bytes
to be transferred from the stack of the calling routine to the stack of the called routine.
8. The memory that maintains the most frequently required data for execution, in a high speed
memory is called
a) virtual memory
b) physical memory
c) cache memory
d) ROM (read only memory)
View Answer
Answer: c
Explanation: To minimize the time required for fetching the frequently required descriptor information,
from the main memory, cache memory is used in which the most frequently required data for execution
is stored.
Answer: d
Explanation: In the protected mode, the contents of the segment registers are known as selectors. The
selector field consists of three fields namely, RPL, table indicator (TI) and index.
Answer: b
Explanation: The LGDT and LLDT instructions are privileged, and may be executed only at privilege level
0.
12. The instruction that loads a selector which refers to a local descriptor table, containing the
base address and limit for LDT is
a) LGT
b) GDT
c) LGDT
d) LLDT
View Answer
Answer: d
Explanation: The LLDT instruction loads a selector, which refers to a local descriptor table, containing
the base address, and limit for LDT.
advertisement
13. The descriptor that is used to store task gates, interrupt gates and trap gates is
a) system descriptor table
b) gate descriptor table
c) interrupt descriptor table
d) none of the mentioned
View Answer
14. The number of interrupt descriptors that the interrupt descriptor table (IDT) handles is
a) 16
b) 64
c) 128
d) 256
View Answer
Answer: d
Explanation: The IDT is able to handle upto 256 interrupt descriptors.
15. The number of bytes required for an interrupt in an IDT is
a) 2
b) 4
c) 6
d) 8
View Answer
Answer: c
Explanation: Six bytes are required for each interrupt in an interrupt descriptor table.
3. The number of debug registers that are available in 80386, for hardware debugging and control is a) 2
b) 4
c) 8
d) 16
Answer: c
Explanation: The 80386 offers a set of total eight debug registers DR0-DR7, for hardware debugging and
control.
5. The 80386 enables itself to organize the available physical memory into pages, which is known as a)
segmentation
b) paging
c) memory division
d) none of the mentioned
Answer: b
Explanation: The concept of paging which is introduced in 80386, enables it to organise the available
physical memory into pages of size 4 KB each, under the segmented memory.
6. The 80386 consists of
a) on-chip address translation cache
b) instruction set of predecessors with upward compatibility
c) virtual memory space of 64TB
d) all of the mentioned
Answer: d
Explanation: The 80386 has on-chip address translation cache, and instruction set is upward compatible
with all its predecessors.
7. 80386DX is available in a grid array package of
a) 64 pin
b) 128 pin
c) 132 pin
d) 142 pin
Answer: c
Explanation: The 80386DX is available in a 132-pin grid array package.
8. The operating frequency of 80386DX is
a) 12 MHz and 20 MHz
b) 20 MHz and 33 MHz
c) 32 MHz and 12 MHz
d) all of the mentioned
Answer: b
Explanation: The operating frequency of 80386DX is 20MHz and 33 MHz.
9. The 80386 in its protected mode, in its virtual mode of operation, can run the applications of
a) 8086
b) 80286
c) 80287
d) 80387
Answer: a
Explanation: The 80386 can run the applications under protected mode, in its virtual 8086 mode of
operation.
10. The 80386 in protected mode, supports all software written for
a) 8086 and 80287
b) 80286 and 80287
c) 80287 and 80387
d) 80286 and 8086
Answer: d
Explanation: The 80386 in protected mode, supports all software written for 8086 and 80286 (to be
executed under the control of memory management and protection abilities of 80386).
13. The unit that is used for handling data, and calculate offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
14. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
15. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
16. The memory management unit consists of
a) segmentation unit
b) paging unit
c) segmentation and paging units
d) none of the mentioned
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
18. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
20. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
21. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
22. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
23. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
24. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) none of the mentioned
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
25. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
26. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
28. The 16-bit registers are available with their extended size of 32 bits, by adding the registers with a
prefix of
a) X
b) E
c) 32
d) XX
Answer: b
Explanation: A 32 bit register, known as extended register, is represented by the register name with a
prefix of E.
29. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) none of the mentioned
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
32. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) none of the mentioned
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
35. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
38. The 32-bit control register, that is used to hold global machine status, independent of the executed
task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
40. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
42. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
Answer: c
Explanation: Two test registers are provided by 80386 for page cacheing, namely test control and test
status registers.
43. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
44. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
45. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
46. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
47. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers, rather, they
are internally used to store the descriptor information.
48. Which of the following is not a scale factor of addressing modes of 80386?
a) 2
b) 4
c) 6
d) 8
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
49. Contents of an index register are multiplied by a scale factor that may be added further to get the
operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
50. Contents of an index register are multiplied by a scale factor and then added to base register to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
51. In based scaled indexed mode with displacement mode, the contents of an index register are
multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is addedto a
base register and a displacement to get the offset of an operand.
52. The following statement of ALP is an example of MOV EBX, [EDX*4] [ECX]
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
53. The following statement is an example of MOV EBX, LIST [ESI*2] MUL ECX, LIST [EBP*4] a) base
scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
54. Bit field can be defined as a group of
a) 8 bits
b) 16 bits
c) 32 bits
d) 64 bits
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
55. The maximum length of the string in a bit string of contiguous bits is
a) 2 MB
b) 4 MB
c) 2 GB
d) 4 GB
57. A 16-bit displacement that references a memory location using any of the addressing modes is
a) pointer
b) character
c) BCD
d) offset
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing modes.
59. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
61. To form a physical memory address, appropriate segment register contents are
a) shifted by left by 4 positions
b) added to 16-bit offset address
c) operated using one of addressing modes
d) all of the mentioned
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
63. The operation that can be performed on segments in 80386 real mode is
a) read
b) write
c) execute
d) all of the mentioned
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
66. If the paging unit is enabled, then it converts linear address into
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The paging unit when enabled, it converts linear address into physical address.
67. If the paging unit is disabled, then the linear address is used as
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The linear address is used as physical address if the paging unit is disabled.
70. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granulary bit
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
73. The bit that indicates whether the segment is page addressable is
a) base address
b) attribute bit
c) present bit
d) granularity bit
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
74. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
82. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by segmentation unit, into physical addresses.
83. The control register that stores the 32-bit linear address, at which the previous page fault is detected
is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
85. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
89. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
92. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
B. 64 bytes
C. 128 bytes
D.256 bytes
Answer: Option C
JNZ STAT
A.True
B. False
Answer: Option A
B. 2
C. 3
D.4
Answer: Option B
4. The address space of the 8051 is divided into four distinct areas: internal data, external data,
internal code, and external code.
A.True
B. False
Answer: Option A
5. Data transfer from I/O to external data memory can only be done with the MOVX command.
A.True
B. False
Answer: Option A
B. 4
C. 5
D.6
Answer: Option C
Explanation:
There are five interrupt sources for the 8051, which means that they can recognize 5 different events
that can interrupt regular program execution. Each interrupt can be enabled or disabled by setting
bits of the IE register. Likewise, the whole interrupt system can be disabled by clearing the EA bit of
the same register.
7. The special function registers are maintained in the next 128 locations after the general-
purpose data storage and stack.
A.True
B. False
Answer: Option A
8. This statement will set the address of the bit to 1 (8051 Micro-controller):
SETB 01H
A.True
B. False
Answer: Option B
9. MOV A, @ R1 will:
A. copy R1 to the accumulator
Answer: Option C
B.False
Answer: Option A
11. The following program will receive data from port 1, determine whether bit 2 is high, and
then send the number FFH to port 3:
READ: MOV A,P1
ANL A,#2H
CJNE A,#02H,READ
MOV P3,#FFH
A.True
B.False
Answer: Option A
12. Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
oscillator or crystal.
A.True
B.False
Answer: Option A
13. When the 8051 is reset and the line is HIGH, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option A
B. Timer 1
C. interrupt 0
D.interrupt 1
Answer: Option A
15. Both registers TL0 and TL1 are needed to start Timer 0.
A.True
B.False
Answer: Option B
16. The I/O ports that are used as address and data for external memory are:
A. ports 1 and 2
B. ports 1 and 3
C. ports 0 and 2
D.ports 0 and 3
Answer: Option C
17. The last 96 locations in the internal data memory are reserved for general-purpose data
storage and stack.
A.True
B.False
Answer: Option B
B. RAM
C. ROM
B. 3
C. 4
D.5
Answer: Option C
20. The total external data memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
21. Which of the following instructions will load the value 35H into the high byte of timer 0?
A. MOV TH0, #35H
Answer: Option A
23. The 8-bit address bus allows access to an address range of:
A. 0000 to FFFFH
B. 000 to FFFH
C. 00 to FFH
D.0 to FH
Answer: Option C
B. 11011010
C. 00001000
D.00101000
Answer: Option C
B. CS line
C. INTR line
Answer: Option A
26. This program code will be executed once:
A.True
B.False
Answer: Option B
27. Which of the following instructions will move the contents of register 3 to the accumulator?
A. MOV 3R, A
B. MOV R3, A
C. MOV A, R3
D.MOV A, 3R
Answer: Option C
28. Which of the following statements will add the accumulator and register 3?
A. ADD @R3, @A
B. ADD @A, R3
C. ADD R3, A
D.ADD A, R3
Answer: Option D
29. Data transfer from I/O to external data memory can only be done with the MOV command.
A.True
B.False
Answer: Option B
30. Which of the following commands will move the number 27H into the accumulator?
A. MOV A, P27
B. MOV A, #27H
C. MOV A, 27H
D.MOV A, @27
Answer: Option B
31. This program code will read data from port 0 and write it to port 2, and it will stop looping
when bit 3 of port 2 is set:
STAT: MOV A, PO
MOV P2,A
A.True
B.False
Answer: Option A
32. Which of the following commands will move the value at port 3 to register 2?
A. MOV P2, R3
B. MOV R3, P2
C. MOV 3P, R2
D.MOV R2, P3
Answer: Option D
B. 16
C. 32
D.64
Answer: Option C
34. When the 8051 is reset and the EA line is LOW, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option B
35. The designs of a centigrade thermometer and a PWM speed-control circuit can be
implemented by the 8051.
A.True
B.False
Answer: Option A
36. What is the difference between the 8031 and the 8051?
A. The 8031 has no interrupts.
Answer: Option B
37. The I/O port that does not have a dual-purpose role is:
A. port 0
B. port 1
C. port 2
D.port 3
Answer: Option B
38. To interface external EPROM memory for applications, it is necessary to demultiplex the
address/data lines of the 8051.
A.True
B.False
Answer: Option A
39. The following command will copy the accumulator to the location whose address is 23H:
MOV 23H,A
A.True
B.False
Answer: Option A
40. The special function registers can be referred to by their hex addresses or by their register
names.
A.True
B.False
Answer: Option A
41. The contents of the accumulator after this operation
MOV A,#2BH
ORL A,00H
will be:
A. 1B H
B. 2B H
C. 3B H
D.4B H
Answer: Option B
42. The following program will cause the 8051 to be stuck in a loop:
JNZ LOOP
A.True
B.False
Answer: Option B
43. Which of the following commands will copy the contents of RAM whose address is in
register 0 to port 1?
A. MOV @ P1, R0
B. MOV @ R0, P1
C. MOV P1, @ R0
D.MOV P1, R0
Answer: Option C
44. The statement LCALL READ passes control to the line labelled READ.
A.True
B.False
Answer: Option A
45. Which of the following commands will copy the contents of location 4H to the accumulator?
A. MOV A, 04H
B. MOV A, L4
C. MOV L4, A
D.MOV 04H, A
Answer: Option A
46. The microcontroller is useful in systems that have nonvariable programs for dedicated
applications.
A.True
B.False
Answer: Option A
47. The total amount of external code memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
B. 8-bit
C. 16-bit
D.32-bit
Answer: Option B
B. RST
C. PSEN
D.RSET
Answer: Option B
51. Which of the following instructions will move the contents of the accumulator to register 6?
A. MOV 6R, A
B. MOV R6, A
C. MOV A, 6R
D.MOV A, R6
Answer: Option B
52. The following command will rotate the 8 bits of the accumulator one position to the left:
RL A
A.True
B.False
Answer: Option A
53. An alternate function of port pin P3.0 (RXD) in the 8051 is:
A. serial port input
B. serial port output
Answer: Option A
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Arithmetic and Logic Instructions”.
1. When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
View Answer
Answer: c
Explanation: For addition purposes, the destination address must always be an accumulator.
Example- ADD A,R0; ADD A, @R1; ADD A,@ DPTR
Answer: b
Explanation: DAA command adds 6 to the nibble if any of the nibbles becomes greater than 9.
Answer: c
Explanation: When we divide two numbers then AC and CY become zero.
Answer: d
Explanation: In 8 bit operations, if a carry is generated from D6 or D7 bit, then OV flag is set to
1.
Answer: b
Explanation: If unsigned numbers operations are involved, then the status of CY flag is
important and in signed number operation the status of OV flag is important.
Answer: d
Explanation: These instructions are the arithmetic operations and the flags are affected by the
data copy instructions, so all these instructions don’t affect the bits of the flag.
8. ANL instruction is used _______
a) to AND the contents of the two registers
b) to mask the status of the bits
c) all of the mentioned
d) none of the mentioned
View Answer
Answer: c
Explanation: ANL instruction is used to AND the contents of the two registers and is also used to
mask the status of the bits of the register.
Answer: d
Explanation: In CJNE command, the pointer jumps if the values of the two registers are not
equal and it resets CY if the destination address is larger then the source address and sets CY if
the destination address is smaller then the source address.
Answer: a
Explanation: These commands have accumulator as the destination address and any register,
memory or any immediate data as the source address.
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Architecture”.
Answer: a
Explanation: It has 128 bytes of RAM in it.
Answer: a
Explanation: It has two 16 bit registers DPTR and PC.
Answer: c
Explanation: When a program wakes up, then 0x00 is loaded to the program counter register
because at this place the first op code is burnt.
5. When the microcontroller executes some arithmetic operations, then the flag bits of which
register are affected?
a) PSW
b) SP
c) DPTR
d) PC
View Answer
Answer: a
Explanation: It stands for program status word. It consists of carry, auxiliary carry, overflow,
parity, register bank select bits etc which are affected during such operations.
6. How are the status of the carry, auxiliary carry and parity flag affected if the write instruction
MOV A,#9C
ADD A,#64H
a) CY=0,AC=0,P=0
b) CY=1,AC=1,P=0
c) CY=0,AC=1,P=0
d) CY=1,AC=1,P=1
View Answer
Answer: b
Explanation: On adding 9C and 64, a carry is generated from D3 and from the D7 bit so CY and
AC are set to 1. In the result, the number of 1’s present are even so parity flag is set to zero.
7. How are the bits of the register PSW affected if we select Bank2 of 8051?
a) PSW.5=0 and PSW.4=1
b) PSW.2=0 and PSW.3=1
c) PSW.3=1 and PSW.4=1
d) PSW.3=0 and PSW.4=1
View Answer
Answer: d
Explanation: Bits of PSW register are CY, AC, F0, RS1, RS0, OV, -, P so for selecting bank2
RS1=1 and RS0=0 which are fourth and third bit of the register respectively.
Answer: a
Explanation: If we push elements onto the stack then the stack pointer increases with every push
of element.
9. On power up, the 8051 uses which RAM locations for register R0- R7
a) 00-2F
b) 00-07
c) 00-7F
d) 00-0F
View Answer
Answer: b
Explanation: On power up register bank 0 is selected which has memory address from 00H-07H.
10. How many bytes of bit addressable memory is present in 8051 based microcontrollers?
a) 8 bytes
b) 32 bytes
c) 16 bytes
d) 128 bytes
View Answer
Answer: c
Explanation: 8051 microcontrollers have 16 bytes of bit addressable memory.
Answer: a
Explanation: DJNZ R0, label has hex code, D8 and its corresponding label address. Hence, it is a
two byte instruction.
2. JZ, JNZ, DJNZ, JC, JNC instructions monitor the bits of which register?
a) DPTR
b) B
c) A
d) PSW
View Answer
Answer: d
Explanation: PSW register consists of flag bits like CY, P, Z etc so it is the one that is directly
being monitored by these instructions.
3. Calculate the jump code for again and here if code starts at 0000H
MOV R1,#0
MOV A,#0
MOV R0,#25H
AGAIN:ADD A,#0ECH
JNC HERE
HERE: INC R1
DJNZ R0,AGAIN
MOV R0,A
END
a) F3,02
b) F9,01
c) E9,01
d) E3,02
View Answer
Answer: c
Explanation: Loop address is calculated by subtracting destination address and the address next
to the source address.
So here if we start with 0000H
then source address is 0008H and the destination address is 0004H
So loop address is 04-0A=E9
4. When the call instruction is executed the topmost element of stack comes out to be
a) the address where stack pointer starts
b) the address next to the call instruction
c) address of the call instruction
d) next address of the stack pointer
View Answer
Answer: b
Explanation: The topmost element of the stack is the address of the instruction next to the call
instruction so that when RET is executed then PC is filled with that address and so the pointer
moves to the main program and continue with its routine task.
Answer: c
Explanation: LCALL instruction moves the pointer to a 16 bit address so it is a 3 byte
instruction.
Answer: b
Explanation: PUSH and POP instructions are not CALL instructions because in POP and PUSH
instructions the pointer does not move to any location specified by its address which is the
fundamental of CALL instruction, so it is not a type of CALL instruction.
7. What is the time taken by one machine cycle if crystal frequency is 20MHz?
a) 1.085 micro seconds
b) 0.60 micro seconds
c) 0.75 micro seconds
d) 1 micro seconds
View Answer
Answer: b
Explanation: Time taken by one machine cycle is calculated by the inverse of a (crystal
frequency) /12
MOV R6,#200
BACK:MOV R5,#100
HERE:DJNZ R5, HERE
DJNZ R6,BACK
END
a) 100
b) 200
c) 20000
d) 2000
View Answer
Answer: c
Explanation: It will be executed 200*100 times.
Answer: c
Explanation: If we need to store the address in the accumulator, then directly the address is
moved to it unlikely of using # used for storing data in any register.
1) BACK: DEC R0
JZ BACK
2) BACK: DJNZ RO, BACK
a) yes
b) no
c) cant be determined
d) yes and the second one is preferred
View Answer
Answer: b
Explanation: In the first statement, when the decrements approach zero then the jump moves
back and in the second statement, when the result after decrements is not zero, then it jumps
back.
Unit No.1
Answer: c
Explanation: An assembler is a software used to convert the programs into machine instructions.
Answer: a
Explanation: This OP – codes tell the system what operation to perform on the operands.
Answer: b
Explanation: The ADDI instruction, means the addition is in immediate addressing mode.
4. Instructions which won’t appear in the object program are called as _____
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives
View Answer
Answer: d
Explanation: The directives help the program in getting compiled and hence won’t be there in the
object code.
5. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum
View Answer
Answer: b
Explanation: This basically is used to replace the variable with a constant value.
Answer: a
Explanation: This does the function similar to the main statement.
7. The directive used to perform initialization before the execution of the code is ______
a) Reserve
b) Store
c) Dataword
d) EQU
View Answer
Answer: c
Explanation: None.
8. _____ directive is used to specify and assign the memory required for the block of code.
a) Allocate
b) Assign
c) Set
d) Reserve
View Answer
Answer: d
Explanation: This instruction is used to allocate a block of memory and to store the object code
of the program there.
Answer: b
Explanation: This instruction directive is used to terminate the program execution.
Answer: d
Explanation: This enables the processor to load some other process.
11. When dealing with the branching code the assembler ___________
a) Replaces the target with its address
b) Does not replace until the test condition is satisfied
c) Finds the Branch offset and replaces the Branch target with it
d) Replaces the target with the value specified by the DATAWORD directive
View Answer
Answer: c
Explanation: When the assembler comes across the branch code, it immediately finds the branch
offset and replaces it with it.
12. The assembler stores all the names and their corresponding values in ______
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the mentioned
View Answer
Answer: b
Explanation: The table where the assembler stores the variable names along with their
corresponding memory locations and values.
advertisement
14. The utility program used to bring the object code into memory for execution is ______
a) Loader
b) Fetcher
c) Extractor
d) Linker
View Answer
Answer: a
Explanation: The program is used to load the program into memory.
15. To overcome the problems of the assembler in dealing with branching code we use _____
a) Interpreter
b) Debugger
c) Op-Assembler
d) Two-pass assembler
View Answer
Answer: d
Explanation: This creates entries into the symbol table first and then creates the object code.
Answer: d
Explanation: The machine level programming is complicated.
Answer: d
Explanation: The assembly level programming is more advantageous than the machine level
programming.
Answer: c
Explanation: All the files should have the extension, .ASM.
5. The directory that is under work must have the files that are related to
a) Norton’s editor
b) Assembler
c) Linker
d) All of the mentioned
View Answer
Answer: d
Explanation: Before starting the process of entering a small program on PC, ensure that all the
files namely Norton’s editor, assembler, linker and debugger are available in the same directory
in which work is been done.
7. The extension file that is must for a file to be accepted by the LINK as a valid object file is
a) .OBJ file
b) .EXE file
c) .MASM file
d) DEBUG file
View Answer
Answer: a
Explanation: The .OBJ extension is a must for a file to be accepted by the LINK as a valid object
file.
Answer: d
Explanation: The listing file contains total offset map of source file including labels, offset
addresses, opcodes, memory allotments for different directives and labels and relocation
information.
Answer: c
Explanation: DEBUG.COM is a DOS utility that facilitates the debugging and trouble shooting.
• A. To indicate the starting position in memory, where the program block is to be stored
• B. To indicate the starting of the computation code
• C. To indicate the purpose of the code
• D. To list the locations of all the registers used
Answer: Option A
• A. Stop
• B. Return
• C. OP
• D. End
Answer: Option D
• A. .EXE files
• B. .OBJ files
• C. .EXE file and .OBJ file
• D. .EXE flie and .LST file
Answer: Option A
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
2. The unit that is disabled in real address mode is
a) central processing unit
b) memory management unit
c) paging unit
d) bus control unit
View Answer
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: d
Explanation: In protected mode, the contents of segment registers are used as selectors to address
descriptors which contain the segment limit, base address and access rights byte of the segment.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task.
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Segmentation”.
1. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granular bit
View Answer
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
Answer: c
Explanation: The type field decides the descriptor type and hence the segment type.
3. If the segment descriptor bit, S=0, then the descriptor is
a) data segment descriptor
b) code segment descriptor
c) system descriptor
d) all of the mentioned
View Answer
Answer: c
Explanation: If S=0, then system descriptor. If S=1, then code or data segment descriptor.
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
5. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
View Answer
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
Answer: d
Explanation: The segment descriptors are 8-byte quantities containing access right or attribute bits
along with the base and limit of the segments.
Answer: d
Explanation: The five types of segment descriptors of 80386 are:
1. Code or data segment descriptors
2. System descriptors
3. Local descriptors
4. TSS(task state segment) descriptors
5. Gate descriptors.
Answer: d
Explanation: The limit field of the descriptor is of 20 bits.
Answer: c
Explanation: The base address that marks the starting address of the segment in physical memory is
decided by the operating system and is of 32 bits.
Answer: d
Explanation: 80386 can handle total 16K descriptors and hence
TOPIC:– Architecture and Signal Descriptions of 80386
Answer: d
Explanation: The internal architecture of 80386 is divided into three sections namely, central processing
unit, memory management unit and bus interface unit.
Answer: c
Explanation: The central processing unit is further divided into the execution unit and instruction unit.
3. The unit that is used for handling data, and calculates offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
View Answer
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
4. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
5. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
Answer: d
Explanation: The segmentation unit allows the use of two address components. They are: segment and
offset for relocation and sharing of code and data.
8. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
View Answer
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
10. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
View Answer
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
11. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
12. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
advertisement
13. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
View Answer
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
14. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) None of the mentioned
View Answer
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
15. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
View Answer
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
16. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
View Answer
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
Answer: c
Explanation: The pip
TOPICS– Register Organisation of 80386 -1
1. The 16-bit registers are available with their extended size of 32 bits, by adding the registers
with a prefix of
a) X
b) E
c) 32
d) XX
View Answer
Answer: b
Explanation: A 32 bit register, known as an extended register, is represented by the register name with a
prefix of E.
2. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) None of the mentioned
View Answer
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
Answer: d
Explanation: The six segment registers available in 80386 are CS, SS, DS, ES, FS and GS, out of which DS,
ES, FS and GS are the four data segment registers.
Answer: d
Explanation: The 32-bit addressing modes may use all the register widths, i.e. 8, 16 or 32 bits.
5. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) None of the mentioned
View Answer
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
Answer: b
Explanation: If VM flag is set, the 80386 enters the virtual 8086 mode within the protected mode. This is
to be set only when the 80386 is in protected mode.
Answer: c
Explanation: The VM flag can be set using the IRET instruction or any task switch operation, only in the
protected mode.
8. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
View Answer
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
Answer: c
Explanation: The RF is automatically reset after the execution of every instruction, except for the IRET
and POPF instructions. Also, it is not cleared automatically after the successful execution of JMP, CALL
and INT instructions causing a task switch.
Answer: d
Explanation: The segment descriptor register is used to store the descriptor information like attributes,
limit and base addresses of se
1. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) All of the mentioned
View Answer
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
Answer: d
Explanation: The 80386 supports four types of descriptor tables. They are, GDT, IDT, LDT and TSS.
3. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
View Answer
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
Answer: b
Explanation: The LDTR and TR are known as system segment registers.
Answer: c
Explanation: Two test registers are provided by 80386 for page caching, namely test control and test
status registers.
6. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
View Answer
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
7. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
View Answer
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
9. The flag bits that indicate the privilege level of current IO operations are
a) Virtual mode flag bits
b) IOPL flag bits
c) Resume flag bits
d) None of the mentioned
View Answer
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
10. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
View Answer
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers,
rather, they are internally used to store the descriptor information
TOPIC: Addressing Modes of 80386, Data Types of 80386
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
2. Contents of an index register are multiplied by a scale factor that may be added further to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
3. Contents of an index register are multiplied by a scale factor and then added to base register to
get the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
4. In the based scaled indexed mode with displacement mode, the contents of an index register
are multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
View Answer
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is added to a
base register and a displacement to get the offset of an operand.
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
Answer: d
Explanation: Bit string is a string of contiguous bits of maximum 4Gbytes in length.
Answer: c
Explanation: The integer word is the signed 16-bit data.
10. A 16-bit displacement that references a memory location using any of the addressing modes
is
a) Pointer
b) Character
c) BCD
d) Offset
View Answer
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing mod
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer.A
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task
Topic: – Paging
Answer: d
Explanation: The advantage of paging scheme is that the complete segment of a task need not be in the
physical memory at any time. Only a few pages of the segments, which are required currently for the
execution, need to be available in the physical memory.
Answer: b
Explanation: The paging divides the memory into fixed size pages.
3. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
View Answer
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by the segmentation unit, into physical addresses.
4. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
Answer: b
Explanation: The paging unit handles every task in terms of three components namely page directory,
page table and the page itself.
6. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
Answer: b
Explanation: Each directory entry is of 4 bytes, thus a total of 1024 entries are allowed in a directory.
Answer: c
Explanation: Each page table is of 4 Kbytes in size, and may contain a maximum of 1024 entries.
10. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
View Answer
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
Answer: c
Explanation: The D-bit is undefined for page directory entries.
Answer: d
Explanation: The User/Supervisor (U/S) bit and Read/Write (R/W) bit are used to provide protection.
advertisement
13. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
View Answer
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
Answer: c
Explanation: The page table cache is also known as translation look aside buffer.
2. If the processor is executing a main program that calls a subroutine, then after executing the
main program up to the CALL instruction, the control will be transferred to
a) address of main program
b) subroutine address
c) address of CALL instruction
d) none of the mentioned
3. The stack is useful for
a) storing the register status of the processor
b) temporary storage of data
c) storing contents of registers temporarily inside the CPU
d) all of the mentioned
5. As the storing of data words onto the stack is increased, the stack pointer is
a) incremented by 1
b) decremented by 1
c) incremented by 2
d) decremented by 2
7. The process of storing the data in the stack is called ……… the stack.
a) pulling into
b) pulling out
c) pushing into
d) popping into
8. The reverse process of transferring the data back from the stack to the CPU register is known
as
a) pulling out the stack
b) pushing out the stack
c) popping out the stack
d) popping off the stack
11. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
13. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
15. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
16. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
17. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
18. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
19. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
20. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
23. To convert linear addresses into physical addresses, the mechanism that the paging unit uses
is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
24. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
26. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
30. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answers
Page 1
Sheet1
Page 2
Sheet1
Page 3
Sheet1
Page 1
Sheet1
Page 2
Sheet1
Page 3
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q.2 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans:a
Q.3 The capture operation in counter mode is feasible when mode of CCP module is
__ _ __
a. synchronized
b. asynchronized
c. synchronized as well as asynchronized
d. irrespective of synchronization
Ans:a
Q.4 Which register is suitable for the corresponding count, if the measurement of pul se
width is less than 65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
Ans:c
Q.5 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR Ans:a
Q.6 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.7 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.8 Which among the below mentioned aspect issues are supported by
capture/compare/PWM modules corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
Ans:d
Q.9 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.10 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.11 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR
Ans:a
Q.12 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans: a
Q.13 How does the pin RC2/CCP1 get configured while initializing the CCP module in
the compare mode of operation?
a. As an input by writing it in TRISC register
b. As an output by writing it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC register
d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
Ans: b
Q.14 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0
Ans: a
Q.15 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above
Ans: b
Q.16 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.17 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value
Ans: b
Q.18 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter ?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components
Ans: a
Q.19 In ____ _ data transfer, group of bits (usually 8 bits) of data is transferred at a
time.
a. Parallel b. Serial c. simplex d. None of the above Ans: a
Q.20 In ____ _ data transfer, only one bit of data is transferred at a time.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.24 In _____ data communication, during transmission parallel data is converted into
serial bits using a PISO shift register.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.25 At the receiver, the serial bits are connected into parallel data by another shift
register called SIPO register.
a. TRUE b. FALSE Ans: a
Q.26 In ____ __, the hardware exists such that data transfer takes place only in one
direction.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: a
Q.28 The ______ transmission allows the data transfer in both directions, but not
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: b
Q.30 The ______ transmission allows the data transfer in both directions
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: c
Q.36 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.37 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.38 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0 Ans: a
Q.39 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above Ans: b
Q.40 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.41 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value Ans: b
Q.42 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components Ans: a
Q.43 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.44 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.45 What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave
mode by enabling SS pin control?
a. 0000 b. 0100 c. 0010 d. 0001 Ans: b
Q.46 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD
b. SSPBUF
c. Both a & b
d. None of the above Ans: a
Q.47 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.48 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line
b. SDA line
c. Both a & b
d. None of the above Ans: b
Q.49 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c. 16 d. 32 Ans: a
Q.50 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA
b. RCSTA
c. SPBRG
d. All of the above Ans: a
Q.51 What is the purpose of a special function register SPBRG in USART?
a. To control the operation associated with baud rate generation
b. To control an oscillator frequency
c. To control or prevent the false bit transmission of 9th bit
d. All of the above Ans: a
Q.52 Why is the flag bit TXIF tested or examined in the PIR1 register after shifting all the
data bits during the initialization process of USART in asynchronous mode?
a. For ensuring the transmission of byte
b. For ensuring the reception of byte
c. For ensuring the on-chip baud rate generation
d. For ensuring the 9th bit as a parity Ans: a
Q.53 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode?
a. FOSC / 8 (X + 1)
b. FOSC / 16 (X + 1)
c. FOSC / 32 (X + 1)
d. FOSC / 64 (X + 1) Ans: b
Q.54 What is the status of shift clock supply in an USART synchronous mode?
a. Master-internally, Slave-externally
b. Master-externally, Slave-internally
c. Master & Slave (both) – internally
d. Master & Slave (both) – externally Ans: a
Q.55 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.56 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins as
DT (data lines)?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.57 Which among the below assertions represent the salient features of PIC in C-18
compiler?
a. Transparent read/ write access to an external memory
b. Provision of supporting an inline assembly during the necessity of an overall control
c. Integration with MPLAB IDE for source-level debugging
d. All of the above Ans: d
Q.58 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
a. Provision of MPLAB specific extensions
b. Floating-point Format Support
c. Data in Program Memory
d. All of the above Ans: d
Q.59 Which flags of status register are most likely to get affected by the single-cycle
increment and decrement instructions?
a. P Flags b. C Flags c. OV Flags d. Z Flags Ans: d
Q.60 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.70 The rate at which the bits are transmitted (bits/second) is called ____ _.
a. speed b. bit rate c. baud d. sample Ans: c
Q.72 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.73 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.74 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD b. SSPBUF c. Both a & b d. None of the above Ans: a
Q.75 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.76 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line b. SDA line c. Both a & b d. None of the above Ans: b
Q.77 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c.16 d.32 Ans: a
Q.78 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA b. RCSTA c. SPBRG d. All of the above Ans: a
Q.81 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode ?
a. FOSC / 8 (X +1 )
b. FOSC / 16 (X +1 )
c. FOSC / 32 (X +1 )
d. FOSC / 64 (X +1 ) Ans: b
Q.82 What is the status of shift clock supply in an USART synchronous mode?
a. Master - internally, Slave - externally
b. Master - externally, Slave - internally
c. Master & Slave (both) - internally
d. Master & Slave (both)- externally Ans: a
Q.83 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode ?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.84 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins
as DT (data lines) ?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.87 SDA is having a transition when the clock line SCL is high.
a. high to low b. low to high c. low to low d. high to high Ans: a
Q.100 Synchronous interfaces make use of clock signal? State True or False
a. True b. False Ans: a
Q.101 Which of the following serial protocol is used for on-board serial communication?
a. USB b. I2C c. Wifi d. Bluetooth Ans: b
Q.102 Which of the following protocol make use of 7 bit address for its operation?
a. I2C b. SPI c. RS232 d. RS485 Ans: a
Q.103 Which of the following interface is used to 127 slave device to the master device?
a. SPI b. I2C c. RS232 d. RS485 Ans: b
Q.104 RS232 protocol makes use of clock signal for sending data? True or False
a. True b. False Ans: b
Q.105 Which serial communication interface is used to connect modems and for non
networked communication between computers and other devices?
a. SPI b. I2C c. UART d. USB Ans: c
Q.108 Which of the following make use of 4 wires for its operation?
a. USB b. CAN c. SPI d. I2C Ans: c
Q.111 Which of the following supports only point to point communication and not
suitable for multi drop communication
a. RS485 b. RS232 c. RS422 d. Rs484 Ans: b
Q.112 Which of the following is a low cost, low power, short range wireless
communication for voice and data
a. Wi-Fi b. Infrared c. Zigbee d. Bluetooth Ans: d
Q.113 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.114 Which bits exhibit and signify the termination phase of the character
transmission and reception in SCON special function register?
a. Control bits
b. Status bits
c. Both a & b
d. None of the above Ans: b
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q.3 A single IC which consists of ALU, control section and Register section is called
as
A.Microprocessor B. Microcontroller
C.Minicomputer D. None of the above Ans:A
Q.4 What is the name of the system which carries only the control and timing
signals
A. Address Bus B. Data Bus C. Control Bus D. System Bus Ans:C
Q.6 Interpreter translates language into machine level language and the
translation is done line by line.
A. Low B. High Ans:B
Q.8 enables the programmers to run the program step by step so that the
programmer can find out the exact location of the error.
A. Assembler B. Linker C. Loader D. Debugger Ans:D
Q.13 The process of interrupting the normal program execution to carry out a specific
task/work is referred to as .
A. Interrupt B. ISR C. Macro D. Procedure Ans:A
Q.14 Register that is used to hold the memory address of the next instruction to be
executed is
A. Program Memory B. Program Counter
C. Control Unit D. Instruction Decoder Ans:B
Q.16 The has built-in ROM,RAM, Parallel I/O, Serial I/O, counters and
clock circuit.
A. Microcontroller B. Microprocessor
C. Mainframe computers D. none of the above Ans: A
Q.26 used for control and status of the controller and peripheral functions.
A. SFRs B. GPRs C. WREG D. FSRs Ans: A
Q.27 used for data storage and scratchpad operations in the user’s
application.
A. SFRs B. GPRs C. WREG D. FSRs Ans: B
Q.29 register that stores flags- indicates the status of the operation done
by ALU.
A. Status B. SFR C.GPR D. FSR Ans:A
Q.32 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Q.39 Flag is set whenever the result of signed number operation is too large,
causing the high order bit to over flow in to sign bit.
A. Carry B. Negative C.Over Flow D. Zero Ans:C
Q. 40 After execution of ALU operations, if bit 7 of the result is 1, the flag is set
indicating result is negative.
A. Digit Carry B. Carry C. Over Flow D. Negative Ans:D
Q. 42 When using addressing, the BSR is used to select the desired bank.
A. Direct B. Indirect C. Implied D. Immediate Ans: A
Q. 43 Indirect addressing requires use of .
A. SFRs B. GPRs C. PC D. FSRs Ans: D
Q.44 Each FSR holds a bit address value that can be used to access any location
in the data memory map without banking.
A. 10 B. 11 C. 12 D. 13 Ans: C
Q.47 In addressing mode, the letter ‘F’ in the instruction means the address of
the File Register location.
A. Direct B. Indirect C. Immediate D. Register Ans:D
Q.48 The ECIO oscillator mode functions like the EC mode, except that the
OSC2 pin becomes an additional general purpose I/O pin.
A. True B. False Ans:A
Q.49 The PLL can only be enabled when the oscillator configuration bits are
programmed for HS mode.
A. True B. False Ans:A
Q.50 In the Sleep mode, the on-chip clocks and oscillator are turned off.
A. True B. False Ans:A
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit II MCQs
Q.1 When does it become possible for a bit to get accessed from bank '0' in the direct
addressing mode of PICs?
A. Only when RPO bit is set 'zero'
B. Only when RPO bit is set '1'
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.2 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to
turn on the weak internal pull-ups of port B?
A. RPO’ B. RPBU’ C. RBIF D. All of the above Ans:B
Q.3 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of 'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.4 Which digital operations are performed over the detected mismatch outputs with
an intention to generate a single output RB port change output?
A. OR B. AND C. EXOR D. NAND Ans: A
Q.5 How many clock pulses are confined by each machine cycle of Peripheral-Interface
Controllers?
A. 4 B. 8 C.12 D. 16 Ans:A
Q.6 Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
A. Carry (C) Flags B. Zero (Z) Flags
C. Digit Carry (DC) Flags D. All of the above Ans:D
Q.7 What is the execution speed of instructions in PIC especially while operating at the
maximum value of clock rate?
A. 0.1 μs B. 0.2 μs C. 0.4 μs D. 0.8 μs Ans: B
Q.8 Which operational feature of PIC allows it to reset especially when the power supply
drops the voltage below 4V?
A. Built-in Power-on-reset B. Brown-out reset
C. Both a & b D. None of the above Ans:B
Q.9 Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
A. Improvement in bandwidth
B. Instruction fetching becomes possible over a single instruction cycle
C. Independent bus access provision to data memory even while accessing the
program memory
D. All of the above Ans:D
Q.10 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C
B. C&D
C. A, B & D
D. A, B & C Ans:D
Q.11 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT)
B. Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT)
D. All of the above Ans:C
Q. 12 Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
A. Status Register
B. Program Counter Latch (PCLATH) Register
C. Program Counter Low Byte (PCL) Register
D. File Selection Register (FSR) Ans: B
Q.13 Which register/s is/are mandatory to get loaded at the beginning before loading or
transferring the contents to corresponding destination registers?
A. W B. INDF C. PCL D. All of the above Ans: A
Q.14 How many RPO status bits are required for the selection of two register banks?
A. 1 B.2 C. 8 D. 16 Ans: A
Q.15 The RPO status register bit has the potential to determine the effective address
of
A. Direct Addressing Mode
B. Indirect Addressing Mode
C. Immediate Addressing Mode
D. Indc. Watchdog Timer (WDT) exed Addressing Mode Ans:A
Q.16 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B. Digits Carry bit (DC)
C. Both A & B D. None of the above Ans:B
Q.17 Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
A. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
B. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
C. Address byte must be written in FSR at the same time during the execution of
INDF instruction in indirect addressing mode
D. Address byte must be always written in FSR as it is independent of any
instruction in indirect addressing mode
A. Only A B. Only B C. Only A & B D. A & D Ans:A
Q.18 Which among the below stated registers specify the address reachability within 7
bits of address independent of RP0 status bit register?
A. PCL B. FSR C. INTCON D. All of the above Ans:D
Q.19 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th Bit B. 12th Bit C. 13th Bit D. 14th Bit Ans:C
Q.20 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B. Low C. Moderate D. All of the above Ans:B
Q.22 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 Cycles B. 1024 Cycles C. 2048 Cycles D.4096 Cycles Ans:B
Q.23 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode
B. Sleep mode
C. Power-down mode
D. Any flexible mode Ans:B
Q.24 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A. For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.25 Which program location is allocated to the program counter by the reset function
in Power-on-Reset (POR) action modes?
A. Initial address
B. Middle address
C. Final address
D. At any address reliable for reset operations Ans:A
Q.26 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans:B
Q. 27 Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
A. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
Q.30 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC
B. LP (Low-Power Clocking)
C. XT
D. HS (High Speed) Ans:B
Q.32 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ ceramic/ resonator or any other external clock source?
A.0-4 MHz B. 5-200 KHz C.100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.33 How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
A. 4 & 8 bits B. 8 & 16 bits C. 11 & 12 bits D. 12 & 16 bits Ans:C
Q.34 When do the special address 004H get automatically loaded into the program
counter?
A. After the execution of RESET action in program counter
B. After the execution of ‘goto Mainline ‘ instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.35 How many bits are utilized by the instruction of direct addressing mode in order to
address the register files in PIC?
A. 2 B.5 C.7 D.8 Ans:C
Q.36 Which registers are adopted by CPU and peripheral modules so as to control and
handle the operation of device inhibited in RFS?
A. General Purpose Register
B. Special Purpose Register
C. Special Function Register
D. All of the above Ans:C
Q.37 Which among the below specified registors are addressable only from bank1 of
RFS?
A. PORTA (05H)
B. PORTB (06H)
C. FSR (04H)
D. ADCON0 (07H) Ans:A
Q.38 Which register acts as an input-output control as well as data direction register for
PORTA in bank 2 of RFS?
A. INDF (80H) B. TRISB (85H) C. TRISA (85H) D. PCLATH (8A) Ans:C
Q.39 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1
B. Only Bank 2
C. Either Bank 1 or Bank 2
D. Neither Bank 1 nor Bank 2 Ans:C
Q.40 Which bit of OPTION register has a potential to decide the falling or rising edge
sensitivity for the external interrupt INT?
A. RBPU B.INTEDG C.PSA D.RTS Ans:B
Q.41 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC
B. Only Watchdog timer
C. Either RTCC or Watchdog timer
D. Neither RTCC nor Watchdog timer Ans:C
Q.42 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C.ADRES D.PCLATH Ans:B
Q.43 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B.ADIE C.RBIE D.TOIE Ans:A
Q.44 When does it become possible for a bit to get accessed from bank ‘0’ in the direct
addressing mode of PICs?
A. Only when RPO bit is set ‘zero’
B. Only when RPO bit is set ‘1’
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.45 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of ‘interrupt on change’?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.46 What is the purpose of acquiring two different bits from INTCON register for
performing any interrupt operation in PIC 16C61 / 71?
A. One for enabling & one for disabling the interrupt
B. One for enabling the interrupt & one for its occurrence detection
C. One for setting or clearing the RBIE bit
D. None of the above Ans:B
Q.47 What kind of external edge-sensitive interrupt is generated due to transition effect
at pin RBO/INT?
A. INT
B. RBO
C. INTF
D. All of the above Ans:A
Q.49 What is the purpose of setting TOIE bit in INTCON along with GIE bit?
A. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow
interrupt
B. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow
interrupt
C. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
D. None of the above Ans:A
Q.50 Which command enables the PIC to enter into the power down mode during the
operation of watchdog timer (WDT)?
A. SLEEP B. RESET C. STATUS D. CLR Ans:A
Q.51 How much delay is required to sunchronize the externalclock at TOCKI in Timer 0
of Pic16FXXX?
A. 2 cycles B. 4cycles C. 6cycles D. 8cycles Ans:A
Q.52 How much time is required for conversion per channel if PIC possesses four analog
channels, each comprising of 8 bits?
A. 10 µs B.15 µs C.20 µs D. 25µs Ans: C
Q.53 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT) B.Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT) D.All of the above
Ans:C
Q.54 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B.Digits Carry bit (DC)
C. Both a & b D.None of the above Ans:B
Q.55 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th bit B.12th bit C.13th bit D.14th bit Ans:C
Q.56 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B.Low C. Moderate D. All of the above Ans:B
Q.58 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode B.Sleep mode C.Power-down mode D.Any flexible mode Ans:B
Q.59 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 cycles B.1024 cycles C.2048 cycles D. 4096 cycles Ans:B
Q.60 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A.For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.61 Which program location is allocated to the program counter by the reset function
in Power-onReset (POR) action modes?
A. Initial address B.Middle address
C.Final address D.At any address reliable for reset operations Ans: A
Q.62 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans: B
Q.63 What output is generated by OSC2 pin in PIC oscillator comprising RC components
for sychronizing the peripherals with PIC microcontroller?
A.(1/2) x frequency of OSC1
B.(1/4) x frequency of OSC1
C.(1/8) x frequency of OSC1
D.(1/16) x frequency of OSC1 Ans: C
Q.65 What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
A.CPU resets PIC once again in BOR mode
B.BOR reset mode gets disabled
C.PIC does not remain in BOR mode until the voltage increases irrespective of
stability
D.Power-up timer kills 72ms more again
Ans: A
Q.66 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC B.LP (Low-Power Clocking) C. XT D. HS (High Speed) Ans: B
Q.68 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ceramic/ resonator or any other external clock source?
A. 0-4 MHz B. 5-200 KHz C. 100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.69 Which bits play a crucial role in specifying the details or reasons associated with
the system wake-up in WDT?
A. PD’ & TO’ B. C & Z C. DC & RPO D. All of the above Ans:A
Q.70 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B. ADIE C. RBIE D. TOIE Ans: A
Q.71 Which instruction is applicable to set any bit while performing bitwise operation
settings?
A. bcf B. bsf C. Both A & B D. None of the above Ans:B
Q.72 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
A. Provision of MPLAB specific extensions
B. Floating-point Format Support
C. Data in Program Memory
D. All of the above Ans:D
Q.73 What does the 'program idata' section of data memory contain in C-18 Compiler?
A. statically assigned/allocated initialized user variables
B. statically assigned /allocated uninitialized user variables
C. only executable instructions
D. variables as well as constants Ans:A
Q.74 Where is the result stored after an execution of increment and decrement operations over
the special - purpose registers in PIC?
A. File Register B. Working Register C. Both A & B D. None of the above Ans:C
Q.75 Which flags of status register are most likely to get affected by the single-cycle increment
and decrement instructions?
A. P Flags B. C Flags C. OV Flags D. Z Flags Ans:D
Q.76 Which command-line option of compiler exhibits the banner comprising overall number of
errors, messages, warnings and version number after an accomplishment of the
compilation process?
A. help B. verbose C. overlay D. char Ans:B
Q.77 Which among the below assertions represent the salient features of PIC in C-18 compiler?
A. Transparent read/ write access to an external memory
B. Provision of supporting an inline assembly during the necessity of an overall control
C. Integration with MPLAB IDE for source-level debugging
D. All of the above Ans:D
Q.78 Which bit plays a salient role in defining the master or slave mode in TXSTA register
especially in synchronous mode?
A. RSRC B. CSRC C. SPEN D. SYNC Ans:B
Q.79 What is the status of shift clock supply in an USART synchronous mode?
A. Master-internally, Slave-externally
B. Master-externally, Slave-internally
C. Master & Slave (both) - internally
D. Master & Slave (both) – externally Ans:A
Q.80 When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of
'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.81 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to turn
on the weak internal pull-ups of port B?
A.RPO B.RPBU’ C. RBIF D.All of the above Ans:B
Q.82 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C. ADRES D.PCLATH Ans:B
Q.83 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC B. Only Watchdog timer
C. Either RTCC or Watchdog timer D. Neither RTCC nor Watchdog timer Ans:C
Q.84 Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity
for the external interrupt INT?
A. RBPU B. INTEDG C. PSA D. RTS Ans:B
Q.85 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1 B. Only Bank 2
C. Either Bank 1 or Bank 2 D. Neither Bank 1 nor Bank 2 Ans:C
Q.86 Which register acts as an input-output control as well as data direction register for PORTA
in bank 2 of RFS?
A. INDF B. TRISB C.TRISA D.PCLATH Ans:C
Q.87 Which registers are adopted by CPU and peripheral modules so as to control and handle
the operation of device inhibited in RFS?
A. General Purpose Register B. Special Purpose Register
C. Special Function Registers D. All of the above Ans:C
Q.88 How many bits are utilized by the instruction of direct addressing mode in order to address
the register files in PIC?
A. 2 B. 5 C. 7 D. 8 Ans:C
Q.89 When do the special address 004H get automatically loaded into the program counter?
A. After the execution of RESET action in program counter
B. After the execution of 'goto Mainline ' instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.90 Which significant feature/s of crystal source contribute/s to its maximum predilection and
utility as compared to other clock sources?
A. High accuracy B. Proficiency in time generation
C. Applicability in real-time operations D. All of the above Ans:D
Q.91 Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely
unique and distinct from other microcontrollers?
A. It can reset the PIC automatically in running condition
B. It can reset the PIC even when the supply voltage increases above 4V
C. It can reset the PIC without enabling the power-up timer
D. All of the above Ans:A
Q.92 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C B. C & D C. A, B & D D. A, B & C Ans:D
Q.93 is 16 bit register used as memory pointers in indirect addressing data
memory.
A. Status B. SFR C.GPR D. FSR Ans:D
Q.94 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
None of these C
None of these A
All of these D
None of these A
None of these B
None of these B
Interrupt
Service D
Routine
Interrupt
Vector B
Testbench
0028 A
0028 B
0028 C
IVT D
3-2-4-1 D
IR A
None of these B
JIE B
PIE A
PIE B
Peripheral Interrupt Enable (PEIE) bit is
INTCON RCON PIR
present in ______ register
To enable serial communication
interrupts which of the following bit(s) Only GIE Only PEIE Both of these
must be set?
To enable timer 0 interrupt which of the
Only GIE Only PEIE Both of these
following bit(s) must be set?
There are ___ registers to control
11 12 13
interrupt operation in PIC 18
In PIC18F, any interrupt source is
enabled when corresponding IE bit is 0 1 X
____.
Which of the following bit(s) control
operation of an interrupt source in Flag bit Enable bit Priority bit
PIC18 F?
The default ISR address in PIC18F is
0000 0008 0018
_____ h
Which of the following bit(s) indicate
Flag bit Enable bit Priority bit
that an interrupt event has occurred?
Which of the following bit(s) is used to
Flag bit Enable bit Priority bit
assign priority to an interrupt?
Setting of ___ and ____ bit allows
Enable,
program execution to branch to the Flag, Enable Flag, Priority
Priority
interrupt vector address.
If the interrupt is one of the peripheral
(timers 1,2 , serial, etc. ) we need to set
TMR0IE INT0IE PEIE
____ bit from INTCON register along
with GIE bit.
Which of the following interrupt has no
INT3 INT2 INT1
priority bit?
_____ interrupt has default high
INT0 INT1 INT2
priority.
For any interrupt source, to assign high
priority the corresponding IP bit must be 0 1 X
____.
For any interrupt source, to assign low
priority the corresponding IP bit must be 0 1 X
____.
Which of the following is not a core
TMR0 INT0 INT1
interrupt source?
Which of the following is not a
TMR3 TMR2 TMR1
peripheral interrupt source?
Which of the following is not a
TMR1 INT0 TMR2
peripheral interrupt source?
PIE A
None of these B
None of these A
14 C
None of these D
All of these D
0028 B
All of these A
All of these C
All of these A
RBIE C
INT0 D
All of these D
None of these B
None of these A
Serial
D
Transmit
TMR0 D
Serial
B
Transmit
Upon power-on reset the external Negative
Positive edge Positive level
hardware interrupts INT0-INT2 are of edge
triggered triggered
type _____. triggered
Which of the following avoids tying
Interrupts Polling Both of these
down the microcontroller?
PIC 18 ha ____ external hardware
1 2 3
interrupts.
External hardware interrupts of PIC18F
E D C
are multiplexed with port ____ lines.
PORTB-change interrupt is assocaied
4 3 2
with _____ lines of PORTB.
PORTB-change interrupt is assocaied
RB0-RB3 RB2-RB5 RB3-RB6
with _____ lines of PORTB.
Register Select pin of LCD selects_____
Status Command Data
register when it is 0.
Register Select pin of LCD selects_____
Status Command Data
register when it is 1.
In LCD, R/W = 0 is _____ mode Read Write Both of these
In LCD, R/W = 0 is _____ mode Read Write Both of these
Negative level
A
triggered
None of these A
4 C
B D
1 A
RB4-RB7 D
Program B
Program C
None of these B
None of these A
Question Option A Option B
PIC 18 Microcontroller is based on ____
architecture. Von
Harvard
Neumann
1
PIC stands for _______ Peripheral Peripheral
Intelligent Interface
2 Controller Controller
PIC 18 F is _____ bit microcontroller.
4 8
3
Operating frequency for PIC 18F is DC to
____ MHz 10 20
4
Genearl features of PIC 18F controller Watchdog
Timers
5 are ______ Timers
PIC 18F452 uses ______ architecture.
RISC CISC
6
PIC 18F452 has ____ program ROM
1 kB 2 kB
7
PIC 18F452 has ____ kB data RAM
1 2
8
___ address lines are used to access
4 8
9 data RAM in PIC 18 microcontroller.
___ address lines are used to access
18 19
10 program ROM in PIC 18 microcontroller.
40 pin PIC 18 F microcontroller has ____
I/O ports 3 4
11
Which of the following is not a 8 bit
A B
12 port?
Size of Port A in PIC 18 microcontroller is
___ bits. 5 6
13
Size of Port E in PIC 18 microcontroller is
___ bits. 3 4
14
FLASH Program Memory of PIC18F452 is _______
128K 64K
15
PIC18F452 has total _____ pins .
40 20
16
Instruction set of PIC18F452 has
_________instructions 33 35
17
PIC18F452 has _____ ADC 8 BIT 10 BIT
18
PORT names of PIC18F452 are
0,1 0,1,2,3,4
19
PIC18F452 has power down modes :
sleep, deep
sleep, idle
sleep
20
Option C Option D Answer
Programmabl Programmable
e Interface Intelligent B
Controller Controller
16 32 B
30 40 D
1 MB 2 MB D
4 8 C
12 16 C
20 21 D
5 6 C
C D A
7 8 B
5 6 A
32K 16K C
16 8 A
40 75 D
12 BIT 14 BIT B
A,B,C,D,E A,B,C C
deep sleep,
idle, deep
deep power A
sleep
down
WDT stands for _______ Watch Watch Dog
21 Down Timer Timer
PIC18F542 has ____program counter
8-bit 16-bit
22
Each instruction has two parts
Opcode and Opcode and
Register Operand
23
ADDWFC, SUBWF are
Move and
Arithmatic
Load
Instructions
instructions
24
MSSP stands for_____ Master
Master
Synchronou
Synchronou
s Serial
s slave Port
25 Peripheral
Flag 'N' in Status register of PIC18F452 denotes Negative
Zero Flag
26 Flag
How many banks are available in PIC 18F452
12 16
27
What is the significance of "d=0" bit in
Result
ADDWF F D a Undefined
saved in F
28
BOD' stands for Brown OR Brown out
Reset Reset
29 Detection Detection
Circuit used for initialization of all values to default is named
Brown
as Out
Power-On
Detection
Reset Circuit
30 Circuit
In Immediate (Literal) addressing mode
The operand is _____ that follows the a register a number
31 opcode
PIC18F452 has power down modes as ____ deep power
Idle and
down and
sleep
32
idle
PIC18F452device can be operated
in____ oscillator Configuration modes. 10 12
33
The operation of the oscillator in OSCCONFIG
PIC18F4550 is controlled through two CONFIG2
1 and
Configuration registers as _______ and
OSCCONFIG
CONFIG2
34
2
MSSP module of PIC18F452 has ADC and
SPI and I2C
35 PWM
USART means Univeral Univeral
Synchrnous Synchrnous
Asynchrono Asymmatric
us Register Receive
36 Transmit Transmit
Width Delay Watch Delay
B
Timer Timer
20-bit 21-bit D
Branch Logical
A
instructions instructions
Master
Master Slave
Synchronous C
Serial Port
Serial Port
10 14 B
Power
ON/OFF WDT circuit A
circuit
a pointer an address B
14 16 B
USART and
I2C and PWM B
CCP
Univeral
Univeral Serial
Synchrnous
Asynchronous
Asynchronous C
Receive
Receive
Transmit
Transmit
CONFIG2L is used for Frequency Background
37
Selection debugger
The instruction SLEEP in PIC 18F458 : Keeps Keeps
Oscillator Microcontr
for oller in
peripherals standby
38 OFF mode
Where is the result stored after an
execution of increment and decrement Working
File Register
operations over the special - purpose Register
39 registers in PIC?
Which status bits exhibit carry from
lower 4 bits during 8-bit addition and Digits Carry
Carry bit
are especially beneficial for BCD bit (DC)
40 addition ?
Watch dog
Reset voltage D
timer
None of the
Both a & b C
above
None of the
Both a & b B
above
Question Option A Option B Option C Option D
D
Calculate initial count to be loaded in
timer0 (8 bit mode) with prescaler of
FB h FC h FD h FE h
256 to generate time delay of 5
milliseconds. Assume crystal F = 10 MHz
Find timer's clock frequency with crystal
frequency = 16 MHz and prescaler of 1: 0.2 MHz 0.25 MHz 0.4 MHz 0.45 MHz
16
B
Timer 1 Interrupt flag bit is present in
T1CON INTCON PIR1 TMR1L
______ register.
D
B
C
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit IV MCQs
Q.1 How does the pin RC2/CCP1 get configured while initializing the CCP module in the
compare mode of operation?
a. As an input by writing it in TRISC register
b. As an output by writing it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC register
d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
Ans:d
Q.2 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans:a
Q.3 The capture operation in counter mode is feasible when mode of CCP module is
__ _ __
a. synchronized
b. asynchronized
c. synchronized as well as asynchronized
d. irrespective of synchronization
Ans:a
Q.4 Which register is suitable for the corresponding count, if the measurement of pul se
width is less than 65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
Ans:c
Q.5 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR Ans:a
Q.6 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.7 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.8 Which among the below mentioned aspect issues are supported by
capture/compare/PWM modules corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
Ans:d
Q.9 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.10 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.11 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR
Ans:a
Q.12 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans: a
Q.13 How does the pin RC2/CCP1 get configured while initializing the CCP module in
the compare mode of operation?
a. As an input by writing it in TRISC register
b. As an output by writing it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC register
d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
Ans: b
Q.14 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0
Ans: a
Q.15 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above
Ans: b
Q.16 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.17 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value
Ans: b
Q.18 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter ?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components
Ans: a
Q.19 In ____ _ data transfer, group of bits (usually 8 bits) of data is transferred at a
time.
a. Parallel b. Serial c. simplex d. None of the above Ans: a
Q.20 In ____ _ data transfer, only one bit of data is transferred at a time.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.24 In _____ data communication, during transmission parallel data is converted into
serial bits using a PISO shift register.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.25 At the receiver, the serial bits are connected into parallel data by another shift
register called SIPO register.
a. TRUE b. FALSE Ans: a
Q.26 In ____ __, the hardware exists such that data transfer takes place only in one
direction.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: a
Q.28 The ______ transmission allows the data transfer in both directions, but not
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: b
Q.30 The ______ transmission allows the data transfer in both directions
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: c
Q.36 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.37 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.38 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0 Ans: a
Q.39 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above Ans: b
Q.40 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.41 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value Ans: b
Q.42 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components Ans: a
Q.43 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.44 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.45 What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave
mode by enabling SS pin control?
a. 0000 b. 0100 c. 0010 d. 0001 Ans: b
Q.46 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD
b. SSPBUF
c. Both a & b
d. None of the above Ans: a
Q.47 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.48 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line
b. SDA line
c. Both a & b
d. None of the above Ans: b
Q.49 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c. 16 d. 32 Ans: a
Q.50 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA
b. RCSTA
c. SPBRG
d. All of the above Ans: a
Q.51 What is the purpose of a special function register SPBRG in USART?
a. To control the operation associated with baud rate generation
b. To control an oscillator frequency
c. To control or prevent the false bit transmission of 9th bit
d. All of the above Ans: a
Q.52 Why is the flag bit TXIF tested or examined in the PIR1 register after shifting all the
data bits during the initialization process of USART in asynchronous mode?
a. For ensuring the transmission of byte
b. For ensuring the reception of byte
c. For ensuring the on-chip baud rate generation
d. For ensuring the 9th bit as a parity Ans: a
Q.53 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode?
a. FOSC / 8 (X + 1)
b. FOSC / 16 (X + 1)
c. FOSC / 32 (X + 1)
d. FOSC / 64 (X + 1) Ans: b
Q.54 What is the status of shift clock supply in an USART synchronous mode?
a. Master-internally, Slave-externally
b. Master-externally, Slave-internally
c. Master & Slave (both) – internally
d. Master & Slave (both) – externally Ans: a
Q.55 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.56 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins as
DT (data lines)?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.57 Which among the below assertions represent the salient features of PIC in C-18
compiler?
a. Transparent read/ write access to an external memory
b. Provision of supporting an inline assembly during the necessity of an overall control
c. Integration with MPLAB IDE for source-level debugging
d. All of the above Ans: d
Q.58 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
a. Provision of MPLAB specific extensions
b. Floating-point Format Support
c. Data in Program Memory
d. All of the above Ans: d
Q.59 Which flags of status register are most likely to get affected by the single-cycle
increment and decrement instructions?
a. P Flags b. C Flags c. OV Flags d. Z Flags Ans: d
Q.60 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.70 The rate at which the bits are transmitted (bits/second) is called ____ _.
a. speed b. bit rate c. baud d. sample Ans: c
Q.72 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.73 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.74 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD b. SSPBUF c. Both a & b d. None of the above Ans: a
Q.75 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.76 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line b. SDA line c. Both a & b d. None of the above Ans: b
Q.77 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c.16 d.32 Ans: a
Q.78 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA b. RCSTA c. SPBRG d. All of the above Ans: a
Q.81 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode ?
a. FOSC / 8 (X +1 )
b. FOSC / 16 (X +1 )
c. FOSC / 32 (X +1 )
d. FOSC / 64 (X +1 ) Ans: b
Q.82 What is the status of shift clock supply in an USART synchronous mode?
a. Master - internally, Slave - externally
b. Master - externally, Slave - internally
c. Master & Slave (both) - internally
d. Master & Slave (both)- externally Ans: a
Q.83 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode ?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.84 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins
as DT (data lines) ?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.87 SDA is having a transition when the clock line SCL is high.
a. high to low b. low to high c. low to low d. high to high Ans: a
Q.100 Synchronous interfaces make use of clock signal? State True or False
a. True b. False Ans: a
Q.101 Which of the following serial protocol is used for on-board serial communication?
a. USB b. I2C c. Wifi d. Bluetooth Ans: b
Q.102 Which of the following protocol make use of 7 bit address for its operation?
a. I2C b. SPI c. RS232 d. RS485 Ans: a
Q.103 Which of the following interface is used to 127 slave device to the master device?
a. SPI b. I2C c. RS232 d. RS485 Ans: b
Q.104 RS232 protocol makes use of clock signal for sending data? True or False
a. True b. False Ans: b
Q.105 Which serial communication interface is used to connect modems and for non
networked communication between computers and other devices?
a. SPI b. I2C c. UART d. USB Ans: c
Q.108 Which of the following make use of 4 wires for its operation?
a. USB b. CAN c. SPI d. I2C Ans: c
Q.111 Which of the following supports only point to point communication and not
suitable for multi drop communication
a. RS485 b. RS232 c. RS422 d. Rs484 Ans: b
Q.112 Which of the following is a low cost, low power, short range wireless
communication for voice and data
a. Wi-Fi b. Infrared c. Zigbee d. Bluetooth Ans: d
Q.113 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.114 Which bits exhibit and signify the termination phase of the character
transmission and reception in SCON special function register?
a. Control bits
b. Status bits
c. Both a & b
d. None of the above Ans: b
Q.3 A single IC which consists of ALU, control section and Register section is called
as
A.Microprocessor B. Microcontroller
C.Minicomputer D. None of the above Ans:A
Q.4 What is the name of the system which carries only the control and timing
signals
A. Address Bus B. Data Bus C. Control Bus D. System Bus Ans:C
Q.6 Interpreter translates language into machine level language and the
translation is done line by line.
A. Low B. High Ans:B
Q.8 enables the programmers to run the program step by step so that the
programmer can find out the exact location of the error.
A. Assembler B. Linker C. Loader D. Debugger Ans:D
Q.13 The process of interrupting the normal program execution to carry out a specific
task/work is referred to as .
A. Interrupt B. ISR C. Macro D. Procedure Ans:A
Q.14 Register that is used to hold the memory address of the next instruction to be
executed is
A. Program Memory B. Program Counter
C. Control Unit D. Instruction Decoder Ans:B
Q.16 The has built-in ROM,RAM, Parallel I/O, Serial I/O, counters and
clock circuit.
A. Microcontroller B. Microprocessor
C. Mainframe computers D. none of the above Ans: A
Q.26 used for control and status of the controller and peripheral functions.
A. SFRs B. GPRs C. WREG D. FSRs Ans: A
Q.27 used for data storage and scratchpad operations in the user’s
application.
A. SFRs B. GPRs C. WREG D. FSRs Ans: B
Q.29 register that stores flags- indicates the status of the operation done
by ALU.
A. Status B. SFR C.GPR D. FSR Ans:A
Q.32 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Q.39 Flag is set whenever the result of signed number operation is too large,
causing the high order bit to over flow in to sign bit.
A. Carry B. Negative C.Over Flow D. Zero Ans:C
Q. 40 After execution of ALU operations, if bit 7 of the result is 1, the flag is set
indicating result is negative.
A. Digit Carry B. Carry C. Over Flow D. Negative Ans:D
Q. 42 When using addressing, the BSR is used to select the desired bank.
A. Direct B. Indirect C. Implied D. Immediate Ans: A
Q. 43 Indirect addressing requires use of .
A. SFRs B. GPRs C. PC D. FSRs Ans: D
Q.44 Each FSR holds a bit address value that can be used to access any location
in the data memory map without banking.
A. 10 B. 11 C. 12 D. 13 Ans: C
Q.47 In addressing mode, the letter ‘F’ in the instruction means the address of
the File Register location.
A. Direct B. Indirect C. Immediate D. Register Ans:D
Q.48 The ECIO oscillator mode functions like the EC mode, except that the
OSC2 pin becomes an additional general purpose I/O pin.
A. True B. False Ans:A
Q.49 The PLL can only be enabled when the oscillator configuration bits are
programmed for HS mode.
A. True B. False Ans:A
Q.50 In the Sleep mode, the on-chip clocks and oscillator are turned off.
A. True B. False Ans:A
Sinhgad College of Engineering, Pune41
Department of Information Technology
Course – Processor Architecture
Unit II MCQs
Q.1 When does it become possible for a bit to get accessed from bank '0' in the direct
addressing mode of PICs?
A. Only when RPO bit is set 'zero'
B. Only when RPO bit is set '1'
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.2 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to
turn on the weak internal pull-ups of port B?
A. RPO’ B. RPBU’ C. RBIF D. All of the above Ans:B
Q.3 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of 'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.4 Which digital operations are performed over the detected mismatch outputs with
an intention to generate a single output RB port change output?
A. OR B. AND C. EXOR D. NAND Ans: A
Q.5 How many clock pulses are confined by each machine cycle of Peripheral-Interface
Controllers?
A. 4 B. 8 C.12 D. 16 Ans:A
Q.6 Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
A. Carry (C) Flags B. Zero (Z) Flags
C. Digit Carry (DC) Flags D. All of the above Ans:D
Q.7 What is the execution speed of instructions in PIC especially while operating at the
maximum value of clock rate?
A. 0.1 μs B. 0.2 μs C. 0.4 μs D. 0.8 μs Ans: B
Q.8 Which operational feature of PIC allows it to reset especially when the power supply
drops the voltage below 4V?
A. Built-in Power-on-reset B. Brown-out reset
C. Both a & b D. None of the above Ans:B
Q.9 Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
A. Improvement in bandwidth
B. Instruction fetching becomes possible over a single instruction cycle
C. Independent bus access provision to data memory even while accessing the
program memory
D. All of the above Ans:D
Q.10 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C
B. C&D
C. A, B & D
D. A, B & C Ans:D
Q.11 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT)
B. Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT)
D. All of the above Ans:C
Q. 12 Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
A. Status Register
B. Program Counter Latch (PCLATH) Register
C. Program Counter Low Byte (PCL) Register
D. File Selection Register (FSR) Ans: B
Q.13 Which register/s is/are mandatory to get loaded at the beginning before loading or
transferring the contents to corresponding destination registers?
A. W B. INDF C. PCL D. All of the above Ans: A
Q.14 How many RPO status bits are required for the selection of two register banks?
A. 1 B.2 C. 8 D. 16 Ans: A
Q.15 The RPO status register bit has the potential to determine the effective address
of
A. Direct Addressing Mode
B. Indirect Addressing Mode
C. Immediate Addressing Mode
D. Indc. Watchdog Timer (WDT) exed Addressing Mode Ans:A
Q.16 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B. Digits Carry bit (DC)
C. Both A & B D. None of the above Ans:B
Q.17 Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
A. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
B. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
C. Address byte must be written in FSR at the same time during the execution of
INDF instruction in indirect addressing mode
D. Address byte must be always written in FSR as it is independent of any
instruction in indirect addressing mode
A. Only A B. Only B C. Only A & B D. A & D Ans:A
Q.18 Which among the below stated registers specify the address reachability within 7
bits of address independent of RP0 status bit register?
A. PCL B. FSR C. INTCON D. All of the above Ans:D
Q.19 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th Bit B. 12th Bit C. 13th Bit D. 14th Bit Ans:C
Q.20 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B. Low C. Moderate D. All of the above Ans:B
Q.22 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 Cycles B. 1024 Cycles C. 2048 Cycles D.4096 Cycles Ans:B
Q.23 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode
B. Sleep mode
C. Power-down mode
D. Any flexible mode Ans:B
Q.24 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A. For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.25 Which program location is allocated to the program counter by the reset function
in Power-on-Reset (POR) action modes?
A. Initial address
B. Middle address
C. Final address
D. At any address reliable for reset operations Ans:A
Q.26 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans:B
Q. 27 Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
A. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
Q.30 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC
B. LP (Low-Power Clocking)
C. XT
D. HS (High Speed) Ans:B
Q.32 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ ceramic/ resonator or any other external clock source?
A.0-4 MHz B. 5-200 KHz C.100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.33 How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
A. 4 & 8 bits B. 8 & 16 bits C. 11 & 12 bits D. 12 & 16 bits Ans:C
Q.34 When do the special address 004H get automatically loaded into the program
counter?
A. After the execution of RESET action in program counter
B. After the execution of ‘goto Mainline ‘ instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.35 How many bits are utilized by the instruction of direct addressing mode in order to
address the register files in PIC?
A. 2 B.5 C.7 D.8 Ans:C
Q.36 Which registers are adopted by CPU and peripheral modules so as to control and
handle the operation of device inhibited in RFS?
A. General Purpose Register
B. Special Purpose Register
C. Special Function Register
D. All of the above Ans:C
Q.37 Which among the below specified registors are addressable only from bank1 of
RFS?
A. PORTA (05H)
B. PORTB (06H)
C. FSR (04H)
D. ADCON0 (07H) Ans:A
Q.38 Which register acts as an input-output control as well as data direction register for
PORTA in bank 2 of RFS?
A. INDF (80H) B. TRISB (85H) C. TRISA (85H) D. PCLATH (8A) Ans:C
Q.39 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1
B. Only Bank 2
C. Either Bank 1 or Bank 2
D. Neither Bank 1 nor Bank 2 Ans:C
Q.40 Which bit of OPTION register has a potential to decide the falling or rising edge
sensitivity for the external interrupt INT?
A. RBPU B.INTEDG C.PSA D.RTS Ans:B
Q.41 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC
B. Only Watchdog timer
C. Either RTCC or Watchdog timer
D. Neither RTCC nor Watchdog timer Ans:C
Q.42 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C.ADRES D.PCLATH Ans:B
Q.43 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B.ADIE C.RBIE D.TOIE Ans:A
Q.44 When does it become possible for a bit to get accessed from bank ‘0’ in the direct
addressing mode of PICs?
A. Only when RPO bit is set ‘zero’
B. Only when RPO bit is set ‘1’
C. Only when RPO bit is utilized along with 7 lower bits of instruction code
D. Cannot Predict Ans:A
Q.45 When does it become feasible for portB pins (RB4 to RB7) to support its unique
feature of ‘interrupt on change’?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.46 What is the purpose of acquiring two different bits from INTCON register for
performing any interrupt operation in PIC 16C61 / 71?
A. One for enabling & one for disabling the interrupt
B. One for enabling the interrupt & one for its occurrence detection
C. One for setting or clearing the RBIE bit
D. None of the above Ans:B
Q.47 What kind of external edge-sensitive interrupt is generated due to transition effect
at pin RBO/INT?
A. INT
B. RBO
C. INTF
D. All of the above Ans:A
Q.49 What is the purpose of setting TOIE bit in INTCON along with GIE bit?
A. For setting the TOIF flag in INTCON due to generation of Timer 0 overflow
interrupt
B. For setting the TOIE flag in INTCON due to generation of Timer 0 overflow
interrupt
C. For setting the RBIF flag in INTCON due to generation of PORTB change interrupt
D. None of the above Ans:A
Q.50 Which command enables the PIC to enter into the power down mode during the
operation of watchdog timer (WDT)?
A. SLEEP B. RESET C. STATUS D. CLR Ans:A
Q.51 How much delay is required to sunchronize the externalclock at TOCKI in Timer 0
of Pic16FXXX?
A. 2 cycles B. 4cycles C. 6cycles D. 8cycles Ans:A
Q.52 How much time is required for conversion per channel if PIC possesses four analog
channels, each comprising of 8 bits?
A. 10 µs B.15 µs C.20 µs D. 25µs Ans: C
Q.53 Which timer/s possess an ability to prevent an endless loop hanging condition of
PIC along with its own on-chip RC oscillator by contributing to its reliable
operation?
A. Power-Up Timer (PWRT) B.Oscillator Start-Up Timer (OST)
C. Watchdog Timer (WDT) D.All of the above
Ans:C
Q.54 Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C) B.Digits Carry bit (DC)
C. Both a & b D.None of the above Ans:B
Q.55 Where do the contents of PCLATH get transferred in the higher location of program
counter while writing in PCL (Program Counter Latch)?
A. 11th bit B.12th bit C.13th bit D.14th bit Ans:C
Q.56 Which condition/s of MCLR (master clear) pin allow to reset the PIC?
A. High B.Low C. Moderate D. All of the above Ans:B
Q.58 Which kind of mode is favorable for MCLR pin for indulging in reset operations?
A. Normal mode B.Sleep mode C.Power-down mode D.Any flexible mode Ans:B
Q.59 What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
A. 512 cycles B.1024 cycles C.2048 cycles D. 4096 cycles Ans:B
Q.60 What is the purpose of using the start-up timers in an oscillator circuit of PIC?
A.For ensuring the inception and stabilization of an oscillator in a proper manner
B. For detecting the rise in VDD
C. For enabling or disabling the power-up timers
D. For generating the fixed delay of 72ms on power-up timers Ans:A
Q.61 Which program location is allocated to the program counter by the reset function
in Power-onReset (POR) action modes?
A. Initial address B.Middle address
C.Final address D.At any address reliable for reset operations Ans: A
Q.62 When does it become very essential to use the external RC components for the
reset circuits?
A. Only if initialization is necessary for RAM locations
B. Only if VDD power-up slope is insufficient at a requisite level
C. Only if voltage drop exceeds beyond the limit
D. Only if current limiting factor increases rapidly Ans: B
Q.63 What output is generated by OSC2 pin in PIC oscillator comprising RC components
for sychronizing the peripherals with PIC microcontroller?
A.(1/2) x frequency of OSC1
B.(1/4) x frequency of OSC1
C.(1/8) x frequency of OSC1
D.(1/16) x frequency of OSC1 Ans: C
Q.65 What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
A.CPU resets PIC once again in BOR mode
B.BOR reset mode gets disabled
C.PIC does not remain in BOR mode until the voltage increases irrespective of
stability
D.Power-up timer kills 72ms more again
Ans: A
Q.66 Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
A. RC B.LP (Low-Power Clocking) C. XT D. HS (High Speed) Ans: B
Q.68 What is the executable frequency range of High speed (HS) clocking method by
using cystal/ceramic/ resonator or any other external clock source?
A. 0-4 MHz B. 5-200 KHz C. 100kHz- 4 MHZ D. 4-20 MHz Ans:D
Q.69 Which bits play a crucial role in specifying the details or reasons associated with
the system wake-up in WDT?
A. PD’ & TO’ B. C & Z C. DC & RPO D. All of the above Ans:A
Q.70 Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an
INTCON register?
A. GIE B. ADIE C. RBIE D. TOIE Ans: A
Q.71 Which instruction is applicable to set any bit while performing bitwise operation
settings?
A. bcf B. bsf C. Both A & B D. None of the above Ans:B
Q.72 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
A. Provision of MPLAB specific extensions
B. Floating-point Format Support
C. Data in Program Memory
D. All of the above Ans:D
Q.73 What does the 'program idata' section of data memory contain in C-18 Compiler?
A. statically assigned/allocated initialized user variables
B. statically assigned /allocated uninitialized user variables
C. only executable instructions
D. variables as well as constants Ans:A
Q.74 Where is the result stored after an execution of increment and decrement operations over
the special - purpose registers in PIC?
A. File Register B. Working Register C. Both A & B D. None of the above Ans:C
Q.75 Which flags of status register are most likely to get affected by the single-cycle increment
and decrement instructions?
A. P Flags B. C Flags C. OV Flags D. Z Flags Ans:D
Q.76 Which command-line option of compiler exhibits the banner comprising overall number of
errors, messages, warnings and version number after an accomplishment of the
compilation process?
A. help B. verbose C. overlay D. char Ans:B
Q.77 Which among the below assertions represent the salient features of PIC in C-18 compiler?
A. Transparent read/ write access to an external memory
B. Provision of supporting an inline assembly during the necessity of an overall control
C. Integration with MPLAB IDE for source-level debugging
D. All of the above Ans:D
Q.78 Which bit plays a salient role in defining the master or slave mode in TXSTA register
especially in synchronous mode?
A. RSRC B. CSRC C. SPEN D. SYNC Ans:B
Q.79 What is the status of shift clock supply in an USART synchronous mode?
A. Master-internally, Slave-externally
B. Master-externally, Slave-internally
C. Master & Slave (both) - internally
D. Master & Slave (both) – externally Ans:A
Q.80 When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of
'interrupt on change'?
A. By configuring all the pins (RB4-RB7) as inputs
B. By configuring all the pins (RB4-RB7) as outputs
C. By configuring any one of the pins as inputs
D. By configuring any one of the pins as outputs Ans:A
Q.81 Which bit/s should be necessarily cleared in OPTION (SFR) register in order to turn
on the weak internal pull-ups of port B?
A.RPO B.RPBU’ C. RBIF D.All of the above Ans:B
Q.82 Where is the exact specified location of an interrupt flag associated with analog-to-
digital converter?
A. INTCON B. ADCON0 C. ADRES D.PCLATH Ans:B
Q.83 Where are the prescalar assignments applied with a usage of PSA bit?
A. Only RTCC B. Only Watchdog timer
C. Either RTCC or Watchdog timer D. Neither RTCC nor Watchdog timer Ans:C
Q.84 Which bit of OPTION register has a potential to decide the falling or rising edge sensitivity
for the external interrupt INT?
A. RBPU B. INTEDG C. PSA D. RTS Ans:B
Q.85 Which bank of RFS has a provision of addressing the status register?
A. Only Bank 1 B. Only Bank 2
C. Either Bank 1 or Bank 2 D. Neither Bank 1 nor Bank 2 Ans:C
Q.86 Which register acts as an input-output control as well as data direction register for PORTA
in bank 2 of RFS?
A. INDF B. TRISB C.TRISA D.PCLATH Ans:C
Q.87 Which registers are adopted by CPU and peripheral modules so as to control and handle
the operation of device inhibited in RFS?
A. General Purpose Register B. Special Purpose Register
C. Special Function Registers D. All of the above Ans:C
Q.88 How many bits are utilized by the instruction of direct addressing mode in order to address
the register files in PIC?
A. 2 B. 5 C. 7 D. 8 Ans:C
Q.89 When do the special address 004H get automatically loaded into the program counter?
A. After the execution of RESET action in program counter
B. After the execution of 'goto Mainline ' instruction in the program memory
C. At the occurrence of interrupt into the program counter
D. At the clearance of program counter with no value Ans:C
Q.90 Which significant feature/s of crystal source contribute/s to its maximum predilection and
utility as compared to other clock sources?
A. High accuracy B. Proficiency in time generation
C. Applicability in real-time operations D. All of the above Ans:D
Q.91 Which crucial feature/function of Brown-Out-Reset (BOR) makes the PIC to be completely
unique and distinct from other microcontrollers?
A. It can reset the PIC automatically in running condition
B. It can reset the PIC even when the supply voltage increases above 4V
C. It can reset the PIC without enabling the power-up timer
D. All of the above Ans:A
Q.92 Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
A. Excogitation of Inputs
B. Handling of Outputs
C. Interpretation of internal timing for program execution
D. Provision of OTP for large and small production runs
A. Only C B. C & D C. A, B & D D. A, B & C Ans:D
Q.93 is 16 bit register used as memory pointers in indirect addressing data
memory.
A. Status B. SFR C.GPR D. FSR Ans:D
Q.94 is a 21 bit register that holds the program memory address while executing
programs.
A. SFRs B. GPRs C. PC D. FSRs Ans: C
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
MICROPROCESSOR
BCA
IV Sem
MULTIPLE CHOICE QUESTIONS
1) Which is the microprocessor comprises:
a. Register section
b. One or more ALU
c. Control unit
d. All of these
2) What is the store by register?
a. data
b. operands
c. memory
d. None of these
3) Accumulator based microprocessor example are:
a. Intel 8085
b. Motorola 6809
c. A and B
d. None of these
4) A set of register which contain are:
a. data
b. memory addresses
c. result
d. all of these
5) There are primarily two types of register:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
6) Name of typical dedicated register is:
a. PC
b. IR
c. SP
d. All of these
7) BCD stands for:
a. Binary coded decimal
b. Binary coded decoded
c. Both a & b
d. none of these
8) Which is used to store critical pieces of data during subroutines and interrupts:
a. Stack
b. Queue
c. Accumulator
d. Data register
9) The data in the stack is called:
a. Pushing data
b. Pushed
c. Pulling
d. None of these
10) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
11) The processor 80386/80486 and the Pentium processor uses _____ bits address bus:
a. 16
b. 32
c. 36
d. 64
12) Which is not the control bus signal:
a. READ
b. WRITE
c. RESET
d. None of these
13) PROM stands for:
a. Programmable read‐only memory
b. Programmable read write memory
c. Programmer read and write memory
d. None of these
14) EPROM stands for:
a. Erasable Programmable read‐only memory
b. Electrically Programmable read write memory
c. Electrically Programmable read‐only memory
d. None of these
15) Each memory location has:
a. Address
b. Contents
c. Both A and B
d. None of these
16) Which is the type of microcomputer memory:
a. Processor memory
b. Primary memory
c. Secondary memory
d. All of these
17) Secondary memory can store____:
a. Program store code
b. Compiler
c. Operating system
d. All of these
18) Secondary memory is also called____:
a. Auxiliary
b. Backup store
c. Both A and B
d. None of these
19) Customized ROMS are called:
a. Mask ROM
b. Flash ROM
c. EPROM
d. None of these
20) The RAM which is created using bipolar transistors is called:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. DDR RAM
21) Which type of RAM needs regular referred:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
22) Which RAM is created using MOS transistors:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
23) A microprocessor retries instructions from :
a. Control memory
b. Cache memory
c. Main memory
d. Virtual memory
24) The lower red curvy arrow show that CPU places the address extracted from the memory
location on the_____:
a. Address bus
b. System bus
c. Control bus
d. Data bus
25) The CPU sends out a ____ signal to indicate that valid data is available on the data bus:
a. Read
b. Write
c. Both A and B
d. None of these
26) The CPU removes the ___ signal to complete the memory write operation:
a. Read
b. Write
c. Both A and B
d. None of these
27) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
28) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
29) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
30) Eight of the register are known as:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
31) The four index register can be used for:
a. Arithmetic operation
b. Multipulation operation
c. Subtraction operation
d. All of these
32) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
33) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
34) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
35) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
36) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
37) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
38) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
39) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
40) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
41) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
42) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
43) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
44) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
45) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
46) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
47) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
48) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
49) ________ is the most important segment and it contains the actual assembly language
instruction to be executed by the microprocessor:
a. Data segment
b. Code segment
c. Stack segment
d. Extra segment
50) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
51) Which are the factor of cache memory:
a. Architecture of the microprocessor
b. Properties of the programs being executed
c. Size organization of the cache
d. All of these
52) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
53) Which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
54) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
55) Microprocessor reference that are available in the cache are called______:
a. Cache hits
b. Cache line
c. Cache memory
d. All of these
56) Microprocessor reference that are not available in the cache are called_________:
a. Cache hits
b. Cache line
c. Cache misses
d. Cache memory
57) Which causes the microprocessor to immediately terminate its present activity:
a. RESET signal
b. INTERUPT signal
c. Both
d. None of these
58) Which is responsible for all the outside world communication by the microprocessor:
a. BIU
b. PIU
c. TIU
d. LIU
59) INTR: it implies the__________ signal:
a. INTRRUPT REQUEST
b. INTRRUPT RIGHT
c. INTRRUPT RONGH
d. INTRRUPT RESET
60) Which of the following are the two main components of the CPU?
a. Control Unit and Registers
b. Registers and Main Memory
c. Control unit and ALU
d. ALU and bus
61) Different components n the motherboard of a PC unit are linked together by sets of parallel
electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Consecutives
62) The language that the computer can understand and execute is called
a. Machine language
b. Application software
c. System program
d. All of the above
63) Which of the following is used as a primary storage device?
a. Magnetic drum
b. PROM
c. Floppy disk
d. All of these
64) Which of the following memories needs refresh?
a. SRAM
b. DRAM
c. ROM
d. All of above
65) The memory which is programmed at the time it is manufactured
a. PROM
b. RAM
c. PROM
d. EPROM
66) Which of the following memory medium is not used as main memory system?
a. Magnetic core
b. Semiconductor
c. Magnetic tape
d. Both a and b
67) Registers, which are partially visible to users and used to hold conditional, are known as
a. PC
b. Memory address registers
c. General purpose register
d. Flags
68) One of the main feature that distinguish microprocessors from micro‐computers is
a. Words are usually larger in microprocessors
b. Words are shorter in microprocessors
c. Microprocessor does not contain I/O devices
d. Exactly the same as the machine cycle time
69) The first microprocessor built by the Intel Corporation was called
a. 8008
b. 8080
c. 4004
d. 8800
70) An integrated circuit is
a. A complicated circuit
b. An integrating device
c. Much costlier than a single transistor
d. Fabricated on a tiny silicon chip
71) Most important advantage of an IC is its
a. Easy replacement in case of circuit failure
b. Extremely high reliability
c. Reduced cost
d. Low powers consumption
72) Which of the following items are examples of storage devices?
a. Floppy / hard disks
b. CD‐ROMs
c. Tape devices
d. All of the above
73) The Width of a processor’s data path is measured in bits. Which of the following are common
data paths?
a. 8 bits
b. 12 bits
c. 16 bits
d. 32 bits
74) Which is the type of memory for information that does not change on your computer?
a. RAM
b. ROM
c. ERAM
d. RW / RAM
75) What type of memory is not directly addressable by the CPU and requires special softw3are
called EMS (expanded memory specification)?
a. Extended
b. Expanded
c. Base
d. Conventional
76) Before a disk can be used to store data. It must be…….
a. Formatted
b. Reformatted
c. Addressed
d. None of the above
77) Which company is the biggest player in the microprocessor industry?
a. Motorola
b. IBM
c. Intel
d. AMD
78) A typical personal computer used for business purposes would have… of RAM.
a. 4 KB
b. 16 K
c. 64 K
d. 256 K
78) The word length of a computer is measured in
a. Bytes
b. Millimeters
c. Meters
d. Bits
79) What are the three decisions making operations performed by the ALU of a computer?
a. Grater than
b. Less than
c. Equal to
d. All of the above
80) Which part of the computer is used for calculating and comparing?
a. Disk unit
b. Control unit
c. ALU
d. Modem
81) Can you tell what passes into and out from the computer via its ports?
a. Data
b. Bytes
c. Graphics
d. Pictures
82) What is the responsibility of the logical unit in the CPU of a computer?
a. To produce result
b. To compare numbers
c. To control flow of information
d. To do math’s works
83) The secondary storage devices can only store data but they cannot perform
a. Arithmetic Operation
b. Logic operation
c. Fetch operations
d. Either of the above
84) Which of the following memories allows simultaneous read and write operations?
a. ROM
b. RAM
c. EPROM
d. None of above
85) Which of the following memories has the shortest access times?
a. Cache memory
b. Magnetic bubble memory
c. Magnetic core memory
d. RAM
86) A 32 bit microprocessor has the word length equal to
a. 2 byte
b. 32 byte
c. 4 byte
d. 8 byte
87) An error in computer data is called
a. Chip
b. Bug
c. CPU
d. Storage device
88) The silicon chips used for data processing are called
a. RAM chips
b. ROM chips
c. Micro processors
d. PROM chips
89) The metal disks, which are permanently housed in, sealed and contamination free containers
are called
a. Hard disks
b. Floppy disk
c. Winchester disk
d. Flexible disk
90) A computer consists of
a. A central processing unit
b. A memory
c. Input and output unit
d. All of the above
91) The instructions for starting the computer are house on
a. Random access memory
b. CD‐Rom
c. Read only memory chip
d. All of above
92) The ALU of a computer normally contains a number of high speed storage element called
a. Semiconductor memory
b. Registers
c. Hard disks
d. Magnetic disk
93) The first digital computer built with IC chips was known as
a. IBM 7090
b. Apple – 1
c. IBM System / 360
d. VAX‐10
94) Which of the following terms is the most closely related to main memory?
a. Non volatile
b. Permanent
c. Control unit
d. Temporary
95) Which of the following is used for manufacturing chips?
a. Control bus
b. Control unit
c. Parity unit
d. Semiconductor
96) To locate a data item for storage is
a. Field
b. Feed
c. Database
d. Fetch
97) A directly accessible appointment calendar is feature of a … resident package
a. CPU
b. Memory
c. Buffer
d. ALU
98) The term gigabyte refers to
a. 1024 bytes
b. 1024 kilobytes
c. 1024 megabytes
d. 1024 gigabyte
99) A/n …. Device is any device that provides information, which is sent to the CPU
a. Input
b. Output
c. CPU
d. Memory
100) Current SIMMs have either … or … connectors (pins)
a. 9 or 32
b. 30 or 70
c. 28 or 72
d. 30 or 72
101) Which is the brain of computer:
a. ALU
b. CPU
c. MU
d. None of these
102) Which technology using the microprocessor is fabricated on a single chip:
a. POS
b. MOS
c. ALU
d. ABM
103) MOS stands for:
a. Metal oxide semiconductor
b. Memory oxide semiconductor
c. Metal oxide select
d. None of these
104) In which form CPU provide output:
a. Computer signals
b. Digital signals
c. Metal signals
d. None of these
105) The register section is related to______ of the computer:
a. Processing
b. ALU
c. Main memory
d. None of these
106) In Microprocessor one of the operands holds a special register called:
a. Calculator
b. Dedicated
c. Accumulator
d. None of these
107) Which register is a temporary storage location:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
108) PC stands for:
a. Program counter
b. Points counter
c. Paragraph counter
d. Paint counter
109) IR stands for:
a. Intel register
b. In counter register
c. Index register
d. Instruction register
110) SP stands for:
a. Status pointer
b. Stack pointer
c. a and b
d. None of these
111) The act of acquiring an instruction is referred as the____ the instruction:
a. Fetching
b. Fetch cycle
c. Both a and b
d. None of these
112) How many bit of instruction on our simple computer consist of one____:
a. 2‐bit
b. 6‐bit
c. 12‐bit
d. None of these
113) How many parts of single address computer instruction :
a. 1
b. 2
c. 3
d. 4
114) Single address computer instruction has two parts:
a. The operation code
b. The operand
c. A and B
d. None of these
115) LA stands for:
a. Load accumulator
b. Least accumulator
c. Last accumulator
d. None of these
116) Which are the flags of status register:
a. Over flow flag
b. Carry flag
c. Half carry flag
d. Zero flag
e. Interrupt flag
f. Negative flag
g. All of these
117) The carry is operand by:
a. C
b. D
c. S
d. O
118) The sign is operand by:
a. S
b. D
c. C
d. O
119) The zero is operand by:
a. Z
b. D
c. S
d. O
120) The overflow is operand by:
a. O
b. D
c. S
d. C
121) _________ Stores the instruction currently being executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
122) In which register instruction is decoded prepared and ultimately executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
123) The status register is also called the____:
a. Condition code register
b. Flag register
c. A and B
d. None of these
124) The area of memory with addresses near zero are called:
a. High memory
b. Mid memory
c. Memory
d. Low memory
125) The processor uses the stack to keep track of where the items are stored on it this by using
the:
a. Stack pointer register
b. Queue pointer register
c. Both a & b
d. None of these
126) Stack words on:
a. LILO
b. LIFO
c. FIFO
d. None of these
127) Which is the basic stack operation:
a. PUSH
b. POP
c. BOTH A and B
d. None of these
128) SP stand for:
a. Stack pointer
b. Stack pop
c. Stack push
d. None of these
129) How many bit stored by status register:
a. 1 bit
b. 4 bit
c. 6 bit
d. 8 bit
130) The 16 bit register is separated into groups of 4 bit where each groups is called:
a. BCD
b. Nibble
c. Half byte
d. None of these
131) A nibble can be represented in the from of:
a. Octal digit
b. Decimal
c. Hexadecimal
d. None of these
132) The left side of any binary number is called:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
133) MSD stands for:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
134) _____ a subsystem that transfer data between computer components inside a computer
or between computer:
a. Chip
b. Register
c. Processor
d. Bus
135) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
136) Which bus carry addresses:
a. System bus
b. Address bus
c. Control bus
d. Data bus
137) A 16 bit address bus can generate___ addresses:
a. 32767
b. 25652
c. 65536
d. none of these
138) CPU can read & write data by using :
a. Control bus
b. Data bus
c. Address bus
d. None of these
139) Which bus transfer singles from the CPU to external device and others that carry singles
from external device to the CPU:
a. Control bus
b. Data bus
c. Address bus
d. None of these
140) When memory read or I/O read are active data is to the processor :
a. Input
b. Output
c. Processor
d. None of these
141) When memory write or I/O read are active data is from the processor:
a. Input
b. Output
c. Processor
d. None of these
142) CS stands for:
a. Cable select
b. Chip select
c. Control select
d. Cable system
143) WE stands for:
a. Write enable
b. Wrote enable
c. Write envy
d. None of these
144) MAR stands for:
a. Memory address register
b. Memory address recode
c. Micro address register
d. None of these
145) MDR stands for:
a. Memory data register
b. Memory data recode
c. Micro data register
d. None of these
146) Which are the READ operation can in simple steps:
a. Address
b. Data
c. Control
d. All of these
147) DMA stands for:
a. Direct memory access
b. Direct memory allocation
c. Data memory access
d. Data memory allocation
148) The ____ place the data from a register onto the data bus:
a. CPU
b. ALU
c. Both A and B
d. None of these
149) The microcomputer system by using the ____device interface:
a. Input
b. Output
c. Both A and B
d. None of these
150) The standard I/O is also called:
a. Isolated I/O
b. Parallel I/O
c. both a and b
d. none of these
151) The external device is connected to a pin called the ______ pin on the processor chip.
a. Interrupt
b. Transfer
c. Both
d. None of these
152) Which interrupt has the highest priority?
a) INTR
b) TRAP
c) RST6.5
d) none of these
153) In 8085 name the 16 bit registers?
a) Stack pointer
b) Program counter
c) a & b
d) none of these
154) What are level Triggering interrupts?
a) INTR&TRAP
b) RST6.5&RST5.5
c) RST7.5&RST6.5
d) none of these
155) Which stack is used in 8085?
a) FIFO
b) LIFO
c) FILO
d) none of these
156) What is SIM?
a) Select Interrupt Mask
b) Sorting Interrupt Mask
c) Set Interrupt Mask.
d) none of these
157) RIM is used to check whether, ______
a) The write operation is done or not
b) The interrupt is Masked or not
c) a & b
d) none of these
158) In 8086, Example for Non maskable interrupts are
a) Trap b) RST6.5 c) INTR d) none of these
159) In 8086 microprocessor the following has the highest priority among all type interrupts.
a) NMI
b) DIV 0
c) TYPE 255
d) OVER FLOW
160) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
161) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
162) Which are the part of architecture of 8086:
a. The bus interface unit
b. The execution unit
c. Both A and B
d. None of these
163) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
164) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
165) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
166) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
167) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
168) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
169) The upper 8 bit are called______:
a. BH
b. BL
c. AH
d. CH
170) The lower 8 bit are called_______:
a. AL
b. CL
c. BL
d. DL
171) IP stand for:
a. Industry pointer
b. Instruction pointer
c. Index pointer
d. None of these
172) Which has great important in modular programming:
a. Stack segment
b. Queue segment
c. Array segment
d. All of these
173) Which register containing the 8086/8088 flag:
a. Status register
b. Stack register
c. Flag register
d. Stand register
174) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
175) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
176) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
177) The physical address of memory is :
a. 20 bit
b. 16 bit
c. 32 bit
d. 64 bit
178) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
179) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
180) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
181) PA stand for:
a. Project address
b. Physical address
c. Pin address
d. Pointer address
182) SBA stand for:
a. Segment bus address
b. Segment bit address
c. Segment base address
d. Segment byte address
183) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
184) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
185) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
186) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
187) DS stand for:
a. Default segment
b. Defect segment
c. Delete segment
d. Definition segment
188) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
189) AD stand for:
a. Address data
b. Address delete
c. Address date
d. Address deal
190) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
191) PC stand for:
a. program counter
b. project counter
c. protect counter
d. planning counter
192) AH stand for:
a. Accumulator high
b. Address high
c. Appropriate high
d. Application high
193) AL stand for:
a. Accumulator low
b. Address low
c. Appropriate low
d. Application low
194) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
195) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
196) which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
197) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
198) How many type of cache memory:
a. 1
b. 2
c. 3
d. 4
199) Which is the type of cache memory:
a. Fully associative cache
b. Direct‐mapped cache
c. Set‐associative cache
d. All of these
200) ) Which memory is used to holds the address of the data stored in the cache :
a. Associative memory
b. Case memory
c. Ordinary memory
d. None of these
PAI UNIT -2 MCQ
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Privilege”.
Answer: d
Explanation: The operating system, interrupt handlers and other system softwares can be protected
from unauthorized accesses in virtual address space of each task using the privilege mechanism.
Answer: b
Explanation: Any one of the four privilege levels may be used to execute a task. The task privilege level
at that instant is called the Current Privilege Level (CPL).
Answer: c
Explanation: Once the CPL is selected, it cannot be changed during the execution normally in a single
code segment. It can only be changed by transferring the control, using gate descriptors, to a new
segment.
4. The data segments defined in GDT (global descriptor table) and the LDT (local descriptor
table) can be accessed by a task with
a) privilege level 0
b) privilege level 1
c) privilege level 2
d) privilege level 3
View Answer
Answer: a
Explanation: A task executing at level 0, the most privileged level, can access all the data segments
defined in GDT and the LDT of the task.
5. A task with privilege level 0, doesn’t refer to all the lower level privilege descriptors in
a) GDT (global descriptor table)
b) LDT (local descriptor table)
c) IDT (interrupt descriptor table)
d) None of the mentioned
View Answer
Answer: b
Explanation: The task with privilege level 0, refers to all the lower level privilege descriptors which apply
to all the descriptors except the LDT descriptors.
6. The selector RPL that uses a less trusted privilege than the current privilege level for further
use is known as
a) Least task privilege level
b) Descriptor privilege level
c) Effective privilege level
d) None of the mentioned
View Answer
Answer: c
Explanation: A selector RPL uses a less trusted privilege than the current privilege level for further use.
This is known as the Effective Privilege Level of the task.
Answer: c
Explanation: The effective privilege level is minimum in numeric and maximum in the privilege of RPL
and CPL.
8. The task requesting an access to a descriptor is allowed to access after checking the
a) type of descriptor
b) privilege level
c) type of descriptor and privilege level
d) corresponding segment
View Answer
Answer: c
Explanation: The task requesting an access to a descriptor is allowed to access to it and to the
corresponding segment, only after checking the type of the descriptor and privilege level(CPL, RPL, DPL).
Answer: b
Explanation: A CALL or JUMP instruction can reference only a code segment descriptor with DPL equal to
CPL of the task or a segment with a DPL of equal or greater privilege than CPL.
10. The RPL of a selector that referred to the code descriptor must have
a) less privilege than CPL
b) greater privilege than CPL
c) equal privilege than CPL
d) any privilege regarding CPL
View Answer
Answer: c
Explanation: The RPL of a selector that referred to the code descriptor must have the same privilege as
CPL.
11. The instruction that refers to only code segment descriptors with DPL equal to or less than
the task CPL is
a) CALL
b) IRET
c) ESC
d) RET and IRET
View Answer
Answer: d
Explanation: The RET and IRET instructions are to refer to only code segment descriptors with DPL equal
to or less than the task CPL.
12. When a JUMP instruction references a Task State Segment(TSS) descriptor, then DPL must
be
a) equally privileged as CPL
b) greater or equally privileged than CPL
c) less or equally privileged than CPL
d) less privileged than CPL
View Answer
Answer: c
Explanation: When a CALL or JUMP instruction references a Task State Segment(TSS) descriptor, then
DPL must be less or equally privileged than CPL.
advertisement
Answer: d
Explanation: Loading DS, ES or SS for referring to a new descriptor comes under the data segment
access.
Answer: d
Explanation: If the privilege test is negative or an improper segment is referenced then an exception 13
is generated. If the referenced segment is not present in physical memory, an exception 11 is ge
Topic – Protection
1. The mechanism to provide protection, that is accomplished with the help of read/write
privileges is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions
d) privileged operations
View Answer
Answer: a
Explanation: The restricted use of segments is accomplished with the help of read/write privileges.
2. The Local descriptor table (LDT) and Global descriptor table (GDT) are present in
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: c
Explanation: In restricted use of segments i.e. segment load check, the segment usages are restricted by
classifying the corresponding descriptors, under LDT and GDT.
3. The mechanism that is accomplished using descriptor usages limitations and rules of privilege
check is
a) privileged instruction check
b) operation reference check
c) segment load check
d) none of the mentioned
View Answer
Answer: b
Explanation: Restricted accesses to segment, also called, operation reference check, is accomplished
using descriptor usages limitations, and rules of privilege check.
4. The mechanism that is executed at certain privilege levels, determined by CPL (Current
Privilege Level) and I/O privilege level (IOPL) is
a) restricted use of segments
b) restricted accesses to segments
c) privileged instructions or operations
d) none of the mentioned
View Answer
5. If CPL is not of the required privilege level, then the instructions that get affected is
a) IRET
b) POPF
c) IRET and POPF
d) None of the mentioned
View Answer
6. If CPL is greater than zero, then the instruction that remains unaffected is
a) IRET
b) POPF
c) IF
d) IRET and POPF
View Answer
Answer: c
Explanation: IF remains unaffected if CPL is greater than zero. No exception is generated for this
condition.
7. The condition, “CPL not equals to zero” satisfies when executing the instruction
a) LIDT
b) LGDT
c) LTR
d) All of the mentioned
View Answer
Answer: d
Explanation: The condition, “CPL not equals to zero” satisfies, when executing the instructions, LIDT,
LGDT, LTR, LMSW, CTS and HLT.
Answer: c
Explanation: The condition CPL>IOPL exists, when executing the instructions, INs, IN, OUTS, OUT, STI, CLI
and LOCK.
9. The instruction at which the exception is generated, but the processor extension registers
contain the address of failing instruction is
a) LTR
b) INS
c) CTS
d) ESC
View Answer
Answer: d
Explanation: At the ESC instruction, the exception is generated, but the processor extension registers
contain the address of failing instruction.
Answer: d
Explanation: Double exception detected, invalid task state segment, stack segment overrun, processor
extension segment overrun, are the protected mode exceptions.
This set of Advanced Microprocessors Questions and Answers focuses on “Protected Virtual
Address Mode (PVAM) -2”.
Answer: c
Explanation: The system segment descriptors are of seven types. The types 1 to 3 are called system
descriptors and the types 4 to 7 are called gate descriptors.
Answer: d
Explanation: The gate descriptors are of four types namely, call gate, task gate, interrupt gate and trap
gate.
Answer: d
Explanation: The gate descriptor contains the information regarding the destination of control transfer,
required stack manipulations, privilege level and its type.
Answer: a
Explanation: Call gates are used to alter the privilege levels.
Answer: c
Explanation: Interrupt gates and trap gates are used to specify corresponding service routines.
Answer: d
Explanation: The word count field is only used by a call gate descriptor, to indicate the number of bytes
to be transferred from the stack of the calling routine to the stack of the called routine.
8. The memory that maintains the most frequently required data for execution, in a high speed
memory is called
a) virtual memory
b) physical memory
c) cache memory
d) ROM (read only memory)
View Answer
Answer: c
Explanation: To minimize the time required for fetching the frequently required descriptor information,
from the main memory, cache memory is used in which the most frequently required data for execution
is stored.
Answer: d
Explanation: In the protected mode, the contents of the segment registers are known as selectors. The
selector field consists of three fields namely, RPL, table indicator (TI) and index.
Answer: b
Explanation: The LGDT and LLDT instructions are privileged, and may be executed only at privilege level
0.
12. The instruction that loads a selector which refers to a local descriptor table, containing the
base address and limit for LDT is
a) LGT
b) GDT
c) LGDT
d) LLDT
View Answer
Answer: d
Explanation: The LLDT instruction loads a selector, which refers to a local descriptor table, containing
the base address, and limit for LDT.
advertisement
13. The descriptor that is used to store task gates, interrupt gates and trap gates is
a) system descriptor table
b) gate descriptor table
c) interrupt descriptor table
d) none of the mentioned
View Answer
14. The number of interrupt descriptors that the interrupt descriptor table (IDT) handles is
a) 16
b) 64
c) 128
d) 256
View Answer
Answer: d
Explanation: The IDT is able to handle upto 256 interrupt descriptors.
15. The number of bytes required for an interrupt in an IDT is
a) 2
b) 4
c) 6
d) 8
View Answer
Answer: c
Explanation: Six bytes are required for each interrupt in an interrupt descriptor table.
3. The number of debug registers that are available in 80386, for hardware debugging and control is a) 2
b) 4
c) 8
d) 16
Answer: c
Explanation: The 80386 offers a set of total eight debug registers DR0-DR7, for hardware debugging and
control.
5. The 80386 enables itself to organize the available physical memory into pages, which is known as a)
segmentation
b) paging
c) memory division
d) none of the mentioned
Answer: b
Explanation: The concept of paging which is introduced in 80386, enables it to organise the available
physical memory into pages of size 4 KB each, under the segmented memory.
6. The 80386 consists of
a) on-chip address translation cache
b) instruction set of predecessors with upward compatibility
c) virtual memory space of 64TB
d) all of the mentioned
Answer: d
Explanation: The 80386 has on-chip address translation cache, and instruction set is upward compatible
with all its predecessors.
7. 80386DX is available in a grid array package of
a) 64 pin
b) 128 pin
c) 132 pin
d) 142 pin
Answer: c
Explanation: The 80386DX is available in a 132-pin grid array package.
8. The operating frequency of 80386DX is
a) 12 MHz and 20 MHz
b) 20 MHz and 33 MHz
c) 32 MHz and 12 MHz
d) all of the mentioned
Answer: b
Explanation: The operating frequency of 80386DX is 20MHz and 33 MHz.
9. The 80386 in its protected mode, in its virtual mode of operation, can run the applications of
a) 8086
b) 80286
c) 80287
d) 80387
Answer: a
Explanation: The 80386 can run the applications under protected mode, in its virtual 8086 mode of
operation.
10. The 80386 in protected mode, supports all software written for
a) 8086 and 80287
b) 80286 and 80287
c) 80287 and 80387
d) 80286 and 8086
Answer: d
Explanation: The 80386 in protected mode, supports all software written for 8086 and 80286 (to be
executed under the control of memory management and protection abilities of 80386).
13. The unit that is used for handling data, and calculate offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
14. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
15. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
16. The memory management unit consists of
a) segmentation unit
b) paging unit
c) segmentation and paging units
d) none of the mentioned
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
18. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
20. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
21. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
22. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
23. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
24. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) none of the mentioned
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
25. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
26. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
28. The 16-bit registers are available with their extended size of 32 bits, by adding the registers with a
prefix of
a) X
b) E
c) 32
d) XX
Answer: b
Explanation: A 32 bit register, known as extended register, is represented by the register name with a
prefix of E.
29. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) none of the mentioned
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
32. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) none of the mentioned
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
35. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
38. The 32-bit control register, that is used to hold global machine status, independent of the executed
task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
40. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
42. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
Answer: c
Explanation: Two test registers are provided by 80386 for page cacheing, namely test control and test
status registers.
43. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
44. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
45. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
46. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
47. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers, rather, they
are internally used to store the descriptor information.
48. Which of the following is not a scale factor of addressing modes of 80386?
a) 2
b) 4
c) 6
d) 8
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
49. Contents of an index register are multiplied by a scale factor that may be added further to get the
operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
50. Contents of an index register are multiplied by a scale factor and then added to base register to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
51. In based scaled indexed mode with displacement mode, the contents of an index register are
multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is addedto a
base register and a displacement to get the offset of an operand.
52. The following statement of ALP is an example of MOV EBX, [EDX*4] [ECX]
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
53. The following statement is an example of MOV EBX, LIST [ESI*2] MUL ECX, LIST [EBP*4] a) base
scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) based scaled indexed mode with displacement mode
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
54. Bit field can be defined as a group of
a) 8 bits
b) 16 bits
c) 32 bits
d) 64 bits
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
55. The maximum length of the string in a bit string of contiguous bits is
a) 2 MB
b) 4 MB
c) 2 GB
d) 4 GB
57. A 16-bit displacement that references a memory location using any of the addressing modes is
a) pointer
b) character
c) BCD
d) offset
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing modes.
59. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
61. To form a physical memory address, appropriate segment register contents are
a) shifted by left by 4 positions
b) added to 16-bit offset address
c) operated using one of addressing modes
d) all of the mentioned
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
63. The operation that can be performed on segments in 80386 real mode is
a) read
b) write
c) execute
d) all of the mentioned
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
66. If the paging unit is enabled, then it converts linear address into
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The paging unit when enabled, it converts linear address into physical address.
67. If the paging unit is disabled, then the linear address is used as
a) effective address
b) physical address
c) segment base address
d) none of the mentioned
Answer: b
Explanation: The linear address is used as physical address if the paging unit is disabled.
70. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granulary bit
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
73. The bit that indicates whether the segment is page addressable is
a) base address
b) attribute bit
c) present bit
d) granularity bit
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
74. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
82. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by segmentation unit, into physical addresses.
83. The control register that stores the 32-bit linear address, at which the previous page fault is detected
is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
85. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
89. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
92. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
B. 64 bytes
C. 128 bytes
D.256 bytes
Answer: Option C
JNZ STAT
A.True
B. False
Answer: Option A
B. 2
C. 3
D.4
Answer: Option B
4. The address space of the 8051 is divided into four distinct areas: internal data, external data,
internal code, and external code.
A.True
B. False
Answer: Option A
5. Data transfer from I/O to external data memory can only be done with the MOVX command.
A.True
B. False
Answer: Option A
B. 4
C. 5
D.6
Answer: Option C
Explanation:
There are five interrupt sources for the 8051, which means that they can recognize 5 different events
that can interrupt regular program execution. Each interrupt can be enabled or disabled by setting
bits of the IE register. Likewise, the whole interrupt system can be disabled by clearing the EA bit of
the same register.
7. The special function registers are maintained in the next 128 locations after the general-
purpose data storage and stack.
A.True
B. False
Answer: Option A
8. This statement will set the address of the bit to 1 (8051 Micro-controller):
SETB 01H
A.True
B. False
Answer: Option B
9. MOV A, @ R1 will:
A. copy R1 to the accumulator
Answer: Option C
B.False
Answer: Option A
11. The following program will receive data from port 1, determine whether bit 2 is high, and
then send the number FFH to port 3:
READ: MOV A,P1
ANL A,#2H
CJNE A,#02H,READ
MOV P3,#FFH
A.True
B.False
Answer: Option A
12. Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
oscillator or crystal.
A.True
B.False
Answer: Option A
13. When the 8051 is reset and the line is HIGH, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option A
B. Timer 1
C. interrupt 0
D.interrupt 1
Answer: Option A
15. Both registers TL0 and TL1 are needed to start Timer 0.
A.True
B.False
Answer: Option B
16. The I/O ports that are used as address and data for external memory are:
A. ports 1 and 2
B. ports 1 and 3
C. ports 0 and 2
D.ports 0 and 3
Answer: Option C
17. The last 96 locations in the internal data memory are reserved for general-purpose data
storage and stack.
A.True
B.False
Answer: Option B
B. RAM
C. ROM
B. 3
C. 4
D.5
Answer: Option C
20. The total external data memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
21. Which of the following instructions will load the value 35H into the high byte of timer 0?
A. MOV TH0, #35H
Answer: Option A
23. The 8-bit address bus allows access to an address range of:
A. 0000 to FFFFH
B. 000 to FFFH
C. 00 to FFH
D.0 to FH
Answer: Option C
B. 11011010
C. 00001000
D.00101000
Answer: Option C
B. CS line
C. INTR line
Answer: Option A
26. This program code will be executed once:
A.True
B.False
Answer: Option B
27. Which of the following instructions will move the contents of register 3 to the accumulator?
A. MOV 3R, A
B. MOV R3, A
C. MOV A, R3
D.MOV A, 3R
Answer: Option C
28. Which of the following statements will add the accumulator and register 3?
A. ADD @R3, @A
B. ADD @A, R3
C. ADD R3, A
D.ADD A, R3
Answer: Option D
29. Data transfer from I/O to external data memory can only be done with the MOV command.
A.True
B.False
Answer: Option B
30. Which of the following commands will move the number 27H into the accumulator?
A. MOV A, P27
B. MOV A, #27H
C. MOV A, 27H
D.MOV A, @27
Answer: Option B
31. This program code will read data from port 0 and write it to port 2, and it will stop looping
when bit 3 of port 2 is set:
STAT: MOV A, PO
MOV P2,A
A.True
B.False
Answer: Option A
32. Which of the following commands will move the value at port 3 to register 2?
A. MOV P2, R3
B. MOV R3, P2
C. MOV 3P, R2
D.MOV R2, P3
Answer: Option D
B. 16
C. 32
D.64
Answer: Option C
34. When the 8051 is reset and the EA line is LOW, the program counter points to the first
program instruction in the:
A. internal code memory
Answer: Option B
35. The designs of a centigrade thermometer and a PWM speed-control circuit can be
implemented by the 8051.
A.True
B.False
Answer: Option A
36. What is the difference between the 8031 and the 8051?
A. The 8031 has no interrupts.
Answer: Option B
37. The I/O port that does not have a dual-purpose role is:
A. port 0
B. port 1
C. port 2
D.port 3
Answer: Option B
38. To interface external EPROM memory for applications, it is necessary to demultiplex the
address/data lines of the 8051.
A.True
B.False
Answer: Option A
39. The following command will copy the accumulator to the location whose address is 23H:
MOV 23H,A
A.True
B.False
Answer: Option A
40. The special function registers can be referred to by their hex addresses or by their register
names.
A.True
B.False
Answer: Option A
41. The contents of the accumulator after this operation
MOV A,#2BH
ORL A,00H
will be:
A. 1B H
B. 2B H
C. 3B H
D.4B H
Answer: Option B
42. The following program will cause the 8051 to be stuck in a loop:
JNZ LOOP
A.True
B.False
Answer: Option B
43. Which of the following commands will copy the contents of RAM whose address is in
register 0 to port 1?
A. MOV @ P1, R0
B. MOV @ R0, P1
C. MOV P1, @ R0
D.MOV P1, R0
Answer: Option C
44. The statement LCALL READ passes control to the line labelled READ.
A.True
B.False
Answer: Option A
45. Which of the following commands will copy the contents of location 4H to the accumulator?
A. MOV A, 04H
B. MOV A, L4
C. MOV L4, A
D.MOV 04H, A
Answer: Option A
46. The microcontroller is useful in systems that have nonvariable programs for dedicated
applications.
A.True
B.False
Answer: Option A
47. The total amount of external code memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D.256K
Answer: Option B
B. 8-bit
C. 16-bit
D.32-bit
Answer: Option B
B. RST
C. PSEN
D.RSET
Answer: Option B
51. Which of the following instructions will move the contents of the accumulator to register 6?
A. MOV 6R, A
B. MOV R6, A
C. MOV A, 6R
D.MOV A, R6
Answer: Option B
52. The following command will rotate the 8 bits of the accumulator one position to the left:
RL A
A.True
B.False
Answer: Option A
53. An alternate function of port pin P3.0 (RXD) in the 8051 is:
A. serial port input
B. serial port output
Answer: Option A
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Arithmetic and Logic Instructions”.
1. When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
View Answer
Answer: c
Explanation: For addition purposes, the destination address must always be an accumulator.
Example- ADD A,R0; ADD A, @R1; ADD A,@ DPTR
Answer: b
Explanation: DAA command adds 6 to the nibble if any of the nibbles becomes greater than 9.
Answer: c
Explanation: When we divide two numbers then AC and CY become zero.
Answer: d
Explanation: In 8 bit operations, if a carry is generated from D6 or D7 bit, then OV flag is set to
1.
Answer: b
Explanation: If unsigned numbers operations are involved, then the status of CY flag is
important and in signed number operation the status of OV flag is important.
Answer: d
Explanation: These instructions are the arithmetic operations and the flags are affected by the
data copy instructions, so all these instructions don’t affect the bits of the flag.
8. ANL instruction is used _______
a) to AND the contents of the two registers
b) to mask the status of the bits
c) all of the mentioned
d) none of the mentioned
View Answer
Answer: c
Explanation: ANL instruction is used to AND the contents of the two registers and is also used to
mask the status of the bits of the register.
Answer: d
Explanation: In CJNE command, the pointer jumps if the values of the two registers are not
equal and it resets CY if the destination address is larger then the source address and sets CY if
the destination address is smaller then the source address.
Answer: a
Explanation: These commands have accumulator as the destination address and any register,
memory or any immediate data as the source address.
This set of 8051 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on
“Architecture”.
Answer: a
Explanation: It has 128 bytes of RAM in it.
Answer: a
Explanation: It has two 16 bit registers DPTR and PC.
Answer: c
Explanation: When a program wakes up, then 0x00 is loaded to the program counter register
because at this place the first op code is burnt.
5. When the microcontroller executes some arithmetic operations, then the flag bits of which
register are affected?
a) PSW
b) SP
c) DPTR
d) PC
View Answer
Answer: a
Explanation: It stands for program status word. It consists of carry, auxiliary carry, overflow,
parity, register bank select bits etc which are affected during such operations.
6. How are the status of the carry, auxiliary carry and parity flag affected if the write instruction
MOV A,#9C
ADD A,#64H
a) CY=0,AC=0,P=0
b) CY=1,AC=1,P=0
c) CY=0,AC=1,P=0
d) CY=1,AC=1,P=1
View Answer
Answer: b
Explanation: On adding 9C and 64, a carry is generated from D3 and from the D7 bit so CY and
AC are set to 1. In the result, the number of 1’s present are even so parity flag is set to zero.
7. How are the bits of the register PSW affected if we select Bank2 of 8051?
a) PSW.5=0 and PSW.4=1
b) PSW.2=0 and PSW.3=1
c) PSW.3=1 and PSW.4=1
d) PSW.3=0 and PSW.4=1
View Answer
Answer: d
Explanation: Bits of PSW register are CY, AC, F0, RS1, RS0, OV, -, P so for selecting bank2
RS1=1 and RS0=0 which are fourth and third bit of the register respectively.
Answer: a
Explanation: If we push elements onto the stack then the stack pointer increases with every push
of element.
9. On power up, the 8051 uses which RAM locations for register R0- R7
a) 00-2F
b) 00-07
c) 00-7F
d) 00-0F
View Answer
Answer: b
Explanation: On power up register bank 0 is selected which has memory address from 00H-07H.
10. How many bytes of bit addressable memory is present in 8051 based microcontrollers?
a) 8 bytes
b) 32 bytes
c) 16 bytes
d) 128 bytes
View Answer
Answer: c
Explanation: 8051 microcontrollers have 16 bytes of bit addressable memory.
Answer: a
Explanation: DJNZ R0, label has hex code, D8 and its corresponding label address. Hence, it is a
two byte instruction.
2. JZ, JNZ, DJNZ, JC, JNC instructions monitor the bits of which register?
a) DPTR
b) B
c) A
d) PSW
View Answer
Answer: d
Explanation: PSW register consists of flag bits like CY, P, Z etc so it is the one that is directly
being monitored by these instructions.
3. Calculate the jump code for again and here if code starts at 0000H
MOV R1,#0
MOV A,#0
MOV R0,#25H
AGAIN:ADD A,#0ECH
JNC HERE
HERE: INC R1
DJNZ R0,AGAIN
MOV R0,A
END
a) F3,02
b) F9,01
c) E9,01
d) E3,02
View Answer
Answer: c
Explanation: Loop address is calculated by subtracting destination address and the address next
to the source address.
So here if we start with 0000H
then source address is 0008H and the destination address is 0004H
So loop address is 04-0A=E9
4. When the call instruction is executed the topmost element of stack comes out to be
a) the address where stack pointer starts
b) the address next to the call instruction
c) address of the call instruction
d) next address of the stack pointer
View Answer
Answer: b
Explanation: The topmost element of the stack is the address of the instruction next to the call
instruction so that when RET is executed then PC is filled with that address and so the pointer
moves to the main program and continue with its routine task.
Answer: c
Explanation: LCALL instruction moves the pointer to a 16 bit address so it is a 3 byte
instruction.
Answer: b
Explanation: PUSH and POP instructions are not CALL instructions because in POP and PUSH
instructions the pointer does not move to any location specified by its address which is the
fundamental of CALL instruction, so it is not a type of CALL instruction.
7. What is the time taken by one machine cycle if crystal frequency is 20MHz?
a) 1.085 micro seconds
b) 0.60 micro seconds
c) 0.75 micro seconds
d) 1 micro seconds
View Answer
Answer: b
Explanation: Time taken by one machine cycle is calculated by the inverse of a (crystal
frequency) /12
MOV R6,#200
BACK:MOV R5,#100
HERE:DJNZ R5, HERE
DJNZ R6,BACK
END
a) 100
b) 200
c) 20000
d) 2000
View Answer
Answer: c
Explanation: It will be executed 200*100 times.
Answer: c
Explanation: If we need to store the address in the accumulator, then directly the address is
moved to it unlikely of using # used for storing data in any register.
1) BACK: DEC R0
JZ BACK
2) BACK: DJNZ RO, BACK
a) yes
b) no
c) cant be determined
d) yes and the second one is preferred
View Answer
Answer: b
Explanation: In the first statement, when the decrements approach zero then the jump moves
back and in the second statement, when the result after decrements is not zero, then it jumps
back.
Unit No.1
Answer: c
Explanation: An assembler is a software used to convert the programs into machine instructions.
Answer: a
Explanation: This OP – codes tell the system what operation to perform on the operands.
Answer: b
Explanation: The ADDI instruction, means the addition is in immediate addressing mode.
4. Instructions which won’t appear in the object program are called as _____
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives
View Answer
Answer: d
Explanation: The directives help the program in getting compiled and hence won’t be there in the
object code.
5. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum
View Answer
Answer: b
Explanation: This basically is used to replace the variable with a constant value.
Answer: a
Explanation: This does the function similar to the main statement.
7. The directive used to perform initialization before the execution of the code is ______
a) Reserve
b) Store
c) Dataword
d) EQU
View Answer
Answer: c
Explanation: None.
8. _____ directive is used to specify and assign the memory required for the block of code.
a) Allocate
b) Assign
c) Set
d) Reserve
View Answer
Answer: d
Explanation: This instruction is used to allocate a block of memory and to store the object code
of the program there.
Answer: b
Explanation: This instruction directive is used to terminate the program execution.
Answer: d
Explanation: This enables the processor to load some other process.
11. When dealing with the branching code the assembler ___________
a) Replaces the target with its address
b) Does not replace until the test condition is satisfied
c) Finds the Branch offset and replaces the Branch target with it
d) Replaces the target with the value specified by the DATAWORD directive
View Answer
Answer: c
Explanation: When the assembler comes across the branch code, it immediately finds the branch
offset and replaces it with it.
12. The assembler stores all the names and their corresponding values in ______
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the mentioned
View Answer
Answer: b
Explanation: The table where the assembler stores the variable names along with their
corresponding memory locations and values.
advertisement
14. The utility program used to bring the object code into memory for execution is ______
a) Loader
b) Fetcher
c) Extractor
d) Linker
View Answer
Answer: a
Explanation: The program is used to load the program into memory.
15. To overcome the problems of the assembler in dealing with branching code we use _____
a) Interpreter
b) Debugger
c) Op-Assembler
d) Two-pass assembler
View Answer
Answer: d
Explanation: This creates entries into the symbol table first and then creates the object code.
Answer: d
Explanation: The machine level programming is complicated.
Answer: d
Explanation: The assembly level programming is more advantageous than the machine level
programming.
Answer: c
Explanation: All the files should have the extension, .ASM.
5. The directory that is under work must have the files that are related to
a) Norton’s editor
b) Assembler
c) Linker
d) All of the mentioned
View Answer
Answer: d
Explanation: Before starting the process of entering a small program on PC, ensure that all the
files namely Norton’s editor, assembler, linker and debugger are available in the same directory
in which work is been done.
7. The extension file that is must for a file to be accepted by the LINK as a valid object file is
a) .OBJ file
b) .EXE file
c) .MASM file
d) DEBUG file
View Answer
Answer: a
Explanation: The .OBJ extension is a must for a file to be accepted by the LINK as a valid object
file.
Answer: d
Explanation: The listing file contains total offset map of source file including labels, offset
addresses, opcodes, memory allotments for different directives and labels and relocation
information.
Answer: c
Explanation: DEBUG.COM is a DOS utility that facilitates the debugging and trouble shooting.
• A. To indicate the starting position in memory, where the program block is to be stored
• B. To indicate the starting of the computation code
• C. To indicate the purpose of the code
• D. To list the locations of all the registers used
Answer: Option A
• A. Stop
• B. Return
• C. OP
• D. End
Answer: Option D
• A. .EXE files
• B. .OBJ files
• C. .EXE file and .OBJ file
• D. .EXE flie and .LST file
Answer: Option A
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
2. The unit that is disabled in real address mode is
a) central processing unit
b) memory management unit
c) paging unit
d) bus control unit
View Answer
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer: d
Explanation: To form a physical memory address, appropriate segment register contents are shifted by
left by 4 positions and then added to 16-bit offset address formed using one of addressing modes, in
same way as in the 80386 real address mode.
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: d
Explanation: In protected mode, the contents of segment registers are used as selectors to address
descriptors which contain the segment limit, base address and access rights byte of the segment.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task.
This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on
“Segmentation”.
1. The bit that indicates whether the segment has been accessed by the CPU or not is
a) base address
b) attribute bit
c) present bit
d) granular bit
View Answer
Answer: b
Explanation: The accessed bit or attribute bit (A) indicates whether the segment has been accessed by
the CPU or not.
Answer: c
Explanation: The type field decides the descriptor type and hence the segment type.
3. If the segment descriptor bit, S=0, then the descriptor is
a) data segment descriptor
b) code segment descriptor
c) system descriptor
d) all of the mentioned
View Answer
Answer: c
Explanation: If S=0, then system descriptor. If S=1, then code or data segment descriptor.
Answer: d
Explanation: The granularity bit indicates whether the segment is page addressable.
5. If the Default operation size bit, D=1, the code segment operation size selected is
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
View Answer
Answer: c
Explanation: If D=1, the segment selected is 32-bit operand segment, else, it is a 16-bit operand
segment.
Answer: d
Explanation: The segment descriptors are 8-byte quantities containing access right or attribute bits
along with the base and limit of the segments.
Answer: d
Explanation: The five types of segment descriptors of 80386 are:
1. Code or data segment descriptors
2. System descriptors
3. Local descriptors
4. TSS(task state segment) descriptors
5. Gate descriptors.
Answer: d
Explanation: The limit field of the descriptor is of 20 bits.
Answer: c
Explanation: The base address that marks the starting address of the segment in physical memory is
decided by the operating system and is of 32 bits.
Answer: d
Explanation: 80386 can handle total 16K descriptors and hence
TOPIC:– Architecture and Signal Descriptions of 80386
Answer: d
Explanation: The internal architecture of 80386 is divided into three sections namely, central processing
unit, memory management unit and bus interface unit.
Answer: c
Explanation: The central processing unit is further divided into the execution unit and instruction unit.
3. The unit that is used for handling data, and calculates offset address is
a) memory management unit
b) execution unit
c) instruction unit
d) bus interface unit
View Answer
Answer: b
Explanation: The execution unit has eight general purpose and eight special purpose registers, which are
either used for handling the data or calculating the offset addresses.
4. The unit that decodes the opcode bytes, received from the 16-byte instruction code queue is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: c
Explanation: The instruction unit decodes the opcode bytes, received from the 16-byte instruction code
queue, after decoding them so as to pass it to the control section, for deriving the necessary control
signals.
5. The unit that increases the speed of all shift and rotate operations is
a) memory management unit
b) execution unit
c) instruction unit
d) barrel shifter
View Answer
Answer: d
Explanation: The barrel shifter speeds up all shift and rotate operations.
Answer: c
Explanation: The memory management unit consists of a segmentation unit and a paging unit.
Answer: d
Explanation: The segmentation unit allows the use of two address components. They are: segment and
offset for relocation and sharing of code and data.
8. The unit that organizes the physical memory, in terms of pages of 4KB size each is
a) segmentation unit
b) execution unit
c) paging unit
d) instruction unit
View Answer
Answer: c
Explanation: The paging unit organizes the physical memory, in terms of pages of 4KB size each.
10. The unit that provides a four level protection mechanism, for system’s code and data against
application program is
a) central processing unit
b) segmentation unit
c) bus interface unit
d) none of the mentioned
View Answer
Answer: b
Explanation: The segmentation unit provides a four level protection mechanism, for protecting and
isolating the system’s code and data, from those of the application program.
11. The unit that has a prioritizer to resolve the priority of the various bus requests is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: c
Explanation: The bus control unit has a prioritizer to resolve the priority of the various bus requests.
12. The unit that interfaces the internal data bus with the system bus is
a) bus sizing unit
b) data buffer
c) bus control unit
d) execution unit
View Answer
Answer: b
Explanation: The data buffer interfaces the internal data bus with the system bus.
advertisement
13. The unit that drives the bus enable and address signals A0-A31 is
a) bus sizing unit
b) bus driving unit
c) address driver
d) bus driver
View Answer
Answer: c
Explanation: The address driver drives the bus enable and address signals A0-A31.
14. Which of the following pin when activated, allows address pipelining?
a) ADS
b) NA
c) AP
d) None of the mentioned
View Answer
Answer: b
Explanation: The Next Address (NA) input pin, if activated, allows address pipelining, during 80386 bus
cycles.
15. The signal that is used to insert WAIT states in a bus cycle in 80386 is
a) HOLD
b) HLDA
c) READY
d) PEREQ
View Answer
Answer: c
Explanation: READY signal is used to insert WAIT states in a bus cycle, and is useful for interfacing of
slow devices with the CPU.
16. The signal which indicates to the CPU, to fetch a data word for the coprocessor is
a) READY
b) NMI
c) HLDA
d) PEREQ
View Answer
Answer: d
Explanation: The Processor Extension Request (PEREQ) output signal indicates to the CPU to fetch a data
word for the coprocessor.
Answer: c
Explanation: The pip
TOPICS– Register Organisation of 80386 -1
1. The 16-bit registers are available with their extended size of 32 bits, by adding the registers
with a prefix of
a) X
b) E
c) 32
d) XX
View Answer
Answer: b
Explanation: A 32 bit register, known as an extended register, is represented by the register name with a
prefix of E.
2. In a 32-bit register, ESP, the lower 16-bits of the register can be represented by
a) LSP
b) FSP
c) SP
d) None of the mentioned
View Answer
Answer: c
Explanation: Though the extended size of 32 bits are named as EBP, ESP, ESI and EDI, the names BP, SP,
SI and DI represent the lower 16-bits.
Answer: d
Explanation: The six segment registers available in 80386 are CS, SS, DS, ES, FS and GS, out of which DS,
ES, FS and GS are the four data segment registers.
Answer: d
Explanation: The 32-bit addressing modes may use all the register widths, i.e. 8, 16 or 32 bits.
5. The flag that is additional in flag register of 80386, compared to that of 80286 is
a) VM flag
b) RF flag
c) VM and RF flag
d) None of the mentioned
View Answer
Answer: c
Explanation: The VM and RF flags are added to the 80286 flag register, to derive the flag register of
80386.
Answer: b
Explanation: If VM flag is set, the 80386 enters the virtual 8086 mode within the protected mode. This is
to be set only when the 80386 is in protected mode.
Answer: c
Explanation: The VM flag can be set using the IRET instruction or any task switch operation, only in the
protected mode.
8. During the instruction cycle of 80386, any debug fault can be ignored if
a) VM flag is set
b) VM flag is cleared
c) RF is cleared
d) RF is set
View Answer
Answer: d
Explanation: If RF (resume flag) is set, any debug fault is ignored during the instruction cycle.
Answer: c
Explanation: The RF is automatically reset after the execution of every instruction, except for the IRET
and POPF instructions. Also, it is not cleared automatically after the successful execution of JMP, CALL
and INT instructions causing a task switch.
Answer: d
Explanation: The segment descriptor register is used to store the descriptor information like attributes,
limit and base addresses of se
1. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) All of the mentioned
View Answer
Answer: d
Explanation: The 80386 has three 32-bit control registers CR0, CR2 and CR3, to hold global machine
status, independent of the executed task.
Answer: d
Explanation: The 80386 supports four types of descriptor tables. They are, GDT, IDT, LDT and TSS.
3. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
View Answer
Answer: a
Explanation: The GDTR and IDTR are known as system address registers.
Answer: b
Explanation: The LDTR and TR are known as system segment registers.
Answer: c
Explanation: Two test registers are provided by 80386 for page caching, namely test control and test
status registers.
6. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
View Answer
Answer: b
Explanation: Out of the eight debug registers, the two registers DR4 and DR5 are Intel reserved.
7. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
View Answer
Answer: d
Explanation: The initial four registers, DR0-DR3 store four program controllable break point addresses.
Answer: a
Explanation: The registers DR6 and DR7 respectively hold break point status and break point control
information.
9. The flag bits that indicate the privilege level of current IO operations are
a) Virtual mode flag bits
b) IOPL flag bits
c) Resume flag bits
d) None of the mentioned
View Answer
Answer: b
Explanation: The IOPL flag bits indicate the privilege level of current IO operations.
10. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
View Answer
Answer: c
Explanation: The segment descriptor registers of 80386 are not available for programmers,
rather, they are internally used to store the descriptor information
TOPIC: Addressing Modes of 80386, Data Types of 80386
Answer: c
Explanation: In case of the scaled the modes, any of the index register values can be multiplied by a valid
scale factor to obtain the displacement. The valid scale factors are 1, 2, 4 and 8.
2. Contents of an index register are multiplied by a scale factor that may be added further to get
the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: b
Explanation: In scaled indexed mode, contents of an index register are multiplied by a scale factor that
may be added further to get the operand offset.
3. Contents of an index register are multiplied by a scale factor and then added to base register to
get the operand offset in
a) base scaled indexed mode
b) scaled indexed mode
c) indexed mode
d) none of the mentioned
View Answer
Answer: a
Explanation: In base scaled indexed mode, contents of an index register are multiplied by a scale factor
and then added to base register to get the operand offset.
4. In the based scaled indexed mode with displacement mode, the contents of an index register
are multiplied by a scale factor and are added to
a) base register
b) displacement
c) base register and displacement
d) none of the mentioned
View Answer
Answer: c
Explanation: Contents of an index register are multiplied by a scale factor and the result is added to a
base register and a displacement to get the offset of an operand.
Answer: a
Explanation: Since in base scaled indexed mode, contents of an index register are multiplied by a scale
factor and then added to base register to get the operand offset.
Answer: b
Explanation: Since in scaled indexed mode, contents of an index register are multiplied by a scale factor
that may be added further to get the operand offset.
Answer: c
Explanation: A group of at the most 32 bits(4 bytes) is defined as a bit field.
Answer: d
Explanation: Bit string is a string of contiguous bits of maximum 4Gbytes in length.
Answer: c
Explanation: The integer word is the signed 16-bit data.
10. A 16-bit displacement that references a memory location using any of the addressing modes
is
a) Pointer
b) Character
c) BCD
d) Offset
View Answer
Answer: d
Explanation: Offset is a 16-bit or 32-bit displacement that references a memory location using any of the
addressing mod
1. The instructions available in the 80386 that are not available in its real address mode is
a) addressing techniques
b) instructions for protected address mode
c) instructions for interrupt handling
d) all of the mentioned
View Answer
Answer: b
Explanation: All the instructions of 80386 are available in this mode except for those designed to work
with or for protected address mode.
Answer: c
Explanation: The paging unit is disabled in real address mode.
Answer.A
Answer: c
Explanation: The segments in 80386 real mode are may be overlapped or non-overlapped.
Answer: d
Explanation: The segments in 80386 real mode can be read, written or executed, i.e. no protection is
available.
Answer: a
Explanation: The effective address(offset) is added with segment base address to calculate linear
address.
Answer: b
Explanation: The paging unit when enabled, it converts a linear address into physical address.
Answer: b
Explanation: The linear address is used as a physical address if the paging unit is disabled.
Answer: c
Explanation: The paging unit is enabled only in protected mode.
advertisement
11. For a single task in protected mode, the 80386 can address the virtual memory of
a) 32 GB
b) 64 MB
c) 32 TB
d) 64 TB
View Answer
Answer: d
Explanation: In protected mode, the 80386 can address 4 GB of physical memory and 64 TB of virtual
memory per task
Topic: – Paging
Answer: d
Explanation: The advantage of paging scheme is that the complete segment of a task need not be in the
physical memory at any time. Only a few pages of the segments, which are required currently for the
execution, need to be available in the physical memory.
Answer: b
Explanation: The paging divides the memory into fixed size pages.
3. To convert linear addresses into physical addresses, the mechanism that the paging unit uses is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
View Answer
Answer: d
Explanation: The paging unit of 80386 uses a two level table mechanism, to convert the linear addresses
provided by the segmentation unit, into physical addresses.
4. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: c
Explanation: The control register, CR2, is used to store the 32-bit linear address, at which the previous
page fault is detected.
Answer: b
Explanation: The paging unit handles every task in terms of three components namely page directory,
page table and the page itself.
6. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
View Answer
Answer: d
Explanation: The control register, CR3, is used as page directory physical base address register, to store
the physical starting address of the page directory.
Answer: b
Explanation: Each directory entry is of 4 bytes, thus a total of 1024 entries are allowed in a directory.
Answer: c
Explanation: Each page table is of 4 Kbytes in size, and may contain a maximum of 1024 entries.
10. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
View Answer
Answer: a
Explanation: The dirty bit (D) is set before a write operation to the page is carried out.
Answer: c
Explanation: The D-bit is undefined for page directory entries.
Answer: d
Explanation: The User/Supervisor (U/S) bit and Read/Write (R/W) bit are used to provide protection.
advertisement
13. The storage of 32 recently accessed page table entries to optimize the time, is known as
a) page table
b) page descriptor base register
c) page table cache
d) none of the mentioned
View Answer
Answer: c
Explanation: To optimize the considerable time taken for conversion, a page table cache is provided,
which stores the 32 recently accessed page table entries.
Answer: c
Explanation: The page table cache is also known as translation look aside buffer.
2. If the processor is executing a main program that calls a subroutine, then after executing the
main program up to the CALL instruction, the control will be transferred to
a) address of main program
b) subroutine address
c) address of CALL instruction
d) none of the mentioned
3. The stack is useful for
a) storing the register status of the processor
b) temporary storage of data
c) storing contents of registers temporarily inside the CPU
d) all of the mentioned
5. As the storing of data words onto the stack is increased, the stack pointer is
a) incremented by 1
b) decremented by 1
c) incremented by 2
d) decremented by 2
7. The process of storing the data in the stack is called ……… the stack.
a) pulling into
b) pulling out
c) pushing into
d) popping into
8. The reverse process of transferring the data back from the stack to the CPU register is known
as
a) pulling out the stack
b) pushing out the stack
c) popping out the stack
d) popping off the stack
11. The 32-bit control register, that is used to hold global machine status, independent of the
executed task is
a) CR0
b) CR2
c) CR3
d) all of the mentioned
13. The registers that are together, known as system address registers are
a) GDTR and IDTR
b) IDTR and LDTR
c) TR and GDTR
d) LDTR and TR
15. The test register(s) that is provided by 80386 for page cacheing is
a) test control registers
b) page cache registers
c) test control and test status registers
d) test control and page cache registers
16. Among eight debug registers, DR0-DR7, the registers that are reserved by Intel are
a) DR0, DR1, DR2
b) DR4, DR5
c) DR1, DR4
d) DR5, DR6, DR7
17. The registers that are used to store four program controllable break point addresses are
a) DR5-DR7
b) DR0-DR1
c) DR6-DR7
d) DR0-DR3
18. The register DR6 hold
a) break point status
b) break point control information
c) break point status and break point control information
d) none of the mentioned
19. The flag bits that indicate the privilege level of current IO operations are
a) virtual mode flag bits
b) IOPL flag bits
c) resume flag bits
d) none of the mentioned
20. The registers that are not available for programmers are
a) data and address registers
b) instruction pointers
c) segment descriptor registers
d) flag registers
23. To convert linear addresses into physical addresses, the mechanism that the paging unit uses
is
a) linear conversion mechanism
b) one level table mechanism
c) physical conversion mechanism
d) two level table mechanism
24. The control register that stores the 32-bit linear address, at which the previous page fault is
detected is
a) CR0
b) CR1
c) CR2
d) CR3
26. The control register that is used as page directory physical base address register is
a) CR0
b) CR1
c) CR2
d) CR3
30. The dirty bit(D) is set, before which operation is carried out
a) write
b) read
c) initialization
d) none of the mentioned
Answers
Page 1
Sheet1
Page 2
Sheet1
Page 3
Sheet1
Page 1
Sheet1
Page 2
Sheet1
Page 3
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
Q.2 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans:a
Q.3 The capture operation in counter mode is feasible when mode of CCP module is
__ _ __
a. synchronized
b. asynchronized
c. synchronized as well as asynchronized
d. irrespective of synchronization
Ans:a
Q.4 Which register is suitable for the corresponding count, if the measurement of pul se
width is less than 65,535 μs along with the frequency of 4 MHz?
a. 4-bit register
b. 8-bit register
c. 16-bit register
d. 32-bit register
Ans:c
Q.5 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR Ans:a
Q.6 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.7 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.8 Which among the below mentioned aspect issues are supported by
capture/compare/PWM modules corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
Ans:d
Q.9 Which mode allows to deliver the contents of 16-bit timer into a SFR on the basis of
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
Ans:a
Q.10 What among the below specified functions is related to PWM mode?
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an user assigned
frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
Ans:b
Q.11 What happens when the program control enters the Interrupt Service Subroutine
(ISS) due to enabling of CCP1IE bit in PIE1 especially during the initialization of
CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L & TMR1H
respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR
Ans:a
Q.12 What is the fundamental role exhibited by the CCP module in compare mode in
addition to timer 1?
a. To vary the pin status in accordance to the precisely controlled time
b. To vary the duty cycle of the rectified output
c. To vary the oscillator frequencies in order to receive larger periods
d. To vary the status of synchronization levels
Ans: a
Q.13 How does the pin RC2/CCP1 get configured while initializing the CCP module in
the compare mode of operation?
a. As an input by writing it in TRISC register
b. As an output by writing it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC register
d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
Ans: b
Q.14 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0
Ans: a
Q.15 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above
Ans: b
Q.16 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.17 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value
Ans: b
Q.18 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter ?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components
Ans: a
Q.19 In ____ _ data transfer, group of bits (usually 8 bits) of data is transferred at a
time.
a. Parallel b. Serial c. simplex d. None of the above Ans: a
Q.20 In ____ _ data transfer, only one bit of data is transferred at a time.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.24 In _____ data communication, during transmission parallel data is converted into
serial bits using a PISO shift register.
a. Parallel b. Serial c. simplex d. None of the above Ans: b
Q.25 At the receiver, the serial bits are connected into parallel data by another shift
register called SIPO register.
a. TRUE b. FALSE Ans: a
Q.26 In ____ __, the hardware exists such that data transfer takes place only in one
direction.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: a
Q.28 The ______ transmission allows the data transfer in both directions, but not
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: b
Q.30 The ______ transmission allows the data transfer in both directions
simultaneously.
a. Simplex b. Half Duplex C. Full Duplex D. None of the above Ans: c
Q.36 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.37 The task of converting the byte into serial form and transmitting it bit by bit along
with start, stop and parity bits is carried out by
a. reception unit
b. serial communication unit
c. transmission unit
d. all of the mentioned Ans: c
Q.38 Where does the comparison level occur for 16-bit contents in the compare mode
operation?
a. Between CCPR1 register & TMR1
b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0 Ans: a
Q.39 Why are the pulse width modulated outputs required in most of the applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above Ans: b
Q.40 What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?
a. 2 b. 3 c. 4 d. 8 Ans: b
Q.41 How do the variations in an average value get affected by PWM period?
a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value Ans: b
Q.42 Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter?
a. Fundamental FPWM & higher harmonics
b. Resonant FPWM & higher harmonics
c. Slowly Varying DC components
d. Slowly Varying AC components Ans: a
Q.43 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.44 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.45 What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave
mode by enabling SS pin control?
a. 0000 b. 0100 c. 0010 d. 0001 Ans: b
Q.46 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD
b. SSPBUF
c. Both a & b
d. None of the above Ans: a
Q.47 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.48 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line
b. SDA line
c. Both a & b
d. None of the above Ans: b
Q.49 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c. 16 d. 32 Ans: a
Q.50 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA
b. RCSTA
c. SPBRG
d. All of the above Ans: a
Q.51 What is the purpose of a special function register SPBRG in USART?
a. To control the operation associated with baud rate generation
b. To control an oscillator frequency
c. To control or prevent the false bit transmission of 9th bit
d. All of the above Ans: a
Q.52 Why is the flag bit TXIF tested or examined in the PIR1 register after shifting all the
data bits during the initialization process of USART in asynchronous mode?
a. For ensuring the transmission of byte
b. For ensuring the reception of byte
c. For ensuring the on-chip baud rate generation
d. For ensuring the 9th bit as a parity Ans: a
Q.53 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode?
a. FOSC / 8 (X + 1)
b. FOSC / 16 (X + 1)
c. FOSC / 32 (X + 1)
d. FOSC / 64 (X + 1) Ans: b
Q.54 What is the status of shift clock supply in an USART synchronous mode?
a. Master-internally, Slave-externally
b. Master-externally, Slave-internally
c. Master & Slave (both) – internally
d. Master & Slave (both) – externally Ans: a
Q.55 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.56 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins as
DT (data lines)?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.57 Which among the below assertions represent the salient features of PIC in C-18
compiler?
a. Transparent read/ write access to an external memory
b. Provision of supporting an inline assembly during the necessity of an overall control
c. Integration with MPLAB IDE for source-level debugging
d. All of the above Ans: d
Q.58 In which aspects do the output functions specified in stdio.h differ from ANSI
specified versions?
a. Provision of MPLAB specific extensions
b. Floating-point Format Support
c. Data in Program Memory
d. All of the above Ans: d
Q.59 Which flags of status register are most likely to get affected by the single-cycle
increment and decrement instructions?
a. P Flags b. C Flags c. OV Flags d. Z Flags Ans: d
Q.60 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.70 The rate at which the bits are transmitted (bits/second) is called ____ _.
a. speed b. bit rate c. baud d. sample Ans: c
Q.72 Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?
a. Slave Select mode in slave mode
b. Data input sample phase
c. Clock Rate in master mode
d. All of the above Ans: d
Q.73 Which bit of SSPCON must be necessarily set so as to enable the synchronization
of serial port?
a. WCOL b. SSPOV c. CKP d. SSPEN Ans: d
Q.74 Which bits assist in determining the I2C bit rate during the initialization process of
MSSP module in I2C mode?
a. SSPADD b. SSPBUF c. Both a & b d. None of the above Ans: a
Q.75 Which command/s should be essentially written for I2C input threshold selection
and slew rate control operations?
a. SSPSTAT b. SSPIF c. ACKSTAT d. All of the above Ans: a
Q.76 Where does the baud rate generation occur and begins to count the bits required
to get transmitted, after an execution (set) of BF flag?
a. SCL line b. SDA line c. Both a & b d. None of the above Ans: b
Q.77 How many upper bits of SSPSR are comparable to the address located in SSPADD
especially after the shifting of 8 bits into SSPSR under the execution of START
condition?
a. 7 b. 8 c.16 d.32 Ans: a
Q.78 Where should the value of TX9 bit be loaded during the 9 bit transmission in an
asynchronous mode?
a. TXSTA b. RCSTA c. SPBRG d. All of the above Ans: a
Q.81 How is the baud rate specified for high-speed (BRGH = 1) operation in an
asynchronous mode ?
a. FOSC / 8 (X +1 )
b. FOSC / 16 (X +1 )
c. FOSC / 32 (X +1 )
d. FOSC / 64 (X +1 ) Ans: b
Q.82 What is the status of shift clock supply in an USART synchronous mode?
a. Master - internally, Slave - externally
b. Master - externally, Slave - internally
c. Master & Slave (both) - internally
d. Master & Slave (both)- externally Ans: a
Q.83 Which bit plays a salient role in defining the master or slave mode in TXSTA
register especially in synchronous mode ?
a. RSRC b. CSRC c. SPEN d. SYNC Ans: b
Q.84 Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins
as DT (data lines) ?
a. TXSTA b. RCSTA c. Both a & b d. None of the above Ans: b
Q.87 SDA is having a transition when the clock line SCL is high.
a. high to low b. low to high c. low to low d. high to high Ans: a
Q.100 Synchronous interfaces make use of clock signal? State True or False
a. True b. False Ans: a
Q.101 Which of the following serial protocol is used for on-board serial communication?
a. USB b. I2C c. Wifi d. Bluetooth Ans: b
Q.102 Which of the following protocol make use of 7 bit address for its operation?
a. I2C b. SPI c. RS232 d. RS485 Ans: a
Q.103 Which of the following interface is used to 127 slave device to the master device?
a. SPI b. I2C c. RS232 d. RS485 Ans: b
Q.104 RS232 protocol makes use of clock signal for sending data? True or False
a. True b. False Ans: b
Q.105 Which serial communication interface is used to connect modems and for non
networked communication between computers and other devices?
a. SPI b. I2C c. UART d. USB Ans: c
Q.108 Which of the following make use of 4 wires for its operation?
a. USB b. CAN c. SPI d. I2C Ans: c
Q.111 Which of the following supports only point to point communication and not
suitable for multi drop communication
a. RS485 b. RS232 c. RS422 d. Rs484 Ans: b
Q.112 Which of the following is a low cost, low power, short range wireless
communication for voice and data
a. Wi-Fi b. Infrared c. Zigbee d. Bluetooth Ans: d
Q.113 Which factor/s is/are supposed to have the equal values at both phases of
transmission and reception levels with an intimation of error-free serial
communication?
a. Baud Rate
b. Number of data bits & stop bits
c. Status of Parity bits
d. All of the above Ans: d
Q.114 Which bits exhibit and signify the termination phase of the character
transmission and reception in SCON special function register?
a. Control bits
b. Status bits
c. Both a & b
d. None of the above Ans: b
Q5. The File select registers (FSRx) of PIC18 microcontroller are _bit wide.
Option A: 8 bit
Option B: 12bit
Option C: 16 bit
Option D: 21 bit
Q6. If the user attempts to retrieve more address that are stored in stack, which
flag of stack pointer will set?
Option A: Stack overflow
Option B: Stack Underflow
Option C: PUSH
Option D: POP
Q9. SUBWF f, d, a
In a given instruction syntax, the letter ‘ d ’ stand for
Option A: Destination of result
Option B: Direct addressing
Option C: Address of data bank
Option D: Number of digits
Q11. Select the correct description for the given instruction TBLRD*+
Option A: Read the data from program memory pointed by TBLPTR
Option B: Read the data from program memory pointed by TBLPTR and increment
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Write the data to program memory pointed by TBLPTR and increment
TBLPTR
Q12. Select the correct description for the given instruction TBLWT+*
Option A: Read the data from program memory pointed by TBLPTR
Option B: Increment the TBLPTR then Read the data from program memory pointed by
TBLPTR
Option C: Write the data to program memory pointed by TBLPTR
Option D: Increment the TBLPTR then Write the data to program memory pointed by
TBLPTR
Q16. If the SPBRG register of serial communication is loaded with 07H and the
clock frequency (Fosc) is 10MHz. Select the most appropriate Baud are set by
serial communication module.
Option A: 2400
Option B: 4800
Option C: 9600
Option D: 19200
Q19. To read the 8 bit data from Command Register of LCD, select the appropriate
status to be maintained at RS and RW pin respectively.
Option A: RS =0, RW = 0
Option B: RS =0, RW =1
Option C: RS =1, RW = 0
Option D: RS =1, RW = 1
Q20. While interfacing 16X2 LCD with microcontroller, +5V and ground are to be
connected to _ &_ pin respectively.
Option A: VEE & VCC
Option B: VCC & VEE
Option C: VSS & VCC
Option D: VCC & VSS
Q22. PORTx, TRISx and LATx are which type of registers associated with ports?
Option A: GPRs
Option B: SFRs
Option C: FSRs
Option D: CPURs
Q25. To which register does the Channel selection bits of ADC module are belong?
Option A: PIR1
Option B: PIR2
Option C: ADCON0
Option D: ADCON1
Unit I MCQ Question Bank
Subject: PA Class: SE
Course Outcomes:
CO1: Apprehend architecture and memory organization of PIC 18 microcontroller.
CO2: Implement embedded C programming for PIC 18.
Bloom’s Level:
Understanding
19. Which register bank is supposed to get selected if the values of 1 1,2 II
register bank select bits RS1 & Rs0 are detected to be ‘1’ & ‘0’
respectively?
a) Bank 0
b) Bank 1
c) Bank 2
d) Bank 3
20. If we say microcontroller is 8-bit then here 8-bit denotes size of: 1 1,2 II
a) Data Bus
b) ALU
c) Control Bus
d) Address Bus
21. What is the most appropriate criterion for choosing the right 2 1,2 III
microcontroller of our choice?
a) speed
b) availability
c) ease with the product
d) all of the mentioned
22. Which among the below stated reasons is/are responsible for the 2 1,2 III
selection of PIC implementation/design on the basis of Harvard
architecture instead of Von-Newman architecture?
a) Improvement in bandwidth
b) Instruction fetching becomes possible over a single
instruction cycle
c) Independent bus access provision to data memory even while
accessing the program memory
d) All of the above
23. Generation of Power-on-reset pulse can occur only after 2 1,2 III
__________
a) the detection of increment in VDD from 1.5 V to 2.1 V
b) the detection of decrement in VDD from 2.1 V to 1.5 V
c) the detection of variable time delay on power up mode
d) the detection of current limiting factor
24. Which among the below mentioned PICs do not support the Brown- 2 1,2 III
Out-Reset (BOR) feature?
a. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
a) A&B
b) C & D
c) A & C
d) B & D
25. When does it become possible for a bit to get accessed from bank 2 1,2 III
‘0’ in the direct addressing mode of PICs?
a) Only when RPO bit is set ‘zero’
b) Only when RPO bit is set ‘1’
c) Only when RPO bit is utilized along with 7 lower bits of
instruction code
d) Cannot Predict
42. What action will happen after execution of the following instruction: 1 2 II
BCF TRISC,2
49. By using which of the following instructionwe can write a code which will 2 3 III
toggle the pin 2 of PORT C?
a) BCF,BTG,BRA
b) BRA
c) MOLW
BSF
50. XTAL=10 MHZ,Prescaler ratio:1:8, desired delay is 20ms what will be the value 2 3 III
to be loaded in 16 bit timer register:
e) 85EEH
f) E796H
g) 3DH
h) 0CH
Course Outcomes:
CO2: Implement embedded C programming for PIC 18.
CO3: Use concepts of timers and interrupts of PIC 18.
CO 4: Demonstrate real life applications using PIC 18.
Bloom’s Level:
CO2 and CO3: Applying
CO4: Understanding
Sr. Question Marks CO Compl
No. No. exity
Level
Unit III
51. The return address from the interrupt-service routine is stored on the 1 2,3,4 I
___________
a) System heap
b) Processor register
c) Processor stack
d) Memory
52. The time between the receiver of an interrupt and its service is ______ 1 2,3,4 I
a) Interrupt delay
b) Interrupt latency
c) Cycle time
d) Switching time
53. The signal sent to the device from the processor to the device after receiving 1 2,3,4 I
an interrupt is ___________
a) Interrupt-acknowledge
b) Return signal
c) Service signal
d) Permission signal
54. A single Interrupt line can be used to service n different devices. 1 2,3,4 I
a) True
b) False
55. An interrupt that can be temporarily ignored is ___________ 1 2,3,4 I
a) Vectored interrupt
b) Non-maskable interrupt
c) Maskable interrupt
d) High priority interrupt
56. Which interrupt is unmaskable? 1 2,3,4 I
a) RST 5.5
b) RST 7.5
c) TRAP
d) Both RST 5.5 and 7.5
57. Give the name of interrupt in INTCON register. 1 2,3,4 I
a) TMR0
b) INT0
c) TMR1
d) INT1
58. How is a software interrupt created? 1 2,3,4 I
a) instruction set
b) sequential code
c) concurrent code
d) porting
59. What does NMI stand for? 1 2,3,4 I
a) non-machine interrupt
b) non-maskable interrupt
c) non-massive interrupt
d) non-memory interrupt
60. While CPU is executing a program, an interrupt exists then it 1 2,3,4 I
a) follows the next instruction in the program
b) jumps to instruction in other registers
c) breaks the normal sequence of execution of instructions
d) stops executing the program
61. Which of the following instruction will enable the TMR0 interrupt? 1 2,3,4 II
a) INTCONbits.TMR0IF=1;
b) TCONbits.TMR0IF=0;
c) INTCONbits.TMR0IE=1;
d) INTCONbits.TMR0IE=0;
62. What memory address in the interrupt vector table is assigned to high-priority 1 2,3,4 II
interrupts?
a) 0x0008
b) 0x0018
c) 0x0080
d) 0x0081
63. The INT1IF bit belongs to the ___________________ register. 1 2,3,4 II
a) INTCON1
b) INTCON2
c) INTCON3
d) PIR1
64. After RETI instruction is executed then the pointer will move to which 1 2,3,4 II
location in the program?
a) next interrupt of the interrupt vector table
b) immediate next instruction where interrupt is occurred
c) next instruction after the RETI in the memory
d) none of the mentioned
65. While executing the main program, if two or more interrupts occur, then the 1 2,3,4 II
sequence of appearance of interrupts is called
a) multi-interrupt
b) nested interrupt
c) interrupt within interrupt
d) nested interrupt and interrupt within interrupt
66. The input and output operations are respectively similar to the operations, 1 2,3,4 II
a) read, read
b) write, write
c) read, write
d) write, read
67. How many rows and columns are present in a 16*2 alphanumeric LCD? 1 2,3,4 II
a) rows=16, columns=2
b) rows=2, columns=12
c) rows=16, columns=16
d) rows=2, columns=16
68. For writing commands on an LCD, RS bit is 1 2,3,4 II
a) set
b) reset
c) both
d)none
69. Which command of an LCD is used to shift the entire display to the right? 1 2,3,4 II
a) 0x1C
b) 0x18
c) 0x50
d)0x07
70. What is the principle on which electromagnetic relays operate? 1 2,3,4 II
a) electromagnetic induction
b) motor control
c) switching
d) none of the mentioned
71. How can we control the speed of a stepper motor? 2 2,3,4 III
a) by controlling its switching rate
b) by controlling its torque
c) by controlling its wave drive 4 step sequence
d) can’t be controlled
72. Which of the following step/s is/are correct to perform reading operation from 2 2,3,4 III
an LCD?
a) low to high pulse at E pin
b) R/W pin is set high
c) low to high pulse at E pin & R/W pin is set high
d) none of the mentioned
73. Which instruction is used to select the first row first column of an LCD? 2 2,3,4 III
a) 0x08
b) 0x0c
c) 0x80
d) 0xc0
74. To identify that which key is being pressed, we need to: 2 2,3,4 III
a) ground all the pins of the port at a time
b) ground pins of the port one at a time
c) connect all the pins of the port to the main supply at a time
d) none of the mentioned
75. How can we change the speed of a DC motor using PWM? 2 2,3,4 III
a) By changing amplitude of PWM
b) By keeping fixed duty cycle
c) By changing duty cycle of PWM
d) By increasing power of PWM
UNIT IV
1. Which among the below mentioned aspect issues are supported by 1 2,4 I
capture/compare/PWM modules corresponding to time in PIC 16F877?
a. Control
b. Measurement
c. Generation of pulse signal
d. All of the above
2. Which mode allows to deliver the contents of 16-bit timer into a SFR based on 1 2,4 I
rising/falling edge detection?
a. Capture Mode
b. Compare Mode
c. PWM Mode
d. MSSP Mode
3. What among the below specified functions is related to PWM mode? 1 2,4 I
a. Generation of an interrupt
b. Generation of rectangular wave with programmable duty cycle with an
user assigned frequency
c. Variations in the status of an output pin
d. Detection of an exact point at which the change occurs in an input edge
4. What happens when the program control enters the Interrupt Service 1 2,4 I
Subroutine (ISS) due to enabling of CCP1IE bit in PIE1 especially during the
initialization of CCP1 Module in capture mode?
a. CCP1F bit gets cleared in PIR1 by detecting new capture event
b. GIE bit gets enabled
c. Contents of CCPR1L & CCPR1H are automatically copied in TMR1L &
TMR1H respectively
d. Interrupt flag bit CCP1IF gets enabled in PIR
5. The capture operation in counter mode is feasible when mode of CCP module 1 2,4 I
is _________
a. synchronized
b. asynchronized
c. synchronized as well as asynchronized
d. irrespective of synchronization
6. Speed of DC motors are controlled by 1 2,4 I
a. Flux control method
b. Rheostatic control method
c. Voltage control method
d. All of these
7. The rotor of a stepper motor has no 1 2,4 I
a) Windings
b) Commutator
c) Brushes
d) All of the mentioned
8. A stepper motor may be considered as a ____________ converter. 1 2,4 I
a) Dc to dc
b) Ac to ac
c) Dc to ac
d) Digital-to-analogue
9. Which of the following can be used for long distance communication? 1 2,4 I
a) I2C
b) Parallel port
c) SPI
d) RS232
10. Which type of motor is suitable for computer printer device? 1 2,4 I
a. Reluctance motor
b. Hysteresis motor
c. Stepper motor
d. Shaded pole motor
11. Stepper motors are widely used because…. 1 2,4 II
a. Wide speed range
b. Large rating
c. No need for field control
d. Compatibility with digital systems.
12. Which is most commonly used UART? 1 2,4 II
a. 8253
b. 8254
c. 8259
d. 8250
13. Which of the following are the three hardware signals? 1 2,4 II
a) START, STOP, ACKNOWLEDGE
b) STOP, TERMINATE, END
c) START, SCL, SDA
d) STOP, SCL, SDA
14. SDA is having a ____________transition when the clock line SCL is high. 1 2,4 II
a) high to low
b) low to high
c) low to low
d) high to high
15. Which of the following is an advantage of SPI? 1 2,4 II
a) No start and stop bits
b) Use 4 wires
c) Allows for single master
d) Error checking is not present
16. What rate can define the timing in the UART? 1 2,4 II
a) bit rate
b) baud rate
c) speed rate
d) voltage rate
17. The serial communication is used for 1 2,4 II
a) short distance communication
b) long distance communication
c) short and long distance communication
d) communication for a certain range of distance
18. I2C protocol supports ……..types of addressing structures 1 2,4 II
a. 2
b. 3
c. 4
d. 5
19. Which lines are utilized during the enable state of hardware flow control in 1 2,4 II
DTE and DCE devices of RS232 ?
a. CD & IR
b. DSR & DTR
c. RTS & CTS
d. None of the above
20. TXD(Transmitted Data Output) pin carries serial stream of the transmitted data 1 2,4 II
bits along with
a) start bit
b) stop bit
c) parity bit
d) all of the mentioned
21. The disadvantage of RS232 is 2 2,4 III
a. Limited speed of communication
b. High voltage level signaling
c. Big size communication adapter
d. All of the above
22. Why are the pulse width modulated outputs required in most of the 2 2,4 III
applications?
a. To control average value of an input variables
b. To control average value of output variables
c. Both a & b
d. None of the above
23. What is the difference between UART and USART communication? 2 2,4 III
a) they are the names of the same particular thing, just the difference of A and
S is there in it
b) one uses asynchronous means of communication and the other uses
synchronous means of communication
c) one uses asynchronous means of communication and the other uses
asynchronous and synchronous means of communication
d) one uses angular means of the communication and the other uses linear
means of communication
24. Which of the following signals are active low in the 8250 UART? 2 2,4 III
a) BAUDOUT
b) DDIS
c) INTR
d) MR
25. How does the pin RC2/CCP1 get configured while initializing the CCP 2 2,4 III
module in the compare mode of operation?
a. As an input by writing, it in TRISC register
b. As an output by writing, it in TRISC register
c. As an input without the necessity of writing or specifying it in TRISC
register
d. Compare mode does not support pin RC2/CCP1 configuration CCP
initialization
Unit-1 PIC Microcontroller Architecture
Difficulty
Sr. Level (Low- Correct
Item Text Option Text 1 Option Text 2 Option Text 3 Option Text 4
No. 1,Medium- Option
2,High -3)
High Combination of
PIC 18f452 Miceocontroller has High performance
performance both RISC and
______ RISC CPU
1 1 CISC CPU CISC CPU Advanced RISC CPU 1
PIC 18f452 Microcontroller has _____
2 1 Timer modules 1 2 3 4 4
FLASH Program Memory of
3 1 PIC18F452 is _______ 128K 64K 32K 16K 3
PIC 18f452 is
4 1 ________Microcontroller 8 16 32 64 1
5 1 PIC18F452 has total _____ pins . 40 20 16 8 1
Instruction set of PIC18F452 has
6 1 _________instructions 33 35 40 75 4
7 1 PIC18F452 has _____ ADC 8 bit 10 bit 12 bit 14 bit 2
8 1 PORT names of PIC18F452 are 0,1 0,1,2,3,4 A,B,C,D,E A,B,C 3
deep sleep, deep
PIC18F452 has power down modes :
9 1 sleep, idle sleep, deep sleep idle, deep sleep power down 1
Watch Down Width Delay
WDT stands for ________
10 1 Timer Watch Dog Timer Timer Watch Delay Timer 2
PIC18F542 has ____program
11 1 counter 8-bit 16-bit 20-bit 21-bit 4
Each instruction has two parts Opcode and Opcode and Operand and Opcode and Pointer
12 1 __________ Register Operand Register value 2
Arithmatic Move and Load Branch
ADDWFC, SUBWF are
13 1 Instructions instructions instructions Logical instructions 1
BNZ n : Instruction of PIC 18F452 Branch if Z flag = Branch if Z flag = Branch if Z
14 1 1 0 Accumulator is 0 None of the above 2
BOD' stands for Brown OR Reset Brown out Reset Brown out Reset Board on Reset
20 1 Detection Detection Debug Detection 2
Circuit used for initialization of all Power-On Reset
Brown Out Power ON/OFF
values to default is named as Circuit
21 2 Detection Circuit circuit WDT circuit 1
In Immediate (Literal) addressing
mode The operand is _____ that
22 2 follows the opcode a register a number a pointer an address 2
Program Program
Program
Three types of memory in PIC18 Memory, Data Memory, Data Program ROM, Data
Memory, Data
enhanced microcontroller are _____ ROM, Data RAM, Data RAM, Data EEPROM
RAM, Data ROM
23 2 EEPROM EEPROM 3
Immediate,
Name of Addressing Modes in Immediate, Immediate, Immediate, Direct
Register and
PIC18F4550 are ______ Direct and Offset Direct and Index and Indirect
24 2 Indirect 4
8-bit/16-bit
timer/counter 8-bit
Timer 0 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
25 2 prescaler timer/counter register 8-bit timer/counter 1
8-bit/16-bit
timer/counter 8-bit
Timer 1 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
26 2 prescaler timer/counter register 8-bit timer/counter 2
8-bit/16-bit
timer/counter 8-bit
Timer 2 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 16-bit with 8-bit period
27 2 prescaler timer/counter register 8-bit timer/counter 3
8-bit/16-bit
timer/counter 8-bit
Timer 3 module of PIC 18F458 uses
with 8-bit timer/counter
______
programmable 8-bit with 8-bit period
28 2 prescaler timer/counter register 16-bit timer/counter 4
PIC18F452 has power down modes as deep power sleep and deep deep sleep and deep
29 2 _____ idle and sleep down and idle sleep power down 1
PIC18F452 device can be operated in
____ oscillator Configuration modes.
30 2 10 12 14 16 2
The operation of the oscillator in
PIC18F4550 is controlled through
two Configuration registers as OSCCONFIG1 and CONFIG2 and CONFIG1L and
31 2 ________ OSCCONFIG2 CONFIG2 CONFIG1H None of the above 3
PIC 18F458 has ____ External
32 2 Interrupts Five Four Six Two 4
33 2 MSSP module of PIC18F452 has ADC and PWM SPI and I2C USART and CCP I2C and PWM 2
TIMER0 TIMER0 TIMER0
T0CON Register of Timer is
CONTINUOUS CONSTANT CONTROL TIMER0 CONFIG.
__________
34 2 REGISTER REGISTER REGISTER REGISTER 3
Resets all the
The instruction RESET in PIC 18F458 : Resets the registers and Resets all the Resets all the
35 2 Microcontroller flags flags registers 2
All the Timer module Registers of PIC
36 2 18F 4550 are 64 bit 16 bit 32 bit 8 bit 1
a. 4
b. 8
c. 12
d. 16
Answer Explanation Related Ques
ANSWER: 4
Explanation:
No explanation is available for this question!
2) Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16 CXX on the basis of instructions execution?
a. 0.1 μs
b. 0.2 μs
c. 0.4 μs
d. 0.8 μs
Answer Explanation Related Ques
ANSWER: 0.2 μs
Explanation:
No explanation is available for this question!
4) Which operational feature of PIC allows it to reset especially when the power
supply drops the voltage below 4V?
a. Built-in Power-on-reset
b. Brown-out reset
c. Both a & b
d. None of the above
Answer Explanation Related Ques
5) Which among the below stated reasons is/are responsible for the selection of PIC
implementation/design on the basis of Harvard architecture instead of Von-Newman
architecture?
a. Improvement in bandwidth
b. Instruction fetching becomes possible over a single instruction cycle
c. Independent bus access provision to data memory even while accessing the program
memory
d. All of the above
Answer Explanation Related Ques
6) Which among the below specified major functionalities is/are associated with the
programmable timers of PIC?
a. Excogitation of Inputs
b. Handling of Outputs
c. Interpretation of internal timing for program execution
d. Provision of OTP for large and small production runs
a. Only C
b. C & D
c. A, B & D
d. A, B & C
Answer Explanation Related Ques
ANSWER: A, B & C
Explanation:
No explanation is available for this question!
8) Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide?
a. Status Register
b. Program Counter Latch (PCLATH) Register
c. Program Counter Low Byte (PCL) Register
d. File Selection Register (FSR)
Answer Explanation Related Ques
9) Which register/s is/are mandatory to get loaded at the beginning before loading
or transferring the contents to corresponding destination registers?
a. W
b. INDF
c. PCL
d. All of the above
Answer Explanation Related Ques
ANSWER: W
Explanation:
No explanation is available for this question!
10) How many RPO status bits are required for the selection of two register banks?
a. 1
b. 2
c. 8
d. 16
Answer Explanation Related Ques
ANSWER: 1
Explanation:
No explanation is available for this question!
11) Which among the below mentioned bits specify the reset status of register in
readable format and are usually utilized in sleep mode of PIC?
a. TO
b. PD
c. Both a & b
d. None of the above
Answer Explanation Related Ques
12) The RPO status register bit has the potential to determine the effective address
of______
13) Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
14) Which statement is precise in relation to FSR, INDF and indirect addressing
mode?
a. Address byte must be written in FSR before executing INDF instruction in indirect
addressing mode
b. Address byte must be written in FSR after executing INDF instruction in indirect
addressing mode
c. Address byte must be written in FSR at the same time during the execution of INDF
instruction in indirect addressing mode
d. Address byte must be always written in FSR as it is independent of any instruction
in indirect addressing mode
a. Only A
b. Only B
c. Only A & B
d. A & D
Answer Explanation Related Ques
ANSWER: Only A
Explanation:
No explanation is available for this question!
15) Which among the below stated registers specify the address reachability within
7 bits of address independent of RP0 status bit register?
a. PCL
b. FSR
c. INTCON
d. All of the above
Answer Explanation Related Ques
16) Where do the contents of PCLATH get transferred in the higher location of
program counter while writing in PCL (Program Counter Latch)?
a. 11th bit
b. 12th bit
c. 13th bit
d. 14th bit
Answer Explanation Related Ques
17) Which condition/s of MCLR (master clear) pin allow to reset the PIC?
a. High
b. Low
c. Moderate
d. All of the above
Answer Explanation Related Ques
ANSWER: Low
Explanation:
No explanation is available for this question!
19) What is the rate of power up delay provided by an oscillator start-up timer while
operating at XT, LP and HS oscillator modes?
a. 512 cycles
b. 1024 cycles
c. 2048 cycles
d. 4096 cycles
Answer Explanation Related Ques
20) Which kind of mode is favourable for MCLR pin for indulging in reset
operations?
a. Normal mode
b. Sleep mode
c. Power-down mode
d. Any flexible mode
Answer Explanation Related Ques
21) What is the purpose of using the start-up timers in an oscillator circuit of PIC?
ANSWER: For ensuring the inception and stabilization of an oscillator in a proper manner
Explanation:
No explanation is available for this question!
22) Which program location is allocated to the program counter by the reset
function in Power-on-Reset (POR) action modes?
a. Initial address
b. Middle address
c. Final address
d. At any address reliable for reset operations
Answer Explanation Related Ques
23) When does it become very essential to use the external RC components for the
reset circuits?
24) Which among the below mentioned PICs do not support the Brown-Out-Reset
(BOR) feature?
a. PIC 16C66
B. PIC 16C74
C. PIC 16C61
D. PIC 16C71
a. A & B
b. C & D
c. A & C
d. B & D
Answer Explanation Related Ques
ANSWER: C & D
Explanation:
No explanation is available for this question!
26) What happens when the supply voltage falls below 4V during the power-up timer
delay of 72ms in PIC?
a. CPU resets PIC once again in BOR mode
b. BOR reset mode gets disabled
c. PIC does not remain in BOR mode until the voltage increases irrespective of stability
d. Power-up timer kills 72ms more again
Answer Explanation Related Ques
28) Which form of clocking mechanism is highly efficient and reliable for crystal or
ceramic clock sources for operating at the range of 5- 200 kHz in PIC?
a. RC
b. LP (Low-Power Clocking)
c. XT
d. HS (High Speed)
Answer Explanation Related Ques
a. High accuracy
b. Proficiency in time generation
c. Applicability in real-time operations
d. All of the above
Answer Explanation Related Ques
30) What is the executable frequency range of High speed (HS) clocking
method by using cystal/ ceramic/ resonator or any other external clock source?
a. 0-4 MHz
b. 5-200 KHz
c. 100kHz- 4 MHZ
d. 4-20 MHz
Answer Explanation Related Ques
31) How many bits are required for addressing 2K & 4K program memories of PIC
16C61 respectively?
a. 4 & 8 bits
b. 8 & 16 bits
c. 11 & 12 bits
d. 12 & 16 bits
Answer Explanation Related Ques
a. 000H
b. 004H
c. 001H
d. 011H
Answer Explanation Related Ques
ANSWER: 000H
Explanation:
No explanation is available for this question!
33) When do the special address 004H get automatically loaded into the program
counter?
34) How many bits are utilized by the instruction of direct addressing mode in order
to address the register files in PIC?
a. 2
b. 5
c. 7
d. 8
Answer Explanation Related Ques
ANSWER: 7
Explanation:
No explanation is available for this question!
35) Which registers are adopted by CPU and peripheral modules so as to control
and handle the operation of device inhibited in RFS?
Related Content
https://www.careerride.com/mcq-daily/microcontrollers-applications-test-questions-set-7-565.aspx
Sinhgad College of Engineering
Dept. of Information Technology
Class - SE
Processor Architecture
(214451)
Unit 2 : PIC I/O Ports and Timer
Refer TIMER0 Block Refer TIMER1 Block Refer TIMER2 Block Refer TIMER3 Block
Block Diagram
Diagram Diagram Diagram Diagram
Special Function
TMR0H, TMR0L TMR1H, TMR1L TMR2, PR2 TMR3H, TMR3L
Registers associated
Timer Mode of
8-bit / 16-bit 16-bit 8-bit 16-bit
Operation
Counter Mode of 8-bit / 16-bit Counter Not Available as
16-bit Counter 1 Counter 3
Operation 0 Counter
2, 4, 8, 16, 32, 64,
Pre-Scaling Factor 1, 2, 4, 8 1, 4, 16 1, 2, 4, 8
128, 256
1, 2, 3, 4, 5, 6. 7, 8,
Post-Scaling Factor Not Available Not Available 9, 10, 11, 12, 13, Not Available
14,15, 16
Internal Source
to T1OSI-T1OSO (additional)
□ T1OSCEN=1
□ 32 kHz Crystal is connected
□ Used for saving power during
SLEEP mode doesn’t disable
Timer1 while the main crystal is
shut down
9-29
9-33
9-35
Port Structure
Ports Available For PIC18F Family
Port SFRs of PIC18FXX
Processor Architecture
(214451)
Unit-4: PIC 18F Microcontroller
CCP Module
Faculty – Prof. Madhukar V.
Nimbalkar
[email protected]
9890586765
SYLLABUS : UNIT 4 - PIC
Interfacing-II
CCP modes: Capture, Compare and PWM generation;
• In compare operation
• The CCP module compares the contents of a CCPR
register with that of Timer1 (or Timer3) in every clock
cycle.
• When these two registers are equal, the associated pin
may be pulled high or low or toggled.
• PWM –
• Pulse Width Modulation can generate signals of varying
frequency and duty cycle.
CCP Modules
Solution:
Either two consecutive rising edges or two falling edges must be
captured.
The difference of these two edges becomes the period of the signal.
The required timers settings are
PORTB
PIC18F
CCP1(RC2)
PORTD
19
Example 1: Program
#include <p18f4550.h>
__CONFIG (FOSC_HS & WDTE_OFF & PWRTE_OFF & BOREN_OFF & LVP_OFF);
#define _XTAL_FREQ 10000000
void pic_init(void);
void timer_init(void);
void ccp_init(void);
main()
{
pic_init(); //initialize PIC
timer_init(); //initialize Timer Module
ccp_init(); //initialize CCP Module
while(1)
{
while(PIR1bits.CCP1IF==0)
{
T1CON=0b00000001; //start Timer1
PIR1=0b00000000;
}
20
Example 1: Program
while(PIR1bits.CCP1IF==1)
{
T1CON=0b00000000; //stop Timer1
PIR1bits.CCP1IF=0;
PORTB=CCPR1L;
PORTD=CCPR1H;
}
}
}
void pic_init(void)
{
TRISB=0b00000000;
PORTB=0b00000000;
TRISC=0b11111111;
PORTC=0b00000000;
TRISD=0b00000000;
PORTD=0b00000000;
}
21
Example 1: Program
void timer_init(void)
{
T1CON=0b00000000;
PIR1=0b00000000;
TMR1H=0;
TMR1L=0;
}
void ccp_init(void)
{
CCP1CON=0b00000100; //Capture rising edge
CCPR1H=0;
CCPR1L=0;
}
22
Example 1: Circuit Layout
23
Example1: Simulation Result
□ When clock at 150cyc high and 150cyc low, PIR will
interrupt at CCPR1L=DFH(High to low).
24
Example1: Simulation Result
25
Example1: Simulation Result
26
Applications of Capture Mode
▪ Event arrival time recording
▪ Period measurement
▪ Pulse width measurement
▪ Interrupt generation
▪ Event counting
▪ Time reference
▪ Duty cycle measurement
PIC18F4550 Compare Mode
• "Compare" mode continually compares the value in the
CCP register with the timer value, and triggers an
interrupt or a transition on the CCP pin when the two
values match.
• CCP in Compare mode is used to generate a waveform
of various duty cycles like PWM and also used to trigger
an event when the pre-determined time expires.
• Also, it is used to generate specific time delay.
• Output (e.g. Waveform generation) of CCP2 and CCP1
in compare mode is generated on two pins i.e. RC1 and
RC2 respectively.
Compare Mode
• In compare mode, the 16-bit CCPR1 register value is
constantly compared against either the TMR1 or the
TMR3 register pair value.
• When a match occurs between the CCPR1 Register value
and Timer value, the CCP1IF interrupt flag is generated
and one of the following actions may occur on the
associated RC2 pin:
• Toggle output on the RC2 pin.
• RC2 pin drives to a High level.
• RC2 pin drives to a low level.
• Generate software interrupt
• Generate a special trigger event.
• Remain unchanged (that is, reflects the state of the I/O
latch)
• The action on the pin is based on the value of the mode
select bits (CCPxM<3:0>). At the same time, the interrupt
flag bit, CCPxIF, is set.
Block diagram of Compare Mode
• Both CCP modules are equipped with a Special Event Trigger. This is an
internal hardware signal generated in Compare mode to trigger actions by
other modules. The Special Event Trigger is enabled by selecting the
Compare Special Event Trigger mode (CCPxM<3:0> = 1011).
• For either CCP module, the Special Event Trigger resets the Timer
register pair for whichever timer resource is currently assigned as the
module’s time base.
• This allows the CCPRx registers to serve as a programmable Period
register for either timer.
• The Special Event Trigger for CCP2 can also start an A/D conversion. In
order to do this, the A/D Converter must already be enabled.
CCP1CON Register: CCP1 Control Register
DC1B1:DC1B0:
Used for PWM mode.
CCP1M3:CCP1M0: CCP1 module mode select bit
These bits decide which action takes on compare match.
0010 = Toggle output on match
1000 = Initialize CCP1 pin low, on compare match this pin is set to high.
1001 = Initialize CCP1 pin high, on compare match this pin is set to low.
1010 = On compare match generates software interrupt.
1011 = On compare match trigger special event, reset the timer, start
ADC.
41
PWM-Period
Where:
PR2 is the value loaded into Timer 2 register
TMR2PS is the Timer 2 pre-scaler value (1/4/16)
TOSC is the clock oscillator period (seconds)
The PWM frequency is defined as 1/(PWM period).
42
PWM-Period
Example:
PR2 = 255 43
PWM-Duty Cycle
• Portion of pulse that stays HIGH relative to the entire
period.
• Supports up to 10 bit resolution.
• CCPx pin TRIS bit must be cleared to configure the pin as
output.
• PWM mode is enabled by placing CCPxM3:CCPxM0 =
b’11xx.
• Specified by writing to the CCPR1L register and to the
CCP1CON<5:4> bits.
• The CCPR1L contains the eight LSbs and the
The following equation
CCP1CON<5:4> is used
contains totwo
the calculate
MSbs.the PWM duty cycle
in time:
PWM Duty Cycle =(CCPR1L:CCP1CON<5:4>) •4 •TOSC • (TMR2 Pre-scaler)
44
Timer2 Register
Working of PWM in CCP module
• Load the period value in a PR2
register and the duty cycle value
in CCPR1L: CCP1CON<5: 4>
registers and initialize the CCP1
pin as an output.
• Configure the T2CON register
and set the TMR2 register to 0.
Also, start the Timer2.
• Now when a match occurs
between registers PR2 and
TMR2, pin CCP1 is pulled high
and TMR2 is cleared.
• The value of CCPR1L along with
the CCP1CON<5: 4> which is a
count for duty cycle is moved to
the CCPR1H.
• Finally, TMR2 is compared with
the CCPR1H along with two
lower bits of a duty cycle. When
matched, the pin CCP1goes
low.
Programming in PWM mode
1. Set PWM period through PR2 register.
PR2=0x37;
2. Set PWM duty cycle through CCPR1L for the first 8-bits.
CCPR1L=0b00011011;
3. Set CCP pin as an output.
TRISCbits.CCP1=0;
4. Set pre-scale value through T2CON.
T2CON= 0b00000000;
5. Clear TMR2 register.
TMR2=0;
6. Configure CCP1CON for PWM, CCPxX and CCPxY for
the remaining 10-bits
CCP1CON=0b00001100;
7. Start Timer2.
T2CON=0b00000101;
47
Example 3
PWM pulses must be generated from pin CCP1 of a
PIC18F microcontroller. The required pulse period is 44μs
and the required duty cycle is 50%. Assuming that the
microcontroller operates with a 20MHz crystal, calculate
the values to be loaded into the various registers. The
pre-scaler of timer2 is 4.
TOSC = 1/20MHz = 5x10-8s
PWM duty cycle period = 44μs * 0.5 = 22μs.
48
Example 3
PWM Mode
XX111100
CCP1CON=0b00111100;
CCPR1L=0b00000110
49
Example 3-Program
#include <p18f4550.h>
__CONFIG (FOSC_HS & WDTE_OFF & PWRTE_OFF & BOREN_OFF & LVP_OFF);
#define _XTAL_FREQ 20000000
void pic_init(void);
void timer_init(void);
void ccp_init(void);
main()
{
pic_init(); //initialize PIC
timer_init(); //initialize Timer Module
ccp_init();
while(1)
{
T2CON=0b00000101; //start Timer2
while(PIR1bits.TMR2IF==0)
{
PIR1bits.TMR2IF=0;
}
}
}
50
Example 3-Program
void pic_init(void)
{
TRISC=0b00000000;
PORTC=0b00000000;
}
void timer_init(void)
{
T2CON=0b00000000;
PR2=0x36;
TMR2=0;
}
void ccp_init(void)
{
CCPR1L=0b00000110;
CCP1CON=0b00111100; //PWM mode
}
51
Example 3-Circuit Layout
52
Example 3-Simulation Result
53
Example 3-Simulation Result
54
Example
Generate 10KHz PWM with a 20% duty cycle.
#include "osc_config.h"
#include <pic18f4550.h>
void main()
{
while(1);
}
DC Motor Control using PWM mode of CCP
• DC Motor Driver is a L293D based motor driver
interface board.
• The main aim of interfacing DC motor with any
microcontroller is to control the direction and speed of a
DC motor.
• But due to high voltage and current requirement of DC
motors, it cannot be interfaced directly with
microcontrollers.
• For to interface DC motor with any microcontroller, we
need a motor driver.
Motor driver is basically a current amplifier which takes a
low-current signal from the microcontroller and gives out a
proportionally higher current signal which can control and
drive a motor.
• L293D is a dual H-Bridge motor driver IC. With one
L293D IC we can interface two DC motors which can be
controlled in both clockwise and counter clockwise
L293D – Motor driver
• The PWM mode is used to control
the speed of DC motors.
• Higher the duty cycle of the PWM
signal higher is the speed of DC
motor.
• The PIC18 microcontroller will
generate PWM signals of different
duty cycle using its PWM mode of
CCP module and will give the
PWM signal to the two enable pins
of the L293D.
• Here, use the DC Motor Driver to
control the speed of two DC motor.
• In this way, the microcontroller will
run the DC motor in forward
direction with different speeds.
DC Motor Driver L293
V
SS
1 1 L29
CE 1 16
L29 16 VSS 0
2 3 1
1 15
1 2 3 0 M
15 IN 0 3 3
IN
3 14 4 14
1 1 13
4 13 OUT 4
M 12
OUT 5
5 12 4
1 11
6 11 GND
GND 6 4
7 10 GND 1 7
2 10 1
GND 9 0 M
VS 8 9 OUT 0
8 1
OUT 0
3
2 (a) Pin (b) Motor
IN3 VS
Assignment connection
IN2 CE2
Motor driver L293 pin assignment and motor connection
PIC18F452 V V
CC CC
1
316
8 15
CCP1 2 6.8μF
13
RB4 7 12 0.33 μF
L293
54
9 M
NC 10 6
VCC 11 14
6.8μF
V
CC
CCP2 1
30137
10KΩ 3 2
All diodes are the same and could be any one of the 1N4000 Hall-effect
series switch
PIC18-based motor-control system
Pin 2 and pin 7 drives the two terminals of the DC motor.
Depending on the voltages applied to pin 2 and pin 7, the
motor can be rotating in clockwise or counterclockwise
direction as shown in Figure.
L293
PWM (CCP1)
A When A = B,
torque
applied to motor =
A 0
B clockwis counterclockwi
e se
The L293 motor driver
Algorithm
• START
• Configure RC0, RC2 pins as output pins
• Select PWM mode of operation by writing into CCP1CON
• Load initial value into PR2 register
• Configure T2CON register for Pre-scaler
• Write value into CCPR1L (Duty cycle register) to generate 25%
duty cycle waveform on pin RC2
• Provide some delay
• Write value into CCPR1L (Duty cycle register) to generate 50%
duty cycle waveform on pin RC2
• Provide some delay
• Write value into CCPR1L (Duty cycle register) to generate 75%
duty cycle waveform on pin RC2
• Provide some delay
• Write value into CCPR1L (Duty cycle register) to generate 100%
duty cycle waveform on pin RC2
• END
Program
The following Program will generate PWM waveform with 25%, 50%, 75%, 100% duty cycle on Pin RC2 using
CCP Module
#include<p18f458.h>
#pragma config OSC=HS
#pragma config PWRT=OFF
#pragma config WDT=OFF
#pragma config DEBUG=OFF, LVP=OFF
void DELAY();
#define IN1 PORTCbits.RC0
#define IN2 PORTCbits.RC2
void main()
{
TRISC=0x00; ///RC0,RC2 pin as PWM output pin
CCP1CON=0X0C;///PWM mode
PR2=100; ////PR2=(Fosc/4xNxFpwm)
T2CON=0X05; ///Prescaler=4
Processor Architecture
(214451)
Unit-3: PIC Microcontroller
Interrupts
Faculty – Prof. Madhukar V.
Nimbalkar
[email protected]
9890586765
Introduction
▪ Interrupts can be defined as asynchronous request
for service by peripherals to processor.
▪ Interrupts are mechanisms which enable instant
response to events such as counter overflow, pin
change, data received, etc.
▪ In normal mode, microcontroller executes the main
program as long as there are no occurrences that
would cause an interrupt.
▪ Upon interrupt, microcontroller stops the execution of
main program and commences the special part of the
program(ISR) which will analyze and handle the
interrupt.
▪ When an interrupt is
invoked the uC runs the
Interrupt Service
Routine(ISR)
▪ Interrupt vector table
holds the address of ISRs
▪ Power-on Reset 0000h
▪ High priority interrupt
0008h
▪ Low priority interrupt
0018h
▪ USART Interrupts
▪ Receive Interrupt
▪ Transmit Interrupt
All are Maskable & Vectored Interrupts
▪ A/D Conversion Complete Interrupt
The PIC uCs
Enabling and disabling an interrupt
Ex.
#include <p18f458.h>
#pragma code main = 0X50
Void msdelay
Void main (void)
{
}
#pragma code msdelay = 0X30
Void msdelay
{
RB Square Wave =
5 1KHz
By Interrupt
PORTC PORTD
P18F452 Method
RB
5 Buzzer
P18F452
Port C Port D
TRISC =0xFF;
TRISD=0;
SW1(RB4) LED1(RC4)
SW2(RB5) LED2(RC5)
void chk_isr(void);
void RBINT_ISR(void);
◻ Refer
◻ Pgs:
Syllabus
•ARM & RISC :
ARM and RISC design philosophy,
Introduction to ARM processor & its versions ARM 7, ARM 9, ARM 11
Features & advantages of ARM processor
Suitability of ARM processor in embedded applications
ARM 7 dataflow model & Programmers model
CPSR & SPSR registers
Modes of operation
Difference between PIC and ARM
RISC Design Philosophy
Features of RISC
• RISC processors are designed to execute simple but powerful instructions within a single
cycle at a high clock speed.
• RISC processors follow the four major design rules.
Hardwired instructions:
• With simple, one cycle instruction, there is no need for microinstructions. The machine
instructions can be hardwired. These instructions are executed faster than the instructions
implemented with microinstructions, since it is not necessary to access a microprogram
control memory during instruction execution.
One instruction per cycle:
RISC processor execute one instruction in a single cycle. In RISC processors, there is an one
instruction per machine cycle. A machine cycle is defined to be the time it takes to fetch two
operands from registers, performs an ALU operation, and stores the result in a register. Due to
this, RISC machine instructions are not complicated and can execute about as fast as,
microinstructions on CISC machines.
2. Pipelines
• Recall the concept of pipelining. The CPU contains several independent units that work in parallel.
One of them fetches the instructions, and other ones decode and execute them. At any instant, several
instructions are in various stages of processing. All RISC processors provide this pipelining feature.
• In RISC processor most instructions are register to register. These instructions have the following two
phases:
•Instruction Fetch (I)
•Execute (E)
• The instruction fetch phase fetches the instruction to be executed from memory and then execute
phase performs an ALU operation with register input and output to execute the instruction.
• In case of load and store instructions, three phases are required:
•Instruction fetch (I)
•Execute (E)
• Here, also the instruction fetch phase fetches the instruction to be executed. In execution phase
address of memory is calculated and in data transfer phase actual data is transferred from
register-to-memory or from memory-to-register depending upon the instruction.
• The Fig shows that how these phases can be overlapped in RISC processors to achieve the
pipelining. The Fig. (a) shows the two-way pipelining and the Fig (b) shows the three way
pipelining.
• In two way instruction pipelining, I and E phases of two different instructions are performed
simultaneously. In three way instruction pipelining, three instructions can be overlapped. Therefore,
maximum execution rate in two way instruction pipelining is twice the normal execution rate and it
is three times the normal execution rate in case of three way instruction pipelining.
3. Registers
• Register to Register Operations: Risc processors have a large number of general
purpose registers and they use efficient compiler technology to optimize register
usage. It is the most important characteristics of RISC processor. This architecture
encourages the optimization of register use, so that frequently accessed operands
remain in high-speed storage.
4. Load-store architecture
• RISC processors operate on data held in registers. Separate load and store
instructions transfer data between the register bank and external memory.
The advantage is that the use of data items which are held in the register does not
need memory access.
Comparison between RISC and CISC
ARM Design Philosophy
•The features of RISC which are accepted as well as rejected by ARM processors are discussed below.
•The features of RISC which are accepted by ARM processors are given below:
A load-store architecture
• ARM processor uses a RISC architecture. It contains a large number of registers The
instruction set contains separate load and store instructions for transferring data between the
register bank and external memory. When the data is to be operated, it is stored in the register
and then processed. The memory accesses are separated from data processing. So we can use
data items stored in registers multiple times without multiple memory accesses. This is
advantageous since memory accesses are costly. In contract, with a CISC architecture, the
data processing instructions can operate on memory directly.
• Simple addressing modes, with all load/store addresses being determined from register
contents and instruction fields only.
Uniform and fixed-length (32-bit) instruction fields
• ARM processor instruction set contains a reduced number of instructions. Also, these
instructions perform simple operations which can be executed in a single cycle. If the
complicated operations, such as division, are to be performed, the compiler or
programmer synthesizes them by combining several simple instructions. Each
instruction is a fixed length. This allows the pipeline to fetch future instructions
before decoding the current instruction in contrast, the CISC processor contains the
instructions of variable size, complex and take more cycles to execute. So in CISC
complexity is in processor hardware whereas in RISC, complexity is in compiler.
The uniform and fixed-length instruction fields simplify the instruction decoding.
Three-address instruction formats
• Most instructions of RISC and ARM processor have three address instruction
formats. That is, two source operands are stored in two different address locations
and third operand in a third address location.
The features of RISC which are rejected by ARM processors.
Register windows
• The main problem with register windows is the large chip area occupied by the large number
of registers. This feature is therefore rejected by ARM processors to reduce cost.
Delayed branches
• When branch instruction appears in a program and hence in a pipeline, a delay slot is
created. This causes pipeline problems since this is the disturbance to the smooth flow of
instructions. This delay slot is filled with some useful instruction which in most cases will be
executed. In most RISC processors, this problem is tried to reduce by using delayed
branches. Here, the branch takes place after the following instruction has executed. This
delayed branching technique works well when the processor uses single pipeline. However,
it may create problem for super-scalar implementations and also can not work well with
branch prediction mechanisms.
• Original ARM does not use delayed branch since they make exception handling more
complex.
Single cycle execution of all instructions
• ARM processor executes most of the data processing instructions in a single cycle However,
many other instructions need multiple clock cycles for their execution. More than one clock
cycle becomes the requirement even for a simple load and store instruction. At least two
memory accesses one for the instruction and one for the data, are needed.
In addition, the ARM architecture gives you :
• Control over both the Arithmetic Logic Unit (ALU) and shifter in every data-processing
instruction to maximize the use of an ALU and a shifter.
• Auto-increment and auto-decrement addressing modes to optimize program loops.
These enhancements to a basic RISC architecture allow ARM processors to achieve a good
balance of high performance, low code size, low power consumption and low silicon area.
Introduction to ARM Processor
• ARM has several processors that are grouped into number of families based on the
processor core they are implemented with.
• The architecture of ARM processors has continued to evolve with every family. Some of
the famous ARM Processor families are ARM7, ARM9, ARD10 and ARM11. Every
ARM processor implementation executes a specific instruction Architecture (ISA).
• The ISA has evolved to keep up compatibility so that code written to execute on an earlier
architecture revision will also execute on a later revision of the architecture.
ARM Nomenclature
• ARM Nomenclature identifies individual processors and provides basic information about
the feature set.
• The letters or words after "ARM" are used to indicate the features of a processor.
ARMxyzTDMIEJF-S
• x - Family or series
• y-Memory Management/Protection Unit
• z-Cache
• T-16 bit Thumb decoder
• D-JTAG Debugger
• M-Fast Multiplier
• I- Embedded In-circuit Emulator (ICE) Macrocell .
• E-Enhanced Instructions for DSP (assumes TDMI)
• J- Jazelle (for accelerated JAVA execution)
• F-Vector Floating-point Unit
• S-Synthesizable Version
T-Thumb Instruction Set:
• ARM Processors support both the 32-bit ARM Instruction Set and 16-bit Thumb Instruction
Set. The original 32-bit ARM Instructions consist of 32-bit opcodes which turns out to be a
4-byte binary pattern. The 16-bit Thumb Instructions consist of 16-bit opcodes or 2-byte
binary pattern to improve the code density.
D-JTAG Debug:
• JTAG is a serial protocol used by ARM to transfer information between the processor and
the test equipment.
M- Fast Multiplier:
• Older ARM Processors used a small and simple multiplier unit. This multiplier unit required
more clock cycles to complete a single multiplication. With the introduction of Fast
Multiplier unit, the clock cycles required for multiplication are significantly reduced and
modern ARM Processors are capable of calculating a 32-bit product in a single cycle
I- Embedded ICE Macrocell:
• ARM Processors have on-chip debug hardware that allows the processor to set break points
and watch points.
E-Enhanced Instructions:
• ARM Processors with this mode will support the extended DSP Instruction Set for high
performance DSP applications. With these extended DSP instructions, the DSP performance
of the ARM Processors can be increased without high clock frequencies.
J-Jazelle:
• ARM Processors with Jazelle Technology can be used in accelerated execution of Java
bytecodes. Jazelle DBX or Direct Bytecode execution is used in mobile phones and other
consumer devices for high performance Java execution without affecting memory or battery.
F-Vector Floating-point Unit:
• The Floating Point Architecture in AM Processors provide execution of floating point
arithmetic operations. The Dynamic Range and Precision offered by the floating Point
Architecture in ARM Processors are used in many real time applications in the industrial and
automotive areas.
S-Synthesizable :
• The ARM Processor Core is available as source code. This software core can be compiled
into a format that can be easily understood by the EDA Tools. Using the processor source
code, it is possible to modify the architecture of the ARM Processor.
Architecture
Evolution
• ARM has several processors that are grouped into number of families based on the
processor core they are implemented with.
• The families are based on the ARM7, ARM9, and ARM11 cores. The postfix numbers 7,
9, and 11 indicate different core designs.
ARM7
• ARM7 family is introduced in 1994 (ARM7TDMI, ARM7EJ-S ARM720T)
• This family has been immensely successful and has established ARM as the architecture
of choice in digital word.
• Over the years more than 10 billion ARM7 processor family based devices have powered
a verity of cost and power sensitive applications.
• Due the availability of more advanced ARM processors, the ARM7 processor family
(ARM7 TDMD) is not recommended for new designs.
Features of ARM7
1. Pipeline depth: 3 stage (Fetch, Decode. Execute)
2. Operating frequency: 80 MHz
3. Power consumption: 0.06 mW/MHz.
4. MIPS/MH : 0.97
5. Architecture used: Von-Neumann
6. MMU/MPU: Not present
7. Cache memory : Not present
8. Jazelle Instruction : Not present
9. Thumb instruction: Yes (16 bit instruction set)
10. ARM instruction set : Yes (32 bit)
11. ISA (Instruction set architecture): V4T (4 TH Version)
12. Interrupt Controller: Not Present
13. ISR entry: Non Deterministic ISR entry
14. Power management: No in built Power Management
15. Instruction Set performance v/s code size: Optimal performance code size balance requires interworking between
ARM & Thumb code.
16. Ease of application porting from one device to another: Lack of standardization inhibits application porting.
ARM9 Processor Family
ARM920T
• The first processor in the ARM9 family
ARM940T
• It includes a smaller D+I cache and an MPU.
• They support the optional Embedded Trace Macrocell (ETM), which allows a developer
to trace instruction and data execution in real time on the processor.
• The ARM946E-S includes TCM (Tightly Coupled Memory), cache, and an MPU. The
sizes of the TCM and caches are configurable. It is designed for use in embedded control
applications that require deterministic real-time response.
• On the other hand, the ARM966E does not have the MPU and cache extensions but does
have configurable TCMs.
ARM926EJ-S
• It is synthesizable processor core, announced in 2000.
• It is designed for use in small portable Java-enabled devices such as 3G phones and
Personal Digital Assistants (PDAs).
• Supports the Jazelle technology, which accelerates Java bytecode execution. It features an
MMU, configurable TCMs, and D+I caches with zero or nonzero wait state memories.
ARM11 Processors Family
• This family provides the engine that power many smartphones, also widely used in
consumer, home and embedded applications.
• It delivers low power and a range of performance from 350 MHz to 1 GHz.
• ARM11 processor software is compatible with all previous generations of ARM processors.
• Supports Single Instruction Multiple Data SIMD) extensions for media processing,
specifically designed to increase video processing performance.
• The ARM1136JF-S is an ARM1136J-S with the addition of the vector floating-point unit
for fast floating-point operations.
• Supports the thumb instruction set-memory BW & Size requirements up to 35 %.
• Does not use register windows to keep chip area small and hence the cost.
• It has control over both the Arithmetic Logic Unit (ALU) and shifter in every
program loops.
• Supports Load and Store Multiple instructions to maximize data throughput.
• The ARM instruction set differs from the pure RISC definition make the ARM
instruction set suitable for embedded applications:
Variable cycle execution for certain instructions:
• Some ARM instructions like load-store-multiple instructions vary in the number of
execution cycles depending upon the number of registers being transferred.
Load-store-multiple instructions transfer data on sequential memory addresses, which
increases performance since sequential memory accesses are often faster than random
accesses Multiple register transfers also improve the code density.
Inline shifter to improve core performance and code density:
• The ARM arithmetic logic unit has a barrel shifter that is capable of shift and rotate
operations. This inline barrel shifter preprocesses one of the input registers before it is
used by an instruction. This expands the capability of many instructions to improve core
performance and code density.
Thumb 16-bit instruction set:
• The Thumb instruction set consists of 16-bit instructions that act as a compact shorthand for
a subset of the 32-bit instructions of the standard ARM. These instructions permit the ARM
core to execute either 16- or 32-bit instructions. The 16-bit instructions improve code:
density by about 30 % over 32-bit fixed-length instructions.
Conditional execution:
• These instructions are executed when a specific condition has been satisfied. This feature
improves performance and code density by reducing branch instructions.
Enhanced instructions:
• RM instruction set also supports the enhanced Digital Signal Processor (DSP) instructions
(fast 16x16-bit multiplier operations and saturation). These instructions allow ARM
processor to serve as a combination of a processor plus a DSP.
ARM7 Dataflow Model
• An ARM7 core is an engine within a system that fetches ARM instructions from
• memory and executes them.
• ARM 7 cores are very small. Typically they occupy a few square millimeters of
chip area.
• With advances in modern VLSI technology, it became possible to build additional
system components such as cache memory, memory management unit or
application specific hardware on the same chip. Application specific hardware
may include signal processing hardware or further ARM processor cores.
• While designing a new system, selecting the correct processor core is one of the
most critical decision.
ARM7 Core Dataflow Model
Sign extend:
• The ARM7 core is a 32-bit processor. So most instructions of the ARM processor treat
registers as holding signed or unsigned 32-bit values.
When the processor reads signed 8-bit or 16-bit numbers from memory, the sign extend hardware converts
these numbers to 32-bit values and then places them in a register file.
ALU (Arithmetic Logic Unit) and MAC (Multiply-Accumulate Unit):
• Most of the ARM instructions are two operand instructions. The two source registers
Rn, and Rm are used to store these operands. These source operands are read from
the Rn, and Rm registers using the internal buses A and B respectively.
• The ALU or MAC reads the operand values from Rn, and Rm registers via A and B
buses respectively, performs the operation and stores the computed result via internal
C bus in destination register, Rd and then to the register file.
• The load and store instructions generate address using ALU and stores it in the
address register.
Address register :
• This holds the address generated by the load and store instructions and places it on
address register before the processor core reads or writes the next register value
from or to the consecutive memory location.
• The processor core continues the execution of instruction. Only when an
aligned on a word boundary. This means that the bottom two bits of the PC are
always zero, and therefore the PC contains only 30 non-constant bits.
• It can often be used in place of one of the general-purpose registers r0 to r14, and
• The physical register referred to by each of them depends on the current processor mode.
Where a particular physical register is intended, without depending on the current processor
mode, a more specific name (as described below) is used. Almost all instructions allow the
banked registers to be used wherever a general-purpose register is allowed.
• Out of 37 registers, 20 registers which are shown shaded in Fig. 10.8.1 are the banked
registers. Fig. 10.8.1 also shows which banked registers are used in which mode. Banked
registers of a particular mode are denoted by, r number_mode.
• For example, supervisor, mode has banked registers r13 svc, r14_svc and spsr_svc.
• Registers r8 to r12 have two banked physical registers each. The first group of
physical registers are referred to as r8 usr to r12 usr and the second group as r8 fiq
to r12 fiq. The r8_usr to r12 usr group is used in all processor modes other than
FIQ mode, and the other is used in FIQ mode.
• Registers r13 and r14 have six banked physical registers each. One is used in User
and System modes, while each of the remaining five is used in one of the five
exception modes.
• The registers r0 to r13 are orthogonal. This means, any instruction which you can
apply to r0, you can equally well apply to any of the r1 to r13 registers. This is not
the case with r14 and r15 registers.
CPSR and
SPSR
Registers
• The current program status register (cpsr) is accessible in all processor modes. It contains
condition code flags, interrupt disable bits, the current processor mode, and other status and
control information.
• Each exception mode also has a saved program status register (spsr), that is used to preserve
the value of the cpsr when the associated exception occurs.
Note: User mode and System mode do not have an SPSR, because they are not exception
modes All instructions which read of UNPREDICTABLE when executed in User mode or
System mode.
• Fig shows the format of the cpsr and spsr.
Control flags (Bits 0-7)
• The control bits change when an
exception arises and can be
altered by software only when the
processor is in a privileged mode.
Bits 0-4 (Mode Select Bits):
Processor modes
• These bits determine the
processor mode as shown in
Table.
Bit 5 (Thumb State Bit):
• This bit gives the state of the core. The state of the core determines which instruction set is
being executed.
• There are three instruction sets, ARM, Thumb and Jazelle. One of the three instruction set
is active when the processor is in ARM state, Thumb state and Jazelle state respectively.
Thumb
• Thumb instructions are 16 bits (instead of the usual 32 bit). This allows for greater code
density in places where memory is restricted.
• The Thumb set can only address the first eight registers, and there are no conditional
execution instructions. Also, the Thumb cannot do a number of things required for
low-level processor exceptions, so the Thumb instruction set will always come alongside
the full ARM instruction set.
• Exceptions and the like can be handled in ARM code, with Thumb used for the more
regular code.
Table gives the comparison of ARM and Thumb instruction set features.
Jazelle
• The third instruction set introduced by ARM designers is Jazelle. The J bit is the additional
flag bit in the flags field only available on Jazelle-enabled processors.
• The Jazelle J and Thumb T bits in the cpsr decide the state of the processor. When both, J and
T bits are 0, the processor is in ARM state and executes ARM instructions. When the T bit is
1, the processor is in Thumb state and executes Thumb instructions. When T bit is 0 and J bit
is 1, the processor is in Jazelle state and executes Jazelle instructions.
• Jazelle executes 8-bit instructions. It is a hybrid mix of software and hardware It is designed to
increase the speed of execution of Java byte codes. The Jazelle technology and a specially
modified version of the Java virtual machine is needed
• to execute Java byte codes.
• Over 60% of the Java bytecodes are implemented in hardware and remaining codes are
implemented in software.
• The Jazelle instruction set is a closed instruction set and is not openly available. An extra
software licensed from both, ARM Limited and Sun Microsystems is required to use Jazelle.
Bits 6 and 7 (Interrupt Masks)
• There are two interrupts available on the ARM processor core:
• These are maskable interrupts and their masking is controlled by bits 6 and 7 of cpsr. Bit
6(F) controls FIQ and bit 7(1) controls IRQ.
• When the bit is set to binary 1, the corresponding interrupt request is masked and when bit
is 0, the interrupt is available.
Condition code flags
• These flags in the cpsr can be tested by most instructions to determine whether the
instruction is to be executed.
• The condition code flags are usually modified by Execution of a comparison instruction
(CMN, CMP, TEQ or TST),
• Execution of some other arithmetic, logical or move instruction, where the destination
register of the instruction is not r15. Most of these instructions have both a flag-preserving
and a flag-setting variant, with the latter being selected by adding an S qualifier to the
instruction mnemonic. Some of these instructions only have a flag-preserving version.
Bit 27 (Saturation flag, Q)
• This flag is available for the ARM processor cores which include the DSP extensions. If an overflow
and/or saturation occurs in an enhanced DSP instruction, the Q bit is set to 1. The flag is sticky
which means the hardware only sets this flag.
• We need to write to the cpsr directly to clear the flag bit.
• Similarly, bit [27] of each spsr is a Q flag and is used to preserve and restore the cpsr Q flag if an
exception occurs.
Bit 28 (Overflow flag, V)
• It is set in one of two ways:
• For an addition or subtraction, V is set to 1 if signed overflow occurred, regarding the operands and
result as two's complement signed integers.
• For non-addition/subtractions, V is normally left unchanged.
• For an addition, including the comparison instruction CMN, C is set to 1 if the addition produced a
carry (that is, an unsigned overflow), and to 0 otherwise.
• For a subtraction, including the comparison instruction CMP, C is set to 0 if the subtraction
produced a borrow (that is, an unsigned underflow), and to 1otherwise.
• For non-addition/subtractions that incorporate a shift operation, C is set to the Last bit shifted out of the value
by the shifter.
• For other non-addition/subtractions, C is normally left unchanged.
Bit 30 (Zero flag, Z)
• It is set to 1 if the result of the instruction is zero (which often indicates an equal result from a
• Execution of an MSR instruction, as part of its function of writing a new value to the cpsr or spsr. .
Execution of MRC instructions with destination register r15. The purpose of such instructions is to
transfer coprocessor-generated condition code flag values to the ARM processor.
• Execution of some variants of the LDM instruction. These variants copy the spsr to the spsr, and their
These also copy the spsr to the cpsr and are mainly intended for returning from exceptions.
Other Bits
Modes of Operation
In the ARM7, there are seven operating modes. These modes are protected or exception modes which have
associated interrupt sources and their own register set.
1. Supervisor mode (Default): This is protected mode for running system level code to access hardware or run OS
calls. The ARM7 enters this mode after reset.
2. FIQ (Fast Interrupt reQuest): This mode supports high speed interrupt handling.
3. IRQ (Interrupt ReQuest): This mode supports all other interrupt sources in a system.
4. Abort: If an instruction or data is fetched from an invalid memory location, an abort exception will be generated.
5. Undefined: If a fetched opcode is not an ARM instruction, an undefined instruction exception will be generated.
6. User: This mode is used to run the application code. In the user mode we cannot change the contents of CPSR
(Current Program Status Register) and modes can only be changed when an exception is generated. This mode is
also known as Unprivileged mode.
7. System: This mode is used for running operating system tasks. It uses the same registers as user mode.
All the above modes, except user mode, are privilege modes.
For all operating modes, user registers r0 - r7 are common. However, FIQ mode replaces the r0 - r7
registers by its own registers r8 to r14. Similarly, each of the other modes have their own r13 and r14
registers so that each operating mode has its own unique stack pointer and link register.
Difference between PIC and ARM
Difference between PIC and ARM
Thank you
Sinhgad College of Engineering
Dept. of Information Technology
Class - SE
#include<p18f4520.h>
void DELAY();
#pragma config OSC=HS
#pragma config PWRT=OFF
#pragma config WDT=OFF
#pragma config DEBUG=OFF, LVP=OFF
void main()
{
TRISDbits.RD0 = 0x00; //set RD0 pin direction as an output
Pull-down R
Active LOW
The PIC uCs
Keypad Interfacing
Pull-up
Resistor
COL(OUTPUT) =
HIGH
if(( PORTC & 0xf0 )!= 0xf0) // check status of second row and all column's
{
switch(PORTC & 0xf0) // check column status and enter in particular
case
{
case 0xe0: lcddata('4');
break;
case 0xd0: lcddata('5');
break;
case 0xb0 : lcddata('6');
break;
case 0x70 : lcddata('7');
break;
}
}
The PIC uCs
Embedded C Program – 5/7 Main function –
4/5
if(( PORTC & 0xf0 )!= 0xf0) // check status of Third row and all column's
{
switch(PORTC & 0xf0) // check column status and enter in particular case
{
case 0xe0 : lcddata('8');
break;
case 0xd0 : lcddata('9');
break;
case 0xb0 : lcddata('A');
break;
case 0x70 : lcddata('B');
break;
}
}
if(( PORTC & 0xf0 )!= 0xf0) // check status of fourth row and all column's
{
switch(PORTC & 0xf0) // check column status and enter in particular case
{
case 0xe0 : lcddata('C');
break;
case 0xd0 : lcddata('D');
break;
case 0xb0 : lcddata('E');
break;
case 0x70 : lcddata('F');
break;
}
}
msdelay(15);
}
}
The PIC uCs
Embedded C Program – 7/7 LCDCMD,
LCDDATA & MSDELAY functions
void lcdcmd (unsigned char value)
{
ldata=value;
rs=0; // command register
rw=0;
en=1; // high
msdelay(1);
en=0; //low
}
void lcddata (unsigned char value)
{
ldata=value;
rs=1; //data rgister
rw=0;
en=1; //high
msdelay(1);
en=0; // low
}
void msdelay (unsigned int itime)
The PIC uCs
{
Sinhgad College of Engineering
Dept. of Information Technology
Class - SE
Processor Architecture
(214451)
Unit-4: PIC 18F Microcontroller
Serial Port Programming
Faculty – Prof. Madhukar V.
Nimbalkar
[email protected]
9890586765
SYLLABUS : UNIT 4 - PIC
Interfacing-II
CCP modes: Capture, Compare and PWM generation;
• The serial data format includes one start bit, between five and eight
data bits, and one stop bit. A parity bit and an additional stop bit might
be included in the format as well.
• The format for serial port data is often expressed using the following
notation: Number of data bits - parity type - number of stop bits. For
example,
• 8-N-1 is interpreted as eight data bits, no parity bit, and one stop
bit, while
• 7-E-2 is interpreted as seven data bits, even parity, and two stop
bits.
• The data bits are often referred to as a character because these bits
usually represent an ASCII character. The remaining bits are called
framing bits because they frame the data bits
Baud Rate
Connectors:
Minimally, 3 wires: RxD, TxD, GND
Could have 9-pin or 25-pin
DB-25 DB-9
25-Pin Connector 9-Pin Connector
10-9
RS232 Pins DB 9 Connector
IBM PC DB-9 Signals
DB-9
9-Pin Connector
Line
driver
(a) Inside MAX232 (b) its Connection to the PIC18
10-12
PIC18 Connection to RS232 (MAX233)
Line
(a) Inside MAX233 driver
(b) Its Connection to the PIC18
10-13
EUSART Module in PIC Microcontroller
The Enhanced Universal Synchronous Asynchronous Receiver
Transmitter (EUSART) module is one of the two serial I/O modules.
(Generically, the USART is also known as a Serial Communications
Interface or SCI.)
The EUSART can be configured in the following modes:
• Asynchronous (full-duplex) with:
- Auto-wake-up on Break signal
- Auto-baud calibration
- 12-bit Break character transmission
• Synchronous – Master (half-duplex) with selectable clock polarity
• Synchronous – Slave (half-duplex) with selectable clock polarity
The pins of the Enhanced USART are
multiplexed with PORTC. In order to
configure RC6/TX/CK and
RC7/RX/DT/SDO as an EUSART:
• bit SPEN (RCSTA<7>) must be set (=
1)
• bit TRISC<7> must be set (= 1)
• bit TRISC<6> must be set (= 0)
EUSART Register Map:
The operation of the Enhanced USART module is controlled
through six registers:
Transmit Status & Control Register
Receive Status & Control Register
Baud rate control register
TXREG & RCREG Register
TXREG
• 8-bit register used for serial communication in the PIC18
• For a byte of data to be transferred via the Tx pin, it must
be placed in the TXREG register first.
• The moment a byte is written into TXREG, it is fetched into
a non-accessible register TSR
• The frame contains 10 bits
RCREG
• 8-bit register used for serial communication in the PIC18
• When the bits are received serially via the Rx pin, the
PIC18 de-frames them by eliminating the START and
STOP bit, making a byte out of data received and then
placing it in the RCREG register
Baud Rate Generator (BRG)
• The BRG is a dedicated 8-bit, or 16-bit, generator that supports both
the Asynchronous and Synchronous modes of the EUSART. By
default, the BRG operates in 8-bit mode.
• Setting the BRG16 bit (BAUDCON<3>) selects 16-bit mode. The
SPBRGH:SPBRG register pair controls the period of a free-running
timer.
• In Asynchronous mode, bits BRGH (TXSTA<2>) and BRG16
(BAUDCON<3>) also control the baud rate.
• In Synchronous mode, BRGH is ignored.
• Writing a new value to the SPBRGH:SPBRG registers causes the
BRG timer to be reset (or cleared).
• Formula for computation of the baud rate for different EUSART
modes
Baud Rate Calculation
• Mode selection
a. BRG Mode = 16-bit by setting BRG16 bit in BAUDCON Register
b. EUSART mode = Asynchronous by clearing SYNC bit in TXSTA
Register
c. Formulae
Desired Baud Rate = Fosc / [4(SPBRGH:SPBRG+1)]
• For Fosc = 20MHz, Baud rate = 9600
SPBRGH:SPBRG = [Fosc/4(Baud rate)]-1
= [20x106/(4x9600)] – 1
= [519]10 = [0207]16
a. Complement bit
b. Set bit
c. Clear bit
2) Which data memory control and handle the operation of several peripherals by assigning them
in the category of special function registers?
c. Both a & b
3) Why is the speed accessibility of external data memory slower than internal on-chip RAM?
www.studymaterialz.in 1
4) Which control signal/s is/are generated by timing and control unit of 8051 microcontroller in
order to access the off-chip devices apart from the internal timings?
a. ALE
b. PSEN
c. RD & WR
5) Which register usually store the output generated by ALU in several arithmetic and logical
operations?
a. Accumulator
c. Timer Register
d. Stack Pointer
6) Why is CHMOS technology preferred over HMOS technology for designing the devices of MCS-
51 family?
www.studymaterialz.in 2
7) Which condition approve to prefer the EPROM/ROM versions for mass production in order to
prevent the external memory connections?
8) Which among the below mentioned devices of MCS-51 family does not possess two 16 -bit
timers/counters?
a. 8031
b. 8052
c. 8751
c. Both a & b
www.studymaterialz.in 3
10) Which general purpose register holds eight bit divisor and store the remainder especially after
the execution of division operation?
a. A-Register
b. B-Register
c. Registers R0 through R7
11) How many registers can be utilized to write the programs by an effective selection of register
bank in program status word (PSW)?
a. 8
b. 16
c. 32
d. 64
ANSWER: © 32
12) Which operations are performed by stack pointer during its incremental phase?
a. Push
b. Pop
c. Return
www.studymaterialz.in 4
13) Which is the only register without internal on-chip RAM address in MCS-51?
a. Stack Pointer
b. Program Counter
c. Data Pointer
d. Timer Register
15) What is the default value of stack once after the system undergoes the reset condition?
a. 07H
b. 08H
c. 09H
d. 00H
ANSWERa) 07H
16) Which bit/s play/s a significant role in the selection of a bank register of Program Status Word
(PSW)?
www.studymaterialz.in 5
a. RS1
b. RS0
c. Both a & b
17) Which flags represent the least significant bit (LSB) and most significant bit (MSB) of Program
Status Word (PSW) respectively?
18) Which register bank is supposed to get selected if the values of register bank select bits RS1 &
Rs0 are detected to be ‘1’ & ‘0’ respectively?
a. Bank 0
b. Bank 1
c. Bank 2
d. Bank 3
ANSWER: © Bank 2
19) It is possible to set the auxiliary carry flag while performing addition or subtraction operations
only when the carry exceeds _______
www.studymaterialz.in 6
a. 1st bit
b. 2nd bit
c. 3rd bit
d. 4th bit
20) Which locations of 128 bytes on-chip additional RAM are generally reserved for special
functions?
a. 80H to 0FFH
b. 70H to 0FFH
c. 90H to 0FFH
d. 60H to 0FFH
21) Which commands are used for addressing the off-chip data and associated codes respectively
by data pointer?
22) Which instruction find its utility in loading the data pointer with 16 bits immediate data?
www.studymaterialz.in 7
a. MOV
b. INC
c. DEC
d. ADDC
23) What is the maximum capability of addressing the off-chip data memory & off-chip program
memory in a data pointer?
a. 8K
b. 16K
c. 32K
d. 64K
24) Which among the below stated registers does not belong to the category of special function
registers?
c. P0 & P1
d. SP & PC
25) Which timer is attributed to the register pair of RCAP2H & RCAP2L for capture mode
operation?
www.studymaterialz.in 8
a. Timer 0
b. Timer 1
c. Timer 2
d. Timer 3
ANSWERc) Timer 2
26) Which registers are supposed to get copied into RCAP2H & RCAP2L respectively due to the
transition at 8052 T2EX pin in the capture mode operation?
27) Which mode of timer 2 allow to hold the reload values with an assistance of RCAP2H & RCAP2L
register pair?
28) Where should the pin 19 (XTAL1), acting as an input of inverting amplifier as well as part of an
oscillator circuit, be connected under the application of external clock?
www.studymaterialz.in 9
a. to XTAL2
b. to Vcc
c. to GND
d. to ALE
ANSWER: © to GND
29) Which port does not represent quasi-bidirectional nature of I/O ports in accordance to the pin
configuration of 8051 microcontroller?
30) What is the required baud rate for an efficient operation of serial port devices in 8051
microcontroller?
a. 1200
b. 2400
c. 4800
d. 9600
31) Which among the below mentioned functions does not belong to the category of alternate
functions usually performed by Port 3 (Pins 10-17)?
www.studymaterialz.in 10
a. External Interrupts
b. Internal Interrupts
c. Serial Ports
32) What is the constant activation rate of ALE that is optimized periodically in terms of an
oscillator frequency?
a. 1 / 8
b. 1 / 6
c. 1 / 4
d. 1 / 2
ANSWERb) 1 / 6
33) Which output control signal is activated after every six oscillator periods while fetching the
external program memory and almost remains high during internal program execution?
a. ALE
b. PSEN
c. EA
34) Which memory allow the execution of instructions till the address limit of 0FFFH especially
when the External Access (EA) pin is held high?
www.studymaterialz.in 11
a. Internal Program Memory
c. Both a & b
35) Which value of disc capacitors is preferred or recommended especially when the quartz crystal
is connected externally in an oscillator circuit of 8051?
a. 10 pF
b. 20 pF
c. 30 pF
d. 40 pF
ANSWER: © 30 pF
36) Why are the resonators not preferred for an oscillator circuit of 8051?
c. Because cost reduction due to its utility is almost negligible in comparison to total cost of
microcontroller board
37) Which version of MCS-51 requires the necessary connection of external clock source to XTAL2
in addition to the XTAL1 connectivity to ground level?
www.studymaterialz.in 12
a. HMOS
b. CHMOS
c. CMOS
38) Which signal from CPU has an ability to respond the clocking value of D- flipflop (bit latch) from
the internal bus?
a. Write-to-Read Signal
b. Write-to-Latch Signal
c. Read-to-Write Signal
d. Read-to-Latch Signal
39) Which among the below mentioned statements are precisely related to quasi-bidirectional
port?
b. Configuration in the form of input pulls the port at higher position whereas they get pulled lower
when configured as a source current
c. It is possible to drive the pin as output at any duration when FET gets turned OFF for an input function
d. Upper pull-up FET is always OFF with the provision of ‘open-drain’ output pin for normal operation of
port
a. A, B, C, D
b. A, B & C
www.studymaterialz.in 13
c. A & B
d. C & D
40) What happens when the pins of port 0 & port 2 are switched to internal ADDR and ADDR /
DATA bus respectively while accessing an external memory?
41) The upper 128 bytes of an internal data memory from 80H through FFH usually represent
_______.
a. general-purpose registers
c. stack pointers
d. program counters
42) What is the bit addressing range of addressable individual bits over the on-chip RAM?
a. 00H to FFH
b. 01H to 7FH
www.studymaterialz.in 14
c. 00H to 7FH
d. 80H to FFH
43) What is the divisional range of program memory for internal and external memory portions
respectively when enable access pin is held high (unity)?
44) Consider the following statements. Which of them is/are correct in case of program execution
related to program memory?
a. External Program memory execution takes place from 1000H through 0FFFFH only when the status of
EA pin is high (1)
b. External Program memory execution takes place from 0000H through 0FFFH only when the status of
EA pin is low (0)
c. Internal Program execution occurs from 0000H through 0FFFH only when the status of EA pin is held
low (0)
d. Internal program memory execution occurs from 0000H through 0FFFH only when EA pin is held high
(1)
a. A & C
b. B & D
c. A & B
d. Only A
www.studymaterialz.in 15
ANSWER: (b) B & D
46) Which address/location in the program memory is supposed to get occupied when CPU jump
and execute instantaneously during the occurrence of an interrupt?
a. Scalar
b. Vector
c. Register
47) Which location specify the storage/loading of vector address during the interrupt generation?
a. Stack Pointer
b. Program Counter
c. Data Pointer
www.studymaterialz.in 16
ANSWER: (b) Program Counter
49) What kind of triggering configuration of external interrupt intimate the signal to stay low until
the generation of subsequent interrupt?
a. Edge-Triggering
b. Level Triggering
c. Both a & b
50) Which among the below mentioned reasons is/are responsible for the generation of Serial Port
Interrupt?
www.studymaterialz.in 17
a. Overflow of timer/counter 1
a. A & B
b. Only B
c. C & D
d. Only D
51) What is the counting rate of a machine cycle in correlation to the oscillator frequency for
timers?
a. 1 / 10
b. 1 / 12
c. 1 / 15
d. 1 / 20
ANSWER: (b) 1 / 12
52) Which special function register play a vital role in the timer/counter mode selection process by
allocating the bits in it?
a. TMOD
b. TCON
c. SCON
d. PCON
www.studymaterialz.in 18
ANSWERa) TMOD
53) How many machine cycle/s is/are executed by the counters in 8051 in order to detect ‘1’ to ‘0’
transition at the external pin?
a. One
b. Two
c. Four
d. Eight
54) Which bit must be set in TCON register in order to start the ‘Timer 0’ while operating in ‘Mode
0’?
a. TR0
b. TF0
c. IT0
d. IE0
55) Which among the following control/s the timer1 especially when it is configured as a timer in
mode’0′, where gate and TR1 bits are attributed to be ‘1” in TMOD register?
a. TR1
c. TF1
www.studymaterialz.in 19
ANSWER: (b) External input at (INT1)
56) Which timer mode exhibit the necessity to generate the interrupt by setting EA bit in IE
enhancing the program counter to jump to another vector location?
a. Mode 0
b. Mode 1
c. Mode 2
d. Mode 3
57) Consider the below generated program segment for initializing Timer 1 in Mode 1 operation :
MOV SP, # 54 H
SET C ET1
SETC TR0
SJMP $
Which among the below mentioned program segments represent the correct code?
a. MOV SP, # 54 H
SETC ET1
SETC TR0
SJMP $
www.studymaterialz.in 20
MOV TMOD ,# 0010 0000 C
SETC ET0
SETC TR0
SJMP $
c. MOV SP, # 54 H
SETC ET1
SETC TR1
SETC EA
SJMP $
d. MOV SP, # 54 H
SETC ET0
SETC TR1
SETC EA
SJMP $
ANSWER: ©
MOV SP, # 54 H
SETC ET1
SETC TR1
SETC EA
SJMP $
58) What is the maximum delay generated by the 12 MHz clock frequency in accordance to an
auto-reload mode (Mode 2) operation of the timer?
www.studymaterialz.in 21
a. 125 μs
b. 250 μs
c. 256 μs
d. 1200 μs
ANSWER: © 256 μs
59) Which among the below mentioned sequence of program instructions represent the correct
chronological order for the generation of 2kHz square wave frequency?
4. SETB TR0
5. CPL p1.0
6. ORG 0000H
a. 6, 5, 2, 4, 1, 3
b. 6, 1, 3, 2, 4, 5
c. 6, 5, 4, 3, 2, 1
d. 6, 2, 4, 5, 1, 3
www.studymaterialz.in 22
ANSWER: (b) 6, 1, 3, 2, 4, 5
60) Why is it not necessary to specify the baud rate to be equal to the number of bits per second?
a. Because each bit is preceded by a start bit & followed by one stop bit
b. Because each byte is preceded by a start byte & followed by one stop byte
c. Because each byte is preceded by a start bit & followed by one stop bit
d. Because each bit is preceded by a start byte &followed by one stop byte
ANSWER: © Because each byte is preceded by a start bit & followed by one stop bit
www.studymaterialz.in 23
MICROPROCESSOR
BCA
IV Sem
MULTIPLE CHOICE QUESTIONS
1) Which is the microprocessor comprises:
a. Register section
b. One or more ALU
c. Control unit
d. All of these
2) What is the store by register?
a. data
b. operands
c. memory
d. None of these
3) Accumulator based microprocessor example are:
a. Intel 8085
b. Motorola 6809
c. A and B
d. None of these
4) A set of register which contain are:
a. data
b. memory addresses
c. result
d. all of these
5) There are primarily two types of register:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
6) Name of typical dedicated register is:
a. PC
b. IR
c. SP
d. All of these
7) BCD stands for:
a. Binary coded decimal
b. Binary coded decoded
c. Both a & b
d. none of these
8) Which is used to store critical pieces of data during subroutines and interrupts:
a. Stack
b. Queue
c. Accumulator
d. Data register
9) The data in the stack is called:
a. Pushing data
b. Pushed
c. Pulling
d. None of these
10) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
11) The processor 80386/80486 and the Pentium processor uses _____ bits address bus:
a. 16
b. 32
c. 36
d. 64
12) Which is not the control bus signal:
a. READ
b. WRITE
c. RESET
d. None of these
13) PROM stands for:
a. Programmable read‐only memory
b. Programmable read write memory
c. Programmer read and write memory
d. None of these
14) EPROM stands for:
a. Erasable Programmable read‐only memory
b. Electrically Programmable read write memory
c. Electrically Programmable read‐only memory
d. None of these
15) Each memory location has:
a. Address
b. Contents
c. Both A and B
d. None of these
16) Which is the type of microcomputer memory:
a. Processor memory
b. Primary memory
c. Secondary memory
d. All of these
17) Secondary memory can store____:
a. Program store code
b. Compiler
c. Operating system
d. All of these
18) Secondary memory is also called____:
a. Auxiliary
b. Backup store
c. Both A and B
d. None of these
19) Customized ROMS are called:
a. Mask ROM
b. Flash ROM
c. EPROM
d. None of these
20) The RAM which is created using bipolar transistors is called:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. DDR RAM
21) Which type of RAM needs regular referred:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
22) Which RAM is created using MOS transistors:
a. Dynamic RAM
b. Static RAM
c. Permanent RAM
d. SD RAM
23) A microprocessor retries instructions from :
a. Control memory
b. Cache memory
c. Main memory
d. Virtual memory
24) The lower red curvy arrow show that CPU places the address extracted from the memory
location on the_____:
a. Address bus
b. System bus
c. Control bus
d. Data bus
25) The CPU sends out a ____ signal to indicate that valid data is available on the data bus:
a. Read
b. Write
c. Both A and B
d. None of these
26) The CPU removes the ___ signal to complete the memory write operation:
a. Read
b. Write
c. Both A and B
d. None of these
27) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
28) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
29) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
30) Eight of the register are known as:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
31) The four index register can be used for:
a. Arithmetic operation
b. Multipulation operation
c. Subtraction operation
d. All of these
32) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
33) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
34) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
35) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
36) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
37) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
38) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
39) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
40) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
41) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
42) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
43) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
44) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
45) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
46) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
47) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
48) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
49) ________ is the most important segment and it contains the actual assembly language
instruction to be executed by the microprocessor:
a. Data segment
b. Code segment
c. Stack segment
d. Extra segment
50) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
51) Which are the factor of cache memory:
a. Architecture of the microprocessor
b. Properties of the programs being executed
c. Size organization of the cache
d. All of these
52) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
53) Which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
54) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
55) Microprocessor reference that are available in the cache are called______:
a. Cache hits
b. Cache line
c. Cache memory
d. All of these
56) Microprocessor reference that are not available in the cache are called_________:
a. Cache hits
b. Cache line
c. Cache misses
d. Cache memory
57) Which causes the microprocessor to immediately terminate its present activity:
a. RESET signal
b. INTERUPT signal
c. Both
d. None of these
58) Which is responsible for all the outside world communication by the microprocessor:
a. BIU
b. PIU
c. TIU
d. LIU
59) INTR: it implies the__________ signal:
a. INTRRUPT REQUEST
b. INTRRUPT RIGHT
c. INTRRUPT RONGH
d. INTRRUPT RESET
60) Which of the following are the two main components of the CPU?
a. Control Unit and Registers
b. Registers and Main Memory
c. Control unit and ALU
d. ALU and bus
61) Different components n the motherboard of a PC unit are linked together by sets of parallel
electrical conducting lines. What are these lines called?
a. Conductors
b. Buses
c. Connectors
d. Consecutives
62) The language that the computer can understand and execute is called
a. Machine language
b. Application software
c. System program
d. All of the above
63) Which of the following is used as a primary storage device?
a. Magnetic drum
b. PROM
c. Floppy disk
d. All of these
64) Which of the following memories needs refresh?
a. SRAM
b. DRAM
c. ROM
d. All of above
65) The memory which is programmed at the time it is manufactured
a. PROM
b. RAM
c. PROM
d. EPROM
66) Which of the following memory medium is not used as main memory system?
a. Magnetic core
b. Semiconductor
c. Magnetic tape
d. Both a and b
67) Registers, which are partially visible to users and used to hold conditional, are known as
a. PC
b. Memory address registers
c. General purpose register
d. Flags
68) One of the main feature that distinguish microprocessors from micro‐computers is
a. Words are usually larger in microprocessors
b. Words are shorter in microprocessors
c. Microprocessor does not contain I/O devices
d. Exactly the same as the machine cycle time
69) The first microprocessor built by the Intel Corporation was called
a. 8008
b. 8080
c. 4004
d. 8800
70) An integrated circuit is
a. A complicated circuit
b. An integrating device
c. Much costlier than a single transistor
d. Fabricated on a tiny silicon chip
71) Most important advantage of an IC is its
a. Easy replacement in case of circuit failure
b. Extremely high reliability
c. Reduced cost
d. Low powers consumption
72) Which of the following items are examples of storage devices?
a. Floppy / hard disks
b. CD‐ROMs
c. Tape devices
d. All of the above
73) The Width of a processor’s data path is measured in bits. Which of the following are common
data paths?
a. 8 bits
b. 12 bits
c. 16 bits
d. 32 bits
74) Which is the type of memory for information that does not change on your computer?
a. RAM
b. ROM
c. ERAM
d. RW / RAM
75) What type of memory is not directly addressable by the CPU and requires special softw3are
called EMS (expanded memory specification)?
a. Extended
b. Expanded
c. Base
d. Conventional
76) Before a disk can be used to store data. It must be…….
a. Formatted
b. Reformatted
c. Addressed
d. None of the above
77) Which company is the biggest player in the microprocessor industry?
a. Motorola
b. IBM
c. Intel
d. AMD
78) A typical personal computer used for business purposes would have… of RAM.
a. 4 KB
b. 16 K
c. 64 K
d. 256 K
78) The word length of a computer is measured in
a. Bytes
b. Millimeters
c. Meters
d. Bits
79) What are the three decisions making operations performed by the ALU of a computer?
a. Grater than
b. Less than
c. Equal to
d. All of the above
80) Which part of the computer is used for calculating and comparing?
a. Disk unit
b. Control unit
c. ALU
d. Modem
81) Can you tell what passes into and out from the computer via its ports?
a. Data
b. Bytes
c. Graphics
d. Pictures
82) What is the responsibility of the logical unit in the CPU of a computer?
a. To produce result
b. To compare numbers
c. To control flow of information
d. To do math’s works
83) The secondary storage devices can only store data but they cannot perform
a. Arithmetic Operation
b. Logic operation
c. Fetch operations
d. Either of the above
84) Which of the following memories allows simultaneous read and write operations?
a. ROM
b. RAM
c. EPROM
d. None of above
85) Which of the following memories has the shortest access times?
a. Cache memory
b. Magnetic bubble memory
c. Magnetic core memory
d. RAM
86) A 32 bit microprocessor has the word length equal to
a. 2 byte
b. 32 byte
c. 4 byte
d. 8 byte
87) An error in computer data is called
a. Chip
b. Bug
c. CPU
d. Storage device
88) The silicon chips used for data processing are called
a. RAM chips
b. ROM chips
c. Micro processors
d. PROM chips
89) The metal disks, which are permanently housed in, sealed and contamination free containers
are called
a. Hard disks
b. Floppy disk
c. Winchester disk
d. Flexible disk
90) A computer consists of
a. A central processing unit
b. A memory
c. Input and output unit
d. All of the above
91) The instructions for starting the computer are house on
a. Random access memory
b. CD‐Rom
c. Read only memory chip
d. All of above
92) The ALU of a computer normally contains a number of high speed storage element called
a. Semiconductor memory
b. Registers
c. Hard disks
d. Magnetic disk
93) The first digital computer built with IC chips was known as
a. IBM 7090
b. Apple – 1
c. IBM System / 360
d. VAX‐10
94) Which of the following terms is the most closely related to main memory?
a. Non volatile
b. Permanent
c. Control unit
d. Temporary
95) Which of the following is used for manufacturing chips?
a. Control bus
b. Control unit
c. Parity unit
d. Semiconductor
96) To locate a data item for storage is
a. Field
b. Feed
c. Database
d. Fetch
97) A directly accessible appointment calendar is feature of a … resident package
a. CPU
b. Memory
c. Buffer
d. ALU
98) The term gigabyte refers to
a. 1024 bytes
b. 1024 kilobytes
c. 1024 megabytes
d. 1024 gigabyte
99) A/n …. Device is any device that provides information, which is sent to the CPU
a. Input
b. Output
c. CPU
d. Memory
100) Current SIMMs have either … or … connectors (pins)
a. 9 or 32
b. 30 or 70
c. 28 or 72
d. 30 or 72
101) Which is the brain of computer:
a. ALU
b. CPU
c. MU
d. None of these
102) Which technology using the microprocessor is fabricated on a single chip:
a. POS
b. MOS
c. ALU
d. ABM
103) MOS stands for:
a. Metal oxide semiconductor
b. Memory oxide semiconductor
c. Metal oxide select
d. None of these
104) In which form CPU provide output:
a. Computer signals
b. Digital signals
c. Metal signals
d. None of these
105) The register section is related to______ of the computer:
a. Processing
b. ALU
c. Main memory
d. None of these
106) In Microprocessor one of the operands holds a special register called:
a. Calculator
b. Dedicated
c. Accumulator
d. None of these
107) Which register is a temporary storage location:
a. general purpose register
b. dedicated register
c. A and B
d. none of these
108) PC stands for:
a. Program counter
b. Points counter
c. Paragraph counter
d. Paint counter
109) IR stands for:
a. Intel register
b. In counter register
c. Index register
d. Instruction register
110) SP stands for:
a. Status pointer
b. Stack pointer
c. a and b
d. None of these
111) The act of acquiring an instruction is referred as the____ the instruction:
a. Fetching
b. Fetch cycle
c. Both a and b
d. None of these
112) How many bit of instruction on our simple computer consist of one____:
a. 2‐bit
b. 6‐bit
c. 12‐bit
d. None of these
113) How many parts of single address computer instruction :
a. 1
b. 2
c. 3
d. 4
114) Single address computer instruction has two parts:
a. The operation code
b. The operand
c. A and B
d. None of these
115) LA stands for:
a. Load accumulator
b. Least accumulator
c. Last accumulator
d. None of these
116) Which are the flags of status register:
a. Over flow flag
b. Carry flag
c. Half carry flag
d. Zero flag
e. Interrupt flag
f. Negative flag
g. All of these
117) The carry is operand by:
a. C
b. D
c. S
d. O
118) The sign is operand by:
a. S
b. D
c. C
d. O
119) The zero is operand by:
a. Z
b. D
c. S
d. O
120) The overflow is operand by:
a. O
b. D
c. S
d. C
121) _________ Stores the instruction currently being executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
122) In which register instruction is decoded prepared and ultimately executed:
a. Instruction register
b. Current register
c. Both a and b
d. None of these
123) The status register is also called the____:
a. Condition code register
b. Flag register
c. A and B
d. None of these
124) The area of memory with addresses near zero are called:
a. High memory
b. Mid memory
c. Memory
d. Low memory
125) The processor uses the stack to keep track of where the items are stored on it this by using
the:
a. Stack pointer register
b. Queue pointer register
c. Both a & b
d. None of these
126) Stack words on:
a. LILO
b. LIFO
c. FIFO
d. None of these
127) Which is the basic stack operation:
a. PUSH
b. POP
c. BOTH A and B
d. None of these
128) SP stand for:
a. Stack pointer
b. Stack pop
c. Stack push
d. None of these
129) How many bit stored by status register:
a. 1 bit
b. 4 bit
c. 6 bit
d. 8 bit
130) The 16 bit register is separated into groups of 4 bit where each groups is called:
a. BCD
b. Nibble
c. Half byte
d. None of these
131) A nibble can be represented in the from of:
a. Octal digit
b. Decimal
c. Hexadecimal
d. None of these
132) The left side of any binary number is called:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
133) MSD stands for:
a. Least significant digit
b. Most significant digit
c. Medium significant digit
d. low significant digit
134) _____ a subsystem that transfer data between computer components inside a computer
or between computer:
a. Chip
b. Register
c. Processor
d. Bus
135) The external system bus architecture is created using from ______ architecture:
a. Pascal
b. Dennis Ritchie
c. Charles Babbage
d. Von Neumann
136) Which bus carry addresses:
a. System bus
b. Address bus
c. Control bus
d. Data bus
137) A 16 bit address bus can generate___ addresses:
a. 32767
b. 25652
c. 65536
d. none of these
138) CPU can read & write data by using :
a. Control bus
b. Data bus
c. Address bus
d. None of these
139) Which bus transfer singles from the CPU to external device and others that carry singles
from external device to the CPU:
a. Control bus
b. Data bus
c. Address bus
d. None of these
140) When memory read or I/O read are active data is to the processor :
a. Input
b. Output
c. Processor
d. None of these
141) When memory write or I/O read are active data is from the processor:
a. Input
b. Output
c. Processor
d. None of these
142) CS stands for:
a. Cable select
b. Chip select
c. Control select
d. Cable system
143) WE stands for:
a. Write enable
b. Wrote enable
c. Write envy
d. None of these
144) MAR stands for:
a. Memory address register
b. Memory address recode
c. Micro address register
d. None of these
145) MDR stands for:
a. Memory data register
b. Memory data recode
c. Micro data register
d. None of these
146) Which are the READ operation can in simple steps:
a. Address
b. Data
c. Control
d. All of these
147) DMA stands for:
a. Direct memory access
b. Direct memory allocation
c. Data memory access
d. Data memory allocation
148) The ____ place the data from a register onto the data bus:
a. CPU
b. ALU
c. Both A and B
d. None of these
149) The microcomputer system by using the ____device interface:
a. Input
b. Output
c. Both A and B
d. None of these
150) The standard I/O is also called:
a. Isolated I/O
b. Parallel I/O
c. both a and b
d. none of these
151) The external device is connected to a pin called the ______ pin on the processor chip.
a. Interrupt
b. Transfer
c. Both
d. None of these
152) Which interrupt has the highest priority?
a) INTR
b) TRAP
c) RST6.5
d) none of these
153) In 8085 name the 16 bit registers?
a) Stack pointer
b) Program counter
c) a & b
d) none of these
154) What are level Triggering interrupts?
a) INTR&TRAP
b) RST6.5&RST5.5
c) RST7.5&RST6.5
d) none of these
155) Which stack is used in 8085?
a) FIFO
b) LIFO
c) FILO
d) none of these
156) What is SIM?
a) Select Interrupt Mask
b) Sorting Interrupt Mask
c) Set Interrupt Mask.
d) none of these
157) RIM is used to check whether, ______
a) The write operation is done or not
b) The interrupt is Masked or not
c) a & b
d) none of these
158) In 8086, Example for Non maskable interrupts are
a) Trap b) RST6.5 c) INTR d) none of these
159) In 8086 microprocessor the following has the highest priority among all type interrupts.
a) NMI
b) DIV 0
c) TYPE 255
d) OVER FLOW
160) BIU STAND FOR:
a. Bus interface unit
b. Bess interface unit
c. A and B
d. None of these
161) EU STAND FOR:
a. Execution unit
b. Execute unit
c. Exchange unit
d. None of these
162) Which are the part of architecture of 8086:
a. The bus interface unit
b. The execution unit
c. Both A and B
d. None of these
163) Which are the four categories of registers:
a. General‐ purpose register
b. Pointer or index registers
c. Segment registers
d. Other register
e. All of these
164) IP Stand for:
a. Instruction pointer
b. Instruction purpose
c. Instruction paints
d. None of these
165) CS Stand for:
a. Code segment
b. Coot segment
c. Cost segment
d. Counter segment
166) DS Stand for:
a. Data segment
b. Direct segment
c. Declare segment
d. Divide segment
167) Which are the segment:
a. CS: Code segment
b. DS: data segment
c. SS: Stack segment
d. ES:extra segment
e. All of these
168) The acculatator is 16 bit wide and is called:
a. AX
b. AH
c. AL
d. DL
169) The upper 8 bit are called______:
a. BH
b. BL
c. AH
d. CH
170) The lower 8 bit are called_______:
a. AL
b. CL
c. BL
d. DL
171) IP stand for:
a. Industry pointer
b. Instruction pointer
c. Index pointer
d. None of these
172) Which has great important in modular programming:
a. Stack segment
b. Queue segment
c. Array segment
d. All of these
173) Which register containing the 8086/8088 flag:
a. Status register
b. Stack register
c. Flag register
d. Stand register
174) How many bits the instruction pointer is wide:
a. 16 bit
b. 32 bit
c. 64 bit
d. 128 bit
175) How many type of addressing in memory:
a. Logical address
b. Physical address
c. Both A and B
d. None of these
176) The size of each segment in 8086 is:
a. 64 kb
b. 24 kb
c. 50 kb
d. 16kb
177) The physical address of memory is :
a. 20 bit
b. 16 bit
c. 32 bit
d. 64 bit
178) The _______ address of a memory is a 20 bit address for the 8086 microprocessor:
a. Physical
b. Logical
c. Both
d. None of these
179) The pin configuration of 8086 is available in the________:
a. 40 pin
b. 50 pin
c. 30 pin
d. 20 pin
180) DIP stand for:
a. Deal inline package
b. Dual inline package
c. Direct inline package
d. Digital inline package
181) PA stand for:
a. Project address
b. Physical address
c. Pin address
d. Pointer address
182) SBA stand for:
a. Segment bus address
b. Segment bit address
c. Segment base address
d. Segment byte address
183) EA stand for:
a. Effective address
b. Electrical address
c. Effect address
d. None of these
184) BP stand for:
a. Bit pointer
b. Base pointer
c. Bus pointer
d. Byte pointer
185) DI stand for:
a. Destination index
b. Defect index
c. Definition index
d. Delete index
186) SI stand for:
a. Stand index
b. Source index
c. Segment index
d. Simple index
187) DS stand for:
a. Default segment
b. Defect segment
c. Delete segment
d. Definition segment
188) ALE stand for:
a. Address latch enable
b. Address light enable
c. Address lower enable
d. Address last enable
189) AD stand for:
a. Address data
b. Address delete
c. Address date
d. Address deal
190) NMI stand for:
a. Non mask able interrupt
b. Non mistake interrupt
c. Both
d. None of these
191) PC stand for:
a. program counter
b. project counter
c. protect counter
d. planning counter
192) AH stand for:
a. Accumulator high
b. Address high
c. Appropriate high
d. Application high
193) AL stand for:
a. Accumulator low
b. Address low
c. Appropriate low
d. Application low
194) The offset of a particular segment varies from _________:
a. 000H to FFFH
b. 0000H to FFFFH
c. 00H to FFH
d. 00000H to FFFFFH
195) ________ is usually the first level of memory access by the microprocessor:
a. Cache memory
b. Data memory
c. Main memory
d. All of these
196) which is the small amount of high‐ speed memory used to work directly with the
microprocessor:
a. Cache
b. Case
c. Cost
d. Coos
197) The cache usually gets its data from the_________ whenever the instruction or data is
required by the CPU:
a. Main memory
b. Case memory
c. Cache memory
d. All of these
198) How many type of cache memory:
a. 1
b. 2
c. 3
d. 4
199) Which is the type of cache memory:
a. Fully associative cache
b. Direct‐mapped cache
c. Set‐associative cache
d. All of these
200) ) Which memory is used to holds the address of the data stored in the cache :
a. Associative memory
b. Case memory
c. Ordinary memory
d. None of these
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 01 Unit Name : 8085 Processor Date 30.09.2020
A) 30
1 B) 39 L1
C) 40
D) 41
A) TRAP
L2
2 B) INTR
C) RST 7.5
D) RST 3
A) 0030H L3
3
B) 0024H
C) 0048H
D) 0060H
A) Stack pointer
L1
5 B) Program counter
C) Both A and B
D) None of these
What is SIM?
6 L2
A) Select interrupt
B) Sorting interrupt mask
Prepared By: R.Chitra AP/EEE Page 1 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 01 Unit Name : 8085 Processor Date 30.09.2020
A) MROM
7 B) PROM L1
C) FROM
D) FPROM
A) 27
8 B) 40 L1
C) 21
D) 19
A) Object program
B) Source program
10 L2
C) Macro instruction
D) Symbolic addressing
The processor status word of 8085 microprocessor has five flags namely:
A) S, Z, AC, P, CY
13 B) S, OV, AC, P, CY L1
C) S, Z, OV, P, CY
D) S, Z, AC, P, OV
The cycle required to fetch and execute an instruction in a 8085 microprocessor is which one
of the following?
A) Clock cycle
14 L2
B) Memory cycle
C) Machine cycle
D) Instruction cycle
A) Register section
15 B) One or more ALU L1
C) Control unit
D) All of these
A) Data
16 B) Operands L1
C) Memory
D) None of these
A) Intel 8085
17 B) Motorola 6809 L2
C) A and B
D) None of these
Which is used to store critical pieces of data during subroutines and interrupts:
A) Stack
21 B) Queue L1
C) Accumulator
D) Data register
A) Pushing data
22 B) Pushed L3
C) Pulling
D) None of these
A) READ
23 B) WRITE L1
C) RESET
D) None of these
A) Address
25 B) Contents L1
C) Both A and B
D) None of these
A) Dynamic RAM
26 B) Static RAM L2
C) Permanent RAM
D) DDR RAM
The CPU sends out a ____ signal to indicate that valid data is available on the data bus:
A) Read
28 B) Write L1
C) Both A and B
D) None of these
30 A) Arithmetic operation L1
B) Multipulation operation
C) Subtraction operation
Prepared By: R.Chitra AP/EEE Page 5 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 01 Unit Name : 8085 Processor Date 30.09.2020
The CPU removes the ___ signal to complete the memory write operation:
A) Read
31 B) Write L2
C) Both A and B
D) None of these
EU STAND FOR:
A) Execution unit
32 B) Execute unit L1
C) Exchange unit
D) None of these
CS Stand for:
A) Code segment
34 B) Coot segment L3
C) Cost segment
D) Counter segment
In 8085 microprocessor system with memory mapped I/O, which of the following is true?
DS Stand for:
A) Data segment
38 B) Direct segment L1
C) Declare segment
D) Divide segment
A) IBM
39 B) Dell L2
C) Intel
D) VAX
A) 3
40 B) 4 L1
C) 5
D) 6.
A) It is an 8-bit register, which holds the temporary data of arithmetic and logical
operations.
41 B) When an instruction is fetched from memory then it is stored in the program counter L2
C) It provides timing and control signal to the microprocessor
D) It is a 16-bit register used to store the memory address location of the next
instruction to be executed.
A) 2
L1
1 B) 3
C) 4
D) 5
A) Coprocessor configuration L2
2
B) Closely coupled configuration
C) Loosely coupled configuration
D) None of the above
A) TEST
3 B) QS0 L1
C) QS1
D) All of the above
It is a power supply signal, which requires +5V supply for the operation of the circuit.
A) VCA
4 B) VDD L2
C) VCC
D) INTA.
The _________ handles all the communication between the processor and the memory
In 8085 microprocessor system with memory mapped I/O, which of the following is true?
6 L2
A) Devices have 8-bit address line
B) Devices are accessed using IN and OUT instructions
Prepared By: R.Chitra AP/EEE Page 1 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE/ EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 02 Unit Name : Programming Of 8085 Processor Date 30.09.2020
While executing the main program, if two or more interrupts occur, then the sequence of
appearance of interrupts is called
A) multi-interrupt
8 L2
B) nested interrupt
C) interrupt within interrupt
D) nested interrupt and interrupt within interrupt
A) nonmaskable interrupt
9 B) nonmultiple interrupt L1
C) nonmovable interrupt
D) none of the mentioned
If any interrupt request given to an input pin cannot be disabled by any means then the input
pin is called
A) maskable interrupt
10 L2
B) nonmaskable interrupt
C) maskable interrupt and nonmaskable interrupt
D) none of the mentioned
A) maskable
11 L1
B) nonmaskable
C) maskable and nonmaskable
D) none of the mentioned
Whenever a number of devices interrupt a CPU at a time, and if the processor is able to
handle them properly, it is said to have
A) direction flag
15 B) overflow flag L2
C) interrupt flag
D) sign flag
A) Two
16 B) Three L1
C) Four
D) Five
A) FIFO
17 B) FILO L1
C) LIFO
D) LILO
A) One or two
18 B) One , two or three L2
C) One only
D) Two or Three
Which one of the following addressing technique is not used in 8085 microprocessor
A) Register
19 B) Immediate L1
C) Register indirect
D) Relative
Which one of the following register of 8085 microprocessor is not a part of the programming
model
A) Instruction register
20 L1
B) Memory address register
C) Status register
D) Temporary data register
A) Stack pointer
24 B) Address latch L2
C) Program counter
D) General purpose register
The instruction RET executes with the following series of machine cycle
Which one of the following statements is correct regarding the instruction CMP A
Among the given instructions, the which affects the maximum number of flags is
A) RAL
B) POP PSW
28 L1
C) XRA A
D) DCR A
A) String instructions
30 B) Stack instructions L2
C) Arithmetic instructions
D) Branch instructions
A) Stack pointer
31 B) Accumulator L1
C) Register B
D) Register C
The register inform which holds the information about the nature of results of arithmetic of
logic operations is called as
A) Accumulator
32 L1
B) Condition code register
C) Flag register
D) Process status registers
A) Control memory
34 B) Cache memory L2
C) Main memory
D) Virtual memory
IP Stand for:
A) Instruction pointer
37 B) Instruction purpose L2
C) Instruction paints
D) None of these
How many and what are the machine cycles needed foe execution of PUSH B?
A) register instructions
L1
1 B) register specific instructions
C) indexed addressing
D) None
The symbol, ‘address 16’ represents the 16-bit address which is used by the instructions to
specify the
The address register for storing the 16-bit addresses can only be
A) stack pointer
4
L2
B) data pointer
C) instruction register
D) Accumulator
In which of these addressing modes, a constant is specified in the instruction, after the
opcode byte?
A) register instructions L1
7
B) Register specific instructions
C) Direct addressing
D) immediate mode
A) register instructions
L1
8 B) Register specific instructions
C) Indexed addressing
D) none
The only memory which can be accessed using indexed addressing mode is
A) RAM
L2
9 B) ROM
C) Main memory
D) Program memory
A) Atmel
L2
11 B) Philips
C) Intel
D) All of the mentioned
A) 2
L1
13 B) 3
C) 1
D) 0
A) PSW
L1
14 B) SP
C) PC
D) None of the mentioned
When the microcontroller executes some arithmetic operations, then the flag bits of which
register are affected?
A) PSW L2
15
B) SP
C) DPTR
D) PC
How are the status of the carry, auxiliary carry and parity flag affected if the write
instruction
MOV A,#9C
ADD A,#64H
L3
16
A) CY=0,AC=0,P=0
B) CY=1,AC=1,P=0
C) CY=0,AC=1,P=0
D) CY=1,AC=1,P=1
How are the bits of the register PSW affected if we select Bank2 of 8051?
On power up, the 8051 uses which RAM locations for register R0- R7
A) 00-2F
19
L1
B) 00-07
C) 00-7F
D) 00-0F
How many bytes of bit addressable memory is present in 8051 based microcontrollers?
A) 8 bytes
L2
20 B) 32 bytes
C) 16 bytes
D) 128 bytes
A) 8 bytes
L1
24 B) 32 bytes
C) 16 bytes
D) 128 bytes
A) 1
L2
26 B) 2
C) 5
D) 8
Register that is used to holds the memory address of the next instruction to be executed is
A) Program Memory
L1
27 B) Program Counter
C) Control Unit
D) Instruction decoder
A) 8-bit
29
L1
B) 4-bit
C) 16-bit
D) 32-bit
A) 3 ports
31
L1
B) 4 ports
C) 5 ports
D) 4 ports with last port having 5 pins
A) Transferring data
L1
33 B) Receiving data
C) Controlling
D) Controlling and transferring
The use of Address Latch Enable is to multiplex address and data memory.
L1
36
A) True
Prepared By: R.Chitra AP/EEE Page 6 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 03 Unit Name : 8051 Micro Controller Date 30.09.2020
A) Pin 1
L2
37 B) Pin 8
C) Pin 11
D) Pin 9
A) Peripherals
38
L1
B) Power supply
C) ALE
D) Memory interfacing
A) Simplex
1 B) Half duplex L1
C) Full duplex
D) Both half and full duplex
A) UART
2 B) SPI L2
C) I2C
D) USART
3 A) True L1
B) False
A) 5 signals
4 B) 6 signals L3
C) 4 signals
D) 7 signals
A) input port
5 B) output port L2
C) either input or output ports
D) both input and output ports
7 A) True L1
B) False
All the functions of the ports of 8255 are achieved by programming the bits of an internal
register called
A) RESET
12 B) A1 L1
C) WR(ACTIVE LOW)
D) All of the mentioned
The device that receives or transmits data upon the execution of input or output instructions
by the microprocessor is
The port th1at is used for the generation of handshake lines in mode 1 or mode 2 is
A) port A
15 B) port B L2
C) port C Lower
D) port C Upper
A) CS(active low) = 1
B) CS(active low) = 0
17 L3
C) CS(active low) = 0, RD(active low) = 1, WR(active low) = 1
D) CS(active low) = 1 OR CS(active low) = 0, RD(active low) = 1, WR(active low)
=1
The pin that clears the control word register of 8255 when enabled is
A) CLEAR
18 B) SET L1
C) RESET
D) CLK
A) wait statement
19 B) ready statement L1
C) time
D) counter
A) index register
21 B) Accumulator L2
C) SPDR
D) status register
Which signal is used to select the slave in the serial peripheral interfacing?
A) slave select
22 B) master select L1
C) Interrupt
D) clock signal
How much time period is necessary for the slave to receive the interrupt and transfer the
data?
A) 24
24 B) 20 L3
C) 32
D) 40
A) CS'
25 L1
B) RD'
C) WR'
D) All of the above
In mode 2 of I/O mode, which of the following ports are capable of transferring the data in
both the directions?
A) Port A
26 L2
B) Port B
C) Port C
D) All of the above
The ______ is a general purpose programmable I/O device designed to transfer the data
from I/O to interrupt I/O.
A) 8285A
27 L1
B) 8241A
C) 8255A
D) 8251A
A) 2
28 B) 3 L3
C) 4
D) 5
A) PORT A
29 B) PORT B L1
C) PORT C
D) PORT D
How many bits of data can be transferred between the 8255 PPI and the interfaced device at
a time? or What is the size of internal bus of the 8255 PPI?
30 L2
A) 16 bits
B) 12 bits
Prepared By: R.Chitra AP/EEE Page 5 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 04 Unit Name : Peripheral Interfacing Date 30.09.2020
A) 8253
B) 8254
32 L3
C) 8255
D) 8256
A) 3
34 B) 4 L1
C) 5
D) 6
All the functions of the ports of 8255 are achieved by programming the bits of an internal
register called
36 L1
A) data bus control
Prepared By: R.Chitra AP/EEE Page 6 of 7
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 04 Unit Name : Peripheral Interfacing Date 30.09.2020
A) electromagnetic induction
1 B) motor control L1
C) Switching
D) none of the mentioned
A) Variable Reluctance
2 B) Hybrid L2
C) Magnetic
D) Lead-Screw
How many rows and columns are present in a 16*2 alphanumeric LCD?
A) rows=2, columns=32
4 B) rows=16, columns=2 L1
C) rows=16, columns=16
D) rows=2, columns=16
Which of the following steps detects the key in a 4*4 keyboard matrix about the key that is
being pressed?
6 L1
A) masking of bits
Prepared By: R.Chitra AP/EEE Page 1 of 6
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 05 Unit Name : Micro Controller Programming & Date 30.09.2020
Applications
OBJECTIVE TYPE QUESTION BANK
B) ensuring that initially, all keys are open
C) checking that whether the key is actually pressed or not
D) all of the mentioned
A) it is a driver
7 B) it is a thing isolated from the entire world
C) it is a device that can be used as an electromagnetic relay without a driver
D) none of the mentioned
A) kg/m2
9 B) ounce-inch
C) kg-m3
D) g/m
If the pins of the keyboard are used as an interrupt, then these pins will cause an interrupt of L1
what type?
12 A) True L1
B) False
A) pin no 1
13 B) pin no 2 L2
C) pin no 3
D) pin no 4
In reading the columns of a matrix, if no key is pressed we should get all in binary notation
A) 0
14 B) 1 L3
C) F
D) 7
A) Windings
B) Rotor and Stator
15 L1
C) Commutator
D) Brush
E) Both C and D
What will happen if the two keys of the keyboard are pressed at a time?
A) In full-step two phases are on and in half-step only one phase is on.
19 B) More resonance is evident in half-step L2
C) More power required for full-step
D) Half-step offers better resolution
Why initially all keys are considered open before detecting the key pressed?
Which of the following step/s is/are correct to perform reading operation from an LCD?
A) Mechanical Motion.
22 B) Inertial Load L1
C) Speed Requirements
D) All of the above
Which command of an LCD is used to shift the entire display to the right?
A) 0x1C
23 B) 0x18 L1
C) 0x05
D) 0x07
A) Cost-efficient
24 B) Maintenance-free L1
C) No feedback
D) More complex circuitry
Which commands are used for addressing the off-chip data and associated codes
respectively by data pointer?
Which mode of timer 2 allow to hold the reload values with an assistance of RCAP2H &
RCAP2L register pair?
What is the required baud rate for an efficient operation of serial port devices in 8051
microcontroller?
A) 1200
26 L1
B) 2400
C) 4800
D) 9600
Which value of disc capacitors is preferred or recommended especially when the quartz
crystal is connected externally in an oscillator circuit of 8051?
L2
A) 10 pF
27
B) 20 pF
C) 30 pF
D) 40 pF
28 Why are the resonators not preferred for an oscillator circuit of 8051?
L1
A) Because they do not avail for 12 MHz higher order frequencies
Prepared By: R.Chitra AP/EEE Page 5 of 6
NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY, THENI.
Course/Branch : BE / EEE Year / Semester : III / V Format
NAC/TLP-07a.13
No.
Subject Name :Microprocessors and
Subject Code :EE8551 Rev. No. 02
Microcontrollers
Unit No : 05 Unit Name : Micro Controller Programming & Date 30.09.2020
Applications
OBJECTIVE TYPE QUESTION BANK
B) Because they are unstable as compared to quartz crystals
C) Because cost reduction due to its utility is almost negligible in comparison to total
cost of microcontroller board
D) All of the above
A) 30, 1byte
29 B) 20, 1 byte L2
C) 40, 8 bit
D) 40, 8 byte
What is the constant activation rate of ALE that is optimized periodically in terms of an
oscillator frequency?
A) 1/8
30 B) 1/6 L1
C) 1/4
D) 1/2