EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
1
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
8. What do you mean by addressing modes? What are the addressing modes of
sequence control transfer instructions in 8086? Give example. (May 2014) (May 2018).
Addressing modes indicate a way of locating data or operands.
Immediate eg: Mov AX, 0005H,
Direct eg: Mov AX, [5000H],
Register eg:Mov BX,AX,Register
Indirect eg:Mov AX,[Bx],
Indexed eg: Mov AX,[SI],
Register Relative eg:Mov AX,50H[BX],
Based Indexed eg: Mov AX, [Bx] [SI],
Relative Based Indexed eg: Mov AX, 50H [BX] [SI].
9. How is the physical address generated in 8086? (or) How 16 bit address is converted
into 20 bit address in 8086? (Nov 2013)
The content of the segment register called as segment address is shifted Left bit-wise
four times and to this result, content of an offset register also called as offset address is
added, to produce a 20-bit physical address.
eg: segment address 1005H
Offset address 5555H
Segment address 0001 0000 0000 0101
Shifted by 4 bit positions 0001 0000 0000 0101 0000
+
Offset address 0101 0101 0101 0101
Physical address 0001 0101 0101 1010 0101
Total = 1 5 5 A 5
10. What are the differences between 8085 and 8086? (Nov 2013)
S.No 8085 8086
1 8-bit microprocessor 16-bit microprocessor
2 It is capable of addressing 216 memory It is capable of addressing 220 memory
locations locations
3 Low speed High speed
4 It can be configured only in single It can be configured in single processor
processor mode mode (Minimum) and Multiprocessor
mode (Maximum)
12. Draw the PSW format for 8086 / List the flags in 8086 and state its functions. (May
2014, 2016, Nov 2016, Nov 2017, May 2019).
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
U U U U OF DF IF TF SF ZF U AF U PF U CF
U : Undefined
CF : Carry flag - Set by carry out of MSB
PF : Parity flag - set if result has even parity
AF : Auxiliary carry flag - used for BCD operation
ZF : Zero flag - set if result = 0
2
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
SF : Sign flag - set if result is negative value.
TF : Trap flag - set to enable single step execution mode.
IF : Interrupt flag - set to enable interrupt
DF : Direction flag - set to enable auto decrement mode for string operation
OF : Overflow flag - used for signed arithmetic operation
14. Give the operation of CBW and TEST instructions of 8086? (Nov 2013)
CBW instruction converts the byte in AL to word value in AX by extending the sign
of AL throughout the register AH. TEST instruction performs logical AND operation of the
two operands updating the flag registers without saving the result.
16. Identify the addressing modes in the following instructions. (May 2014)
AND AL, BL : Register Addressing Mode
SUB AL, 24H : Immediate Addressing Mode
MOV AL, (BP) : Indirect Addressing Mode
MOV CX, 1245H : Immediate Addressing Mode
18. Calculate the physical address, when segment address is 1085 H and effective
address is 4537 H. (Nov 2015)
Physical address= 10* 1085 H + 4537 H = 14D87 H
19. Show how the 2 byte INT instruction can be applied for debugging. (Nov 2015)
INT 1 is called as single-step interrupt. When microprocessor executes INT 1
instruction, it will execute one instruction and stop. Then, it goes and examines the contents
of registers and memory locations. If the contents are correct, the microprocessor executes
the next instruction. INT 3 is called as break point interrupt. This is used to insert break
points for debugging the program. The microprocessor executes the program up to the break
point and then branches to break point Interrupt service routine(ISR).
22. Define Stack and stack pointer? (May 2016, May 2017, May 2018)
A stack pointer is a small register that stores the address of the last program request in
a stack. A stack is a specialized buffer which stores data from the top down. As new
requests come in, they "push down" the older ones.
23. The offset address of a data is (341B)H and the data segment register value is
(123A)H. What is the physical address of the data? (May 2017)
The physical address of data can be given as (123A0)H+(341B)H = (157BB)H
3
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
24. What is the need for interrupts in microprocessor operation? (Nov 2018)
Interrupt is the method of creating a temporary halt during program execution and
allows peripheral devices to access the microprocessor. The microprocessor responds to that
interrupt with an ISR (Interrupt Service Routine), which is a short program to instruct the
microprocessor on how to handle the interrupt.
27. Write a 16 bit delay program in 8086. (May 2017, May 2018)
DELAY: MOV DX,0FFFFH
LOOP1: DEC DX
JNZ LOOP1.
PART-B
1. Explain the internal architecture of 8086 and explain the functions of each block in
detail.
(May 2018, May 2016, May 2017, Nov 2017, 2018 and May 2019)
2. Write an 8086 ALP to logically shift a 16 bit number stored in location starting at
8000H twice to the right. Store the result in A000 H.
3. Explain the different instruction used for input and output operation in I/O mapped I/O
mode of 8086.
4. Explain the register organization of the 8086. Discuss how the physical address
generation is carried out.
5. What is meant by memory segmentation? What are the advantages of memory
segmentation?
6. Write an 8086 ALP to sort out any given ten numbers in ascending and descending
order.
(Nov 2013)
8.With a neat diagram explain the bus interfacing unit and execution unit available in 8086
microprocessor. (Nov 2014, May 2014).
9.(i) Briefly explain the arithmetic group of instructions available in 8086 microprocessor.(8)
(ii) Briefly explain the assembler directives of 8086. (8) (Nov 2014, 2016 , 2018).
10. Briefly describe about addressing modes of 8086. (8) (Nov 2014, 2015, 2016, 2018)
11.Explain in detail about the interrupts and interrupt service routine of 8086.Explain
interrupt sequence for 8086 (16) (May 2016, Nov 2017, 2018, 2019)
12. Explain the Data transfer, arithmetic and branch instructions with examples. (May 2016)
13. Write an 8086 ALP to find the sum of numbers in an array of 10 elements.(May 2016)
14. What are the instruction set and assembler directives in 8086? Explain. (Nov 2018)
4
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
5
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
The 8086 must be supplemented with co-processors that extend the instruction set to
allow the necessary special computations to be accomplished more efficiently. Eg: 8087
Numeric Data Processor.
16. What is multi programming? (Nov 2015, May 2017, May 2018)
Multiprogramming is a rudimentary form of parallel processing in which several
programs are run at the same time on a uniprocessor. Since there is only one processor, there
can be no true simultaneous execution of different programs. Instead, the operating system
executes part of one program, then part of another, and so on. To the user it appears that all
programs are executing at the same time.
17. Schematically show, how synchronization is made between 8086 and its co-
processor.
(Nov 2015)
Coprocessors are unable to work independently as they are unable to fetch the code
from memory and thus they work under the control of the main processor. Additional
hardware elements like bus controllers and bus arbiters are used to coordinate the activities of
the number of coprocessors working at a time in the system.
19. Write some example for advanced processors. (May 2017, Nov 2017)
Some of the advanced processors can be given as Intel 80286,80386,80486, ARM
processors, SHARC processors.
21. List two differences between maximum mode and minimum mode. (May 2018)
Minimum mode Maximum mode
In minimum mode there can be only one In maximum mode there can be multiple
processor i.e. 8086. processors with 8086, like 8087 and 8089.
ALE for the latch is given by 8086 as it is ALE for the latch is given by 8288 bus
the only processor in the circuit. controller as there can be multiple
processors in the circuit.
PART-B
1. Explain the closely coupled configuration of multi-processor configuration with suitable
diagram. (May 2014, May 2017)
2. Explain in detail about system bus timing of 8086/8088.(Nov 2016, May2016)
3. Explain the maximum mode and minimum mode of operation of 8086. Explain the
functions of various signals used in these modes.(Nov 2015)
4. Differentiate closely coupled configuration and loosely coupled configuration. (Nov
2013, Nov 2018)
5. (i) Draw the pin details of 8086 and explain the function of each pin. (ii) Give the
functions of NMI, BHE and TEST pins of 8086. (4) (Nov 2013)
6. Define loosely coupled system. Explain the schemes used for establishing priority.
(16) (Nov 2015)
7. Explain the following:(i) Multiprocessor system (ii) Coprocessor (iii) Multiprogramming
(iv) Semaphore (May2016)
8. Discuss about the multiprocessor configuration of 8086?(Nov 2016,May 2018)
9. Explain the system bus structure of 8086. Draw the timing diagram for interrupt
acknowledgement cycle. (May 2017, Nov 2017,Nov 2018)
10. Explain the loosely looped configuration with neat diagram. (Nov 2017)
11. With neat diagram explain the architecture of 8086 in maximum mode configuration.
Also explain the bus timing diagram for input and output transfer on maximum mode.(May
2019)
7
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
5. What are the differences between LED and LCD display?(Nov 2018)
LED LCD
PN-Junction device which discharge visible It is an optical device used for displaying the
lights when an electrical charge passes information in the form of text and images.
through it.
No backlight Cold cathode fluorescent lamp provides
backlight.
6. What is Key bouncing? What are the methods to detect the debouncing? (May
2016).
Whenever a mechanical push-button is pressed or released once, the mechanical
components of the key do not change the position smoothly, rather it generates a transient
response. These transient variations may be interpreted as the multiple key pressures and
responded accordingly by the microprocessor system. To avoid this problem, two schemes
are suggested: the first one utilizes a bistable multivibrator at the output of the key to
debounce. The other scheme suggests that the microprocessor should be made to wait for the
transient period (usually 10ms), so that the transient response settles down and reaches a
steady state.
9. How is DMA initiated? Or How DMA operation is performed with 8086. (Nov 2017).
The 8086 microprocessor receives bus requests through its HOLD pin and issues
grants from the hold acknowledge (HLDA) pin. A request is made when a potential master
8
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
sends a 1 to the HOLD pin. Normally, after the current bus cycle is complete the 8086 will
respond by putting a 1 on the HLDA pin. When the requesting device receives this grant
signal it becomes the master. It will remain master until it drops the signal to the HOLD pin,
at which time the 8086 will drop the grant on the HLDA pin.
10. List the four possible modes of operation in 8237 DMA controller.
Rotating Priority Mode, Fixed Priority Mode, Extended Write Mode, TC Stop Mode and
Auto Load Mode.
14. What are the advantages of Programmable Interval Timer/Counter IC? (May 2014)
Interrupt a time sharing operating system at evenly spaced intervals.
Output precisely timed signals with programmed period to an I/O device.
Count the number of times an event occurs in an external experiment.
Cause the processor to be interrupted after a programmable number of external events have
occurred.
16. List the operating modes of 8255 A and 8237 A. (Nov 2015)
Operating modes of 8255 A: BSR mode & I/O mode
BSR mode: In this mode, any of the 8 bits of port C can be set or reset.
I/O mode: Mode 0 (Basic I/O mode), Mode 1 (Strobed I/O mode) & Mode 2 (Strobed
bidirectional mode).
Operating modes of 8237 A: Rotating Priority Mode, Fixed Priority Mode, Extended Write
Mode, TC Stop Mode, Auto Load Mode
17. What frequency transmit clock (TXC) is required by an 8251 in order for it to
transmit data at 4800 baud with a baud rate factor of 16? (Nov 2015)
Baud rate factor = (TXC) / (Desired Baud Rate)
(TXC)= Baud rate factor X Desired Baud Rate = 16 X 4800= 76,800 Hz
22. Draw the format of read back command register of 8254. (May 2017)
9
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
24. What are the handshake signals used in Mode – 2 configuration of 8255? (Nov 2017)
Only port A can be initialized in this mode. Port A can be used for bidirectional
handshake data transfer. This means that data can be input or output on the same eight lines
(PA0 - PA7). Pins PC3 - PC7 are used as handshake lines for port A. The remaining pins of
port C (PC0 - PC2) can be used as input/output lines if group B is initialized in mode 0 or as
handshaking for port B if group B is initialized in mode 1. In this mode, the 8255 may be
used to extend the system bus to a slave microprocessor or to transfer data bytes to and from
a floppy disk controller. Acknowledgement and handshaking signals are provided to maintain
proper data flow and synchronization between the data transmitter and receiver.
26. List the advantages and disadvantages of parallel communication over serial
communication. (May2016).
Parallel data transfer refers to the type of data transfer in which a group of bits are
transferred simultaneously while serial data transfer refers to the type of data transfer in
which a group of data bits are transferred one bit at a time. Therefore, the amount of data
transferred serially is less than the data transferred in parallel per second. Serial data
transfer requires fewer cables and therefore to transmit data over longer distances, serial
data transfer is preferred.
PART – B
1. Explain the procedure of Interfacing A/D and D/A converter with a microprocessor.(Nov
2016, May2014,Nov 2018)
(i) Explain the mode 0 operation of 8255 Programmable Peripheral interface. (ii) Explain the
different modes of operation of timer. (May 2014, 2017)
2. Explain the internal architecture of 8237 Direct Memory Access Controller. (Nov 2016,
May 2016, May 2017,May 2018,Nov 2018)
3. Draw the block diagram and explain the operations of 8251 serial communication
interface.
(Nov 2015, Nov 2017, May 2019)
4. Draw and explain the functional block diagram of parallel communication interfacing
chip.
(May 2017)
5. Draw the block diagram of traffic light control system using 8086.Write the algorithm and
ALP for traffic light control system?(May 2018)
6. Design a microcomputer based on 8086 with 16k EPROM and 16K RAM.
7. With a neat block diagram explain programmable interval timer IC 8253. (Dec 2014,
May2014)
8. Draw the block diagram of programmable interrupt controller and explain its operations.
(16) (Nov 2015,Nov 2018)
9. Draw and explain the block diagram of alarm controller.(May 2016,May 2018)
10. Develop a 8086 based system to display the word HELLO for every 2ms in the common
cathode seven segment LED display and check how many times the word is displayed for one
hour. (May 2017)
11. Draw and explain the functional block diagram of keyboard and display controller. (Nov
2017)
12. Draw the block diagram and explain the operation of USART?(May 2018)
13. Explain interrupt system based on multiple 8259 with block diagram.(May 2019)
14. Explain in detail about interfacing of four LCD digits to 8086.(May 2019)
10
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
UNIT-IV MICROCONTROLLER
PART –A
1.Discuss the salient features of 8051 family of controllers?
Eight-bit CPU with registers A (the accumulator) and B.
Sixteen-bit program counter (PC) and data pointer (DPTR).
Eight-bit program status word (PSW). Eight-bit stack pointer (SP).
Internal ROM or EPROM (4 KB). Internal RAM (128 bytes)
Four register banks (each 8 registers) 16 bytes, which may be addressed at bit
level
Eighty bits of general purpose data memory Two 16-bit timer / counters: T0 &
T1
Full duplex serial data receivers / transmitter (SBUF)
Control registers: TCON, TMOD, SCON, PCON, IP and IE.
Two external and three internal interrupt sources Oscillator and clock circuits
3.How many ports are available in 8051 micro controller? (May 2017)
There are mainly four ports available in this 8051 micro controller. They are
Port0: serve as inputs, outputs, or, when used together, as a bi-directional low
order address and as data bus for external memory.
Port1: has got no dual functions.
Port2: may be used as an input / output port similar in operation to port 1. The alternate use
of port2 is to supply a high-order address byte in conjunction with the Port0 low-order byte to
address external memory.
Port3: is an input / output pin similar to the Port 1. In this case each and every pin has an
additional function.
4.Which bits of the PSW are responsible for selection of the register banks?(May 2019)
RS0 and RS1 bits are used for selection of register banks
RS1 RS0 DESCRIPTION
0 0 BANK 0 is selected from Internal ROM
0 1 BANK 1 is selected from Internal ROM
1 0 BANK 2 is selected from Internal ROM
1 1 BANK 3 is selected from Internal ROM
6.What is the significance of EA line of 8051 microcontroller? (May 2014, Nov 2016)
When there is no on-chip ROM in microcontroller and EA pin is connected to GND,
it indicates that the code is stored in external ROM.
11
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
10.What are the different ways of operand addressing in 8051? (May 2016)
Immediate addressing mode, Direct addressing mode, Register addressing mode,
Register indirect addressing mode and Indexed addressing mode.
12.Write an ALP to add the values ABH and 47H. Store the result in R1.
MOV A, #AB H
ADD A, #47 H
MOV R1, A
L1: SJMP L1
12
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
16.Why it is necessary to have external pull-up for port 0 in 8051? (Nov 2014)
When port 0 is used as an output port, the pin latches that are programmed to a 0 will
turn on the lower FET, grounding the pin. All latches that are programmed to a 1 still float;
thus, external pullup resistors will be needed to supply a logic high when using port 0 as an
output port.
17.What is the difference between AJMP and LJMP instruction? (May 2014)
LJMP: LJMP (long jump) causes the program to branch to a destination address
defined by the 16-bit operand in the jump instruction. Because a 16-bit address is used the
instruction can cause a jump to any location within the 64KByte program space (216 = 64K).
Some example instructions are:
LJMP LABEL_X ; Jump to the specified label
LJMP 0F200h ; Jump to address 0F200h
LJMP @A+DPTR ; Jump to address which is the sum of DPTR and Reg. A
AJMP: This is a special 8051 jump instruction, which allows a jump with a 2KByte address
boundary (a 2K page)
18.How does the processor 8051 know whether on-chip ROM or external program
memory is used? (May 2014)
EA (External Access) pin is grounded for accessing external program memory &
PSEN (Program Store Enable) signal is activated to read a byte of instruction from External
program memory. EA & PSEN signals are not used for accessing internal program memory.
8051 differentiates the external and internal program memory by using EA and PSEN signals.
19.Mention the number of register banks and their addresses in 8051. (Nov 2015)
There are four register banks, in each register bank there are eight 8 bit register
available from R0 to R7. By default Bank 0 is selected. For Bank 0, R0 has address 00H and
R1 has 07H. For selecting banks we use RS0 and RS1 bit of PSW.
RS1 RS2 Space in RAM
0 0 Bank0 00h-07H
0 1 Bank1 08h-0FH
1 0 Bank2 10h-17H
1 1 Bank3 18h-1FH
25.Which port is used as multifunction port? List the signals. (May 2017)
Port 3.All port pins can be used as general I/O, but they also have an alternative
function. In order to use these alternative functions, a logic one (1) must be applied to
appropriate bit of the P3 register.
PIN Sym SFR Significance
bol
P3.0 RXD SBUF It is the received data pin for Port in UART Mode
serial
P3.1 TXD SBUF It is the transmit data pin for Serial port in UART mode
serial
P3.2 INT0 TCON.1 It is an external interrupt It is low level or falling edge
triggered
P3.3 INT1 TCON.3 It is an external interrupt It is low level or falling edge
triggered
P3.4 T 0 T<0 External timer / counter 0 Input pin gives pulse to T<0
register of the timer 0 to increase
14
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
N by 1
P3.5 T 1 T<1 External timer / counter 1 Input pin gives pulse to T<1
register of the timer 0 to increase
by 1
P3.6 WR - It is an external memory writer Pulse it is an active low pulse
P3.7 RD - It is an external memory reader Pulse whenever data from
memory is read
PART-B
1. Discuss what happens if interrupt INTO, TFO and INT are activated at the same time.
Assume priority levels were set by the power-up reset and that the external interrupts are
edge triggered. (May 2019)
2. Draw the pin configuration of 8051 and explain the function of each pin in detail.(May
2014)
3. Write an assembly language program to multiply the given number 48H and 30H. (May
2017)
4. Draw the architecture of 8051 and explain? (Nov 2016, Nov 2017,May 2018)
5. (i)Explain in detail about the 8051 register banks and stack (ii)show the code to push r5,r6
and A onto the stack and then pop them back into r2,r3, and B where register B = register A,
r2=r6 and r3=r5.(May 2019)
6. Write an ALP using 8051 instruction to receive bytes of data serially and put them in P1.
Set the baud rate at 4800, 8-bit data and 1 stop bit? (Nov 2016)
7. Write an 8051ALP to create a square wave of 66 % duty cycle on bit 3 of port 1? (May
2016)
8. Explain in detail the memory organization of 8051 microcontroller. (Nov 2014)
9. Briefly explain the data transfer instructions available in 8051 microcontroller.
10. (i) Explain in detail about the Special Function Registers in 8051.Explain each register
with its format and functions. (May 2017,Nov 2018)
(ii) Briefly explain about addressing modes of 8051 with one example. (Nov 2015, May
2017,2018,2019)
11. (i) Give PSW of 8051 and describe the use of each bit in PSW.
(ii) Describe the functions of the following signals in 8051.RST, EA, PSEN and ALE (Nov
2015)
12. Discuss the ports and its circuits of 8051. How input/output ports and pins help in circuit
of microcontroller? (Nov 2017) (Nov 2018)
15
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
2. Write short notes on interrupts in 8051? / List of 8051 interrupts with its priority.
(May 2017)
Interrupts may be generated by internal chip operations or provided by external
interrupts sources. Five interrupts are provided in 8051. Three of these interrupts are
generated automatically by internal operations: Timer flag 0, Timer flag 1, and the serial
port interrupts (RI or TI). Two interrupts are triggered by external signals provided by the
circuitry that is connected to the pins INT0 and INT1 (port pins P3.2 and P3.3).
3. What is the purpose of Interrupt priority (IP) Control register in 8051? (May 2017)
Register IP bits determine if any interrupt is to have a high or low priority. Bits set to
1 give the accompanying interrupt a high priority; a 0 assigns a low priority. If two interrupts
with the same priority occur at the same time, then they have the following ranking: IE0,
2.TF0, 3.IE1, 4.TF1, 5.Serial = RI or TI. For example, the serial interrupt could be given the
highest priority by setting the PS bit in the IP to 1, and all others to 0.
4. What is SBUF?
SBUF stands for SERIAL BUFFER. SBUF is physically two registers. One is write
only and is used to hold the data to be transmitted out of the 8051 via TXD. The other one is
read only and holds the received data from external sources via RXD. Both mutually
exclusive registers use address 99H.
6. For an 8051 system of 11.0592 Mhz, Find the time delay for the subroutine
Delay Mov r3,#250 1
16
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
HereNop 1
Nop 1
Nop 1
Nop 1
DNJZ,R3, HERE 2
RET 2
The time delay inside the HERE loop is [250(1+1+1+1+2) +3 (outside loop)] x 1.085
µs = 1630.755 µs.
9. What is the difference between watch dog timer and ordinary timer? (Nov 2013)
The watch dog timer is provided for the system to check itself and reset if it is not
functioning properly. The watch dog register is a 16 bit-counter which is incremented every
state time.
12. What are the types of sensors used for interfacing? / Give two examples of sensors
and its uses. (May 2017, Nov 2017, May 2018)
The different types of sensors that can be interfaced with microprocessors are
Temperature Sensors, IR Sensors, Ultrasonic Sensors, Touch Sensors, Proximity Sensors,
Pressure Sensors, Level Sensors, Smoke and Gas Sensors etc.
16. What is the relation between RPM and steps per second in stepper motor
interfacing?
Steps per second= (rpm × steps per revolution)/60
17. What are the different modes timer 2 can operate?(may 2019)
Details 00 01 10 11
M1 This is for Mode 0. This is Mode 1. This is Mode 2 This is Mode 3
M0 (8-bit timer/counter, (16-bit (8-bit auto (The function
with 5-bit pre- timer/counter) reload-timer/cou depends on Timer0
scaler) nter) or T
21. Write about the design steps involved in using microcontroller for stepper motor.
(May 2014)
The four leads of the stator winding are controlled by four bits of the 8051 port (P1.0-
P1.3). Since the 8051 lacks sufficient current to drive the stepper motor windings, a driver
such as ULN2003 is used to energize the stator. The ULN2003 has an internal diode to take
care of back EMF.
18
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
One of the most commonly used ADC is ADC0808. ADC 0808 is a Successive
approximation type with 8 channels i.e. it can directly access 8 single ended analog signals.
ADC0808 has an 8-bit data output. The Microcontroller 8051 is used to provide the control
signals to the ADC. The pin P2.0, P2.1 and P2.2 are connected to address pins A, B, and C to
select IN0 – IN7, and activate ALE using pin P2.4 to latch in the address. START is for the
start of conversion connected pin P2.3. EOC is for end-of-conversion connected to pin P2.6,
and OE is for output enable connected to pin P2.5. The port P1 is used as an input port which
receives the digital data from the ADC.
24. Define baud rate of 8051 using timer 1. (May 2016, Nov 2016)
8051 divides the crystal frequency by 12 to get machine cycle frequency. In case of
XTAL = 11.0592 MHz. so machine cycle here becomes 921.6 KHz. Now the 8051 UART
circuitry divides the machine cycle frequency of 921.6 KHz by 32 once more before it is used
by timer 1 to set the baud rate. So 921.6 KHz divided by 32 gives 28,800 Hz. This is the
value of frequency upon which we will perform operation to get variable baud rate. When
timer 1 is used to set baud rate it must be programmed in mode 2 8 bit auto reload. Timer 1
TH1 register values for various baud rates.
PART-B
1. Describe the different modes of operations of timer/counter in 8051 microcontroller?(Nov
2016)
2. (i)Interface the ADC converter with 8051 and explain with neat diagram. (ii) Write the
assembly language program to execute the ADC conversion. (Nov 2017)
3. Illustrate the serial communication in 8051, with its special function register.(May 2016,
Nov 2017)
4. With a neat circuit diagram explain how a 4x4 keypad is interfaced with 8051
microcontroller and write 8051 ALP for keypad scanning. (Nov 2015)
5. Draw the schematic for interfacing a stepper motor with 8051 microcontroller and write
8051 ALP for changing speed and direction of motor and also and develop program to rotate
the motor in clockwise direction. (Nov 2015, May 2014, Nov 2016, 2017)
6. Write a program for generation of unipolar square waveform 1 KHz frequency using
Timer 0 of 8051 in mode 0. Consider the system frequency as 12MHz. (May 2017, Nov
2017)
7. Develop 8051 based system design having 8Kbyte RAM to generate the triangular wave
using DAC. (May 2017)
8. Describe the different modes of timer / counter functions in 8051 Micro Controller with
its associate register.(May 2018)
9. Write and explain, what is serial port programming?(Nov 2018)
10. What are sensor interfacing and external memory interfacing? Explain.(Nov 2018)
19
EC8691-Microprocessor and Microcontroller Department of CSE & IT 2020-2021
11. How microprocessor and microcontroller are different from computer based controller?
(Nov 2018)
12. How microprocessor and microcontroller can help to control a process or machine tool?
(Nov 2018)
13. Describe how to program and interface an LCD to an 8051 using assembly language
programming.(May 2019)
14. Draw and explain the DAC interfacing using 8051?(May 2019)
15. i)Discuss the number of pin sets aside for addresses in each of the following memory
chips1)16k*4 DRAM2)16k*4SRAM
ii)Briefly explain about interfacing of 8051 with external data ROM.(May 2019)
16. With necessary diagrams explain how to interface LM35 temperature sensor and then
discuss the issues of signal conditioning .(May 2019)
20