Microcontroller Midsem

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

VPKBIET, Baramati

Department of Electronics and Telecommunication Engineering


Mid-Sem Examination
T.E. (E & Tc) Engineering (2019 Course)
304184: Microcontrollers
Max. Marks: - 30 Max. Time:- 1 Hr.
Note:-

1. Bloom’s Taxonomy levels (1.Remembering 2. Understand 3. Applying 4.Analysing 5. Evaluating 6.


Creating)

2. Each Question carries 1 Mark

Question Question Bloom’s CO PO


No. Taxonom
y
1 Timer 1 runs and timer 0 stops: 1 CO1 PO1
(a) when TCON.6 = 1 and TCON.4 = 0
(b) when TCON.4 = 0 and TCON.5 = 1
(c) when TCON.7 = 1 and TCON.5 = 0
(d) when TCON all bits are 1s

2 In serial communication modes, mode 1 if baud rate required is 3 CO1 PO1


4800bps calculate value to be loaded in TH1 register
a) -3
b)-6
c)-9
d)-12

3 What will result after execution of following instructions? 4 CO1 PO1,


PO2
mov a,#65h
add a,#55h
DAA

a) CY=1 A=AA h
b) CY=1 A= 20h
c) CY=0 A=AAh
d) CY=0 A=20h
4 This program will be executed continuously 2 CO1 PO1,
Up: mov a, #00h PO2
jnz up
a) True
b) False

5 In ADC0808/0809 IC which pin is used to select Step 1 CO2 PO1


Size?
a) Vref
b) Vin
c) Vref/2 & Vin
d) None of the mentioned
6 Serial port vector address is of _______. And causes an interrupt 1 CO2 PO1
when ________.
a) 0013H, either TI or RI flag is set b) 0023H, either TI or RI flag
is reset
c) 0013H, either TI or RI flag is reset d) 0023H, either TI or RI flag
is set

7 If A = 05H and B = 64H, then after MUL AB the SFRs at A and B 3 CO1 PO1
a) Do not change b) Equal 01 H and F4H c) Equal F4H and
01H d) None above

8 Assume A=7Fh choose the necessary instruction to retain bit 4 4 CO1 PO1
and 5 of this number and mask remaining.
a) ANL A, #30h b) ANL A,#03h c) ANL A,#60h d) ANL
A,#90h

9 10. If IP register has been set as 0x02 then: 2 CO1 PO1


(a) INT1 has the highest priority (b) T0 has the highest & serial
interface as the lowest priority
(c) INT0 have the highest priority (d) there is no priority

10 11. Circle correct instructions 1 CO1 PO1

a) POP #02h b) MOVC B, @A+DPTR c) MOV R7, R1 d)


Mov @R1, B

11 If initial count in TH1 register is 52h and mode 2 of timer is 5 CO2 PO1,
selected after how much time TF will be set. Assume crystal PO2
11.0592 MHz.

a) 189 µsec b) 200 µsec c)70 msec d)100 msec


12 13. Optoisolator is 1 CO2 PO1
a) it is a driver
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
13 14. 8 input DAC has input as (1100 0000)b what will be 3 CO2 PO1,
analog voltage ________. Assume reference voltage 5v. PO2
a) 3.12 v b) 3.51 v c) 2.51 v d) 3.76v

14 15. 8 input DAC has ________ 1 CO2 PO1


a) 8 discrete voltage levels
b) 64 discrete voltage levels
c) 124 discrete voltage levels
d) 256 discrete voltage levels

15 16. RS0 and RS1: 1 CO1 PO1


(a) are not in the PSW as these are not the flags (b) are in the
register sets (banks)
(c) are the bits-4 and 5, respectively, for selecting the register
bank in the PSW
(d) are the bits-3 and 4 in the PSW, respectively, for selecting
the register bank.
16 To display a digit on seven-segment display, we have to 1 CO2 PO1
apply its __________ at the input.
(a) 8 bit binary equivalent
(b) Grey code
(c) BCD
(d) Excess-3 code
17 When the port lines of a port are to be used as input lines 1 CO1 PO1
then the value that must be written to the port address is
a) F0H
b) 0FH
c) FFH
d) 00H
18 If LED is connected to pin P1.2 it must be 3 CO2 PO1

declared as ------ pin using instruction -------.


A) Input, SETB P1.2
B) OUTPUT, CLR P1.2
C) INPUT, CLR P1.2
D) OUTPUT, SETB P1.2
19 If Vref+ = 5V, Vref- = GND and output of ADC 3 CO2 PO1,
PO2
0808 is 01101010 then what would be the
corresponding analog input voltage?
A) 2.07V
B) 2.5 V
C) 2.14 V
D) 3.1 V
20 If step angle of a stepper motor is 1.8 degrees 2 CO2 PO1

then stepper motor has ----- number of steps


A) 100
B) 200
C) 300
D) 400
21 In PIC18F458 PC size is ---- and can access 2 CO3 PO1

program memory of size----.


A) 8, 256
B) 16, 64Kb
C) 20, 1Mb
D) 21, 2Mb
22 In PIC18FXXX ------ register is used to control 1 CO3 PO1

input-output direction of PORTA


A) DDRA
B) PORTA
C) PINA
D) TRISA
23 If the power supply voltage goes below 4V 1 CO3 PO1
-------- allows to reset PIC18F?
A) Built-in Power-on-reset
B) Brown-out reset
C) MCLR
D) RESET
24 ------ timer is used to prevent PIC from going in 1 CO3 PO1

to infinite loop?
A) Power up timer
B) Oscillator startup timer
C) Watch dog timer
D) Normal Timer
25 Which statement is precise in relation to FSR, 2 CO3 PO1
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

26 For PIC 18F in idle mode ----- is off and ---- are 1 CO3

on
A) CPU, Peripherals
B) CPU, Registers
C) WREG, Peripherals
D) SFR, Registers
27 For accessing data present in RAM memory there are 1 CO3 PO1
special function registers called -----
A) SFR
B) WREG
C) FSR
D) BSR
28 After execution of following program output will be 3 CO3 PO1,
MOVLW 0x56 PO2
MOVWF 0x40
MOVFF 0x40, 0x50
A) Loc 50H = 56H
B) Loc 40H = 50H
C) Loc 56H = 50H
D) Loc 40H = 56H

29 In the following program 4 CO3 PO1,


LFSR 0, 0x30 PO2
MOVWF INDF0
A) INDF0 = 30H
B) Contents of WREG stored into INDF0
C) copy contents of WREG into RAM location
whose address is held by FSR0 register i.e.
30H location
D) WREG = INDF0

30 Which of the following statement is used for 1 CO3 PO1

selecting high speed oscillator


A) CONFIG PWRT = ON
B) CONFIG BOR = ON
C) CONFIG OSC = HS
D) CONFIG WDT = ON

You might also like