Microcontroller Midsem
Microcontroller Midsem
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
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
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.
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