Professional Documents
Culture Documents
Guru Tegh Bahadur Institute of Technology Question Bank of Embedded System 8 Semester
Guru Tegh Bahadur Institute of Technology Question Bank of Embedded System 8 Semester
Technology
Question bank of Embedded System
8th Semester
The flag register 8051 is called as program status word i.e., PSW.
21) What is the size of flag register in 8051?
The size of flag register in 8051 is 8 bit.
22) Which bits of the PSW registers are users definable?
D1 and D5 i.e., PSW.1 and PSW.5 are user definable.
23) When is the carry flag (CF) set?
The carry flag is set whenever there is carry out from the d7 bit. This flag is affected
after.
24) Is it possible to have immediate data as destination?
No, it is not possible to have immediate data as destination.
25) What should be the number in the register RP?
It must be always the ram address.
26) Which register are used for indirect addressing?
Only register R0 and R1 may be used for indirect addressing.
27) All external data moves must involve which register?
All external data moves must involve the accumulator.
28) How many bytes can register RP address?
Rp can address 256 bytes.
29) How many bytes can DPTR address?
DPTR can address 64k bytes.
30) What happens to the PC before it is added to A to form the final address of
the code byte?
The PC is incremented by 1 to point to the next instruction.
31) What precaution one has to take to handle the subtract operation?
The carry flag is set to 0 if is not to be included as part of the subtraction operation.
32) Which register bank is used if we alter RS0 and RS1 of the PSW by the
following 2 instruction?
SETB psw.3
SETB psw.4
The register bank 3 is used.
33) Name 16 bit register in 8051?
PC and DPTR.
34) What is the result of the following code and where it is kept?
MOV A, #15H
MOV R2, #13H
ADD A, R2
The result is 28H and is stored in accumulator.
35) In the ADD instruction, when CY is raised?
The CY is raised or set whenever there is a carry out from the D7 bit.
36) In the ADD instruction, when is AC flag set?
If there is a carry from D3 to D4 during an ADD or SUB operation, this bit is set,
otherwise it is cleared.
37) Which flag is used to perform BCD arithmetic?
The AC flag is used to perform the BCD arithmetic.
38) In the 8051, which register bank conflict with the stack?
Bank1.
39) In JZ = NEXT which register content is checked to see if it zero?
The accumulator.
49) Explain the role that each of the two bits TCON.0 and TCON.2 play in the
execution of external interrupts 0?
TCON.0 is set to high to make INT0 an edge triggered. If INT 0 is edge triggered(i.e
TCON.0 is set ) whenever high to low pulse is applied to the INT0 is latched and kept
by the TCON.0 bit by making TCON.2 high. While the ISR for INT0 is being
serviced,TCON.2 stays high. No matter how many times a high to low pulse is
applied to pin INT0.
Upon the execution of the last instruction of the ISR, which is RETI the TCON.2 bit is
cleared indicating that the INT0 pin can respond to another interrupt.
50) What address in the interrupt vector table is assign to the serial interrupt?
23H is the address assigned for serial interrupt.
51) How are interrupts better than Polling?
In polling the processor needs to continuously monitor the i/o device whether it is ready
or not. This continuous monitoring of the device may lead to undue waste of time.
Whereas the device may interrupt the processor as and when required ,in the mean time
the processor my carry on with some other piece of work.
52) Explain the working of the enable pin of the LCD
The data written on to the data pins is taken in only when a high to low pulse is given on
this pin or to understand the data written comes into action only when high to low pulse
is given.
53) What is the role of SBUF register during serial communication?
Any data that needs to be transmitted or received is passed through the SBUF register. the
data being transmitted is moved to SBUF and the data received through serial
communication is collected in SBUF.
54) A stepper with a step angle of 5 degrees has how many steps per revolution?
a) 144
b) 72
c) 48
d) 24
Answer is 72.
55) What is the total number of steps needed to rotate one complete rotation?
The total number of steps are 180 steps * 20 = 360
56) What is the purpose of LM336 Zener diode around pot setting Vref/2?
The purpose of LM336 Zener diode around pot setting Vref/2 is to overcome any
fluctuation in power supply.
57) LM34 provides __10mv_ __for each degree of _ Fahernheit,_(Fahernheit, Celsius)
temperature.
58) LM35 provides _10mv__for each degree of _ Celsius __(Fahernheit, Celsius)
temperature.
59) A stepper with a step angle of 7.5 degrees has how many steps per revolution?
a) 144
b) 72
c) 48
d) 24
Answer is 48
60) A stepper with a step angle of 15 degrees has how many steps per revolution?
a) 144
b) 72
c) 48
d) 24
Answer is 24
61) A stepper with a step angle of 2.5 degrees has how many steps per revolution?
a) 144
b) 72
c) 48
d) 24
Answer is 144
62) What will be the order of 4 step sequence of stepper motor if we start with 0110?
a) 1,2,4
b) 4,1,2
c) 1,4,2
d) 2,1,4
Answer is 4,1,2.
63) What will be the order of 4 step sequence of stepper motor if we start with 0011?
a) 1,2,4
b) 4,1,2
c) 1,4,2
d) 2,1,4
Answer is 1,2,4.
64) What will be the order of 4 step sequence of stepper motor if we start with 1100?
a) 1,2,4
b) 4,1,2
c) 1,4,2
d) 2,1,4
Answer is 2,1,4.
65) What is the direction (out, in) for each of following pins of ADC 808/809.
A) A,B,C
B) SC
C)EOC.
The direction for A,B,C is in, for SC is also in and for EOC is out .
66) In ADC804, the INTR signal is
a) Input Signal
b) Output signal
It is output signal
67) Which pin of ADC804 indicates end of conversion?
a) INTR
b) CS
c) RD
d) Vcc.
The pin of ADC804 which indicates end of conversion is INTR.
68) Which pin of ADC804 indicates start of conversion?
a) INTR
b) CS
c) RD
d) Vcc.
The pin of ADC804 which indicates start of conversion is RD
69) Both the ADC 804 and ADC 808 are ___8____ bit converter
70) For an ADC804 chips, find the step size of Vref values
a) Vref/2 = 1.28 Volt
b) Vref/2 = 1 Volt
The step size for 1.28 Volt is Vref = 2.56/ 256 = 10
The step size for 1Volt is Vref = 2/ 256 = 7.81
71) Is self clocking present in ADC 808/809?
No