Professional Documents
Culture Documents
TE E&TC
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
1. Basics of 8051 8
Motivation: ................................................................................................................ 8
Syllabus: .................................................................................................................... 8
Books Recommended:............................................................................................... 8
Objective: .................................................................................................................. 8
Theory ....................................................................................................................... 9
Outcome .................................................................................................................. 45
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Motivation:
This module introduces the student to the world of microcontrollers, including definitions,
SFRs, and a summary of what’s involved in designing and building a microcontroller project.
To enable the students to understand the need of microcontroller and its difference between
microprocessor and microcontroller and their requirements in market
Syllabus:
Sr.No Topic Fine Detailing No of Hours Weeks
Books Recommended:
1. Ayala, 8051 Microcontroller, Cengage (Thomson)
2. Mazidi & Mazidi, ‘The 8051Microcontroller & Embedded system, using Assembly and
C, 2nd edi, Pearson edu.
Objective:
This chapter enables the students to learn the basics of 8051 microcontroller, its architecture
and pin configuration. It gives knowledge about inbuilt The Timer/Counters, The serial
Interface, The Interrupt System, The Power Modes, Interfacing with various devices
Key Definitions:
1. Bit: A digit of the binary number or code is called bit. Also, the bit is the fundamental
storage unit of computer memory.
Prepared by
Ms Rupali Mane
Theory
Lecture 1
Comparison of microprocessor and microcontroller
Learning Objective: In this lecture student will able to understand basics of microcontrollers
and compare between microprocessors and microcontrollers.
1.7.1 Introduction:
A microcontroller (also microcontroller unit, MCU or µC) is a small computer on a single
integrated circuit consisting of a relatively simple CPU combined with support functions such
as a crystal oscillator, timers, watchdog, serial and analog I/O etc.
Microprocessor
1. CPU is stand-alone, RAM, ROM, I/O, timer are separate
2. designer can decide on the amount of ROM, RAM and I/O ports.
3. expensive
4. versatility
5. general-purpose
Microcontroller
1. CPU, RAM, ROM, I/O and timer are all on a single chip
2. fix amount of on-chip ROM, RAM, I/O ports
Prepared by
Ms Rupali Mane
ON-CHIP ON-CHIP
DATA PROGRAM NO. OF FULL
16-BIT
DEVICE MEMORY MEMORY VECTORED DUPLEX
TIMER/COUNTER
INTERUPTS I/O
(bytes) (bytes)
L1. Exercise:
Q.1 Explain difference between microcontroller and microprocessor
Prepared by
Ms Rupali Mane
Lecture 2
Architecture and pin functions of 8051 chip controller
Learning Objective: In this lecture student will able to draw architecture 8051
microcontrollers.
Prepared by
Ms Rupali Mane
8051 employs Harvard architecture. It has some peripherals such as 32 bit digital I/O, Timers
and Serial I/O. The basic architecture of 8051 is given in above figure
B Register: The B register is used during multiply and divide operations. For other instructions
it can be treated as another scratch pad register.
Program Status Word (PSW): The Program Status Word is used to store a number of
important bits that are set and cleared by 8051 instructions. The PSW SFR contains the carry
flag, the auxiliary carry flag, the overflow flag, and the parity flag. Additionally, the PSW
register contains the register bank select flags which are used to select which of the "R" register
banks are currently selected.
Bit No D7 D6 D5 D4 D3 D2 D1 D0
Prepared by
Ms Rupali Mane
Bit
CY AC F0 RS1 RS0 OV ----- P
Definitions
• CY: Carry Flag; used in arithmetic, JUMP, ROTATE, and BOOLEAN instructions
• AC: Auxiliary Carry flag used for BCD operations.
• F0: User defines flag. Available to the user for general purposes
• RS1, RS0: Register bank Select control bits 1 & 0. Set/cleared by software to determine
working register bank. Operation is as follows:
• P: Parity flag: Set/cleared by hardware each instruction cycle to indicate and odd/even
number of “one” bits in the accumulator, i.e., even parity.
The "R" registers: The "R" registers are a set of eight registers that are named R0, R1, etc.
up to and including R7. These registers are used as auxiliary registers in many operations. The
Accumulator alone would not be very useful if it were not for these "R" registers. The "R"
registers are also used to temporarily store values.
Stack Pointer: The Stack Pointer register is 8 bits wide. It is incremented before data is stored
during PUSH and CALL executions. While the stack may reside anywhere in on-chip RAM,
the Stack Pointer is initialized to 07H after a reset. This causes the stack to begin at location
08H.
Prepared by
Ms Rupali Mane
Ports 0 to 3: P0, P1, P2 and P3 are the SFR latches of Ports 0, 1, 2 and 3, respectively.
P0 (Port 0, Bit-Addressable): This is input/output port 0. Each bit of this SFR corresponds to
one of the pins on the microcontroller. For example, bit 0 of port 0 is pin P0.0, bit 7 is pin P0.7.
Writing a value of 1 to a bit of this SFR will send a high level on the corresponding I/O pin
whereas a value of 0 will bring it to a low level.
P1 (Port 1, Bit-Addressable): This is input/output port 1. Each bit of this SFR corresponds to
one of the pins on the microcontroller. For example, bit 0 of port 1 is pin P1.0, bit 7 is pin P1.7.
Writing a value of 1 to a bit of this SFR will send a high level on the corresponding I/O pin
whereas a value of 0 will bring it to a low level.
P2 (Port 2, Bit-Addressable): This is input/output port 2. Each bit of this SFR corresponds to
one of the pins on the microcontroller. For example, bit 0 of port 2 is pin P2.0, bit 7 is pin P2.7.
Writing a value of 1 to a bit of this SFR will send a high level on the corresponding I/O pin
whereas a value of 0 will bring it to a low level.
P3 (Port 3, Bit-Addressable): This is input/output port 3. Each bit of this SFR corresponds to
one of the pins on the microcontroller. For example, bit 0 of port 3 is pin P3.0, bit 7 is pin P3.7.
Writing a value of 1 to a bit of this SFR will send a high level on the corresponding I/O pin
whereas a value of 0 will bring it to a low level.
Serial Data Buffer: The Serial Data Buffer is actually two separate registers, a transmit buffer
and a receive buffer register. When data is moved to SBUF, it goes to the transmit buffer where
it is held for serial transmission. (Moving a byte to SBUF is what initiates the transmission.)
When data is moved from SBUF, it comes from the receive buffer.
Timer Registers: Register pairs (TH0, TL0), and (TH1, TL1), are the 16-bit counting registers
for Timer/Counters 0, and 1, respectively.
Control Registers: Special Function Registers IP, IE, TMOD, TCON, T2CON, SCON, and
PCON contain control and status bits for the interrupt system, the timer/counters, and the serial
port.
Prepared by
Ms Rupali Mane
IP (Interrupt Priority, Bit-Addressable): The Interrupt Priority SFR is used to specify the
relative priority of each interrupt. On the 8051, an interrupt may either be of low (0) priority or
high (1) priority. An interrupt may only interrupt interrupts of lower priority. For example, if
we configure the 8051 so that all interrupts are of low priority except the serial interrupt, the
serial interrupt will always be able to interrupt the system, even if another interrupt is currently
executing. However, if a serial interrupt is executing no other interrupt will be able to interrupt
the serial interrupt routine since the serial interrupt routine has the highest priority.
PCON (Power Control): The Power Control SFR is used to control the 8051's power control
modes. Certain operation modes of the 8051 allow the 8051 to go into a type of "sleep" mode
which requires much less power. These modes of operation are controlled through PCON.
Additionally, one of the bits in PCON is used to double the effective baud rate of the 8051's
serial port.
L2. Exercise:
Q.1 Explain the functions of PC,DPTR,Port 0 and Port 3.
Q.2 Draw the architecture of 8051 and explain the functions of each block
Lecture 3
Architecture and pin functions of 8051 chip controller, CPU timing and machine cycles
Prepared by
Ms Rupali Mane
TCON (Timer Control, Bit-Addressable): The Timer Control SFR is used to configure and
modify the way in which the 8051's two timers operate. This SFR controls whether each of the
two timers is running or stopped and contains a flag to indicate that each timer has overflowed.
Additionally, some non-timer related bits are located in the TCON SFR. These bits are used to
configure the way in which the external interrupts are activated and also contain the external
interrupt flags which are set when an external interrupt has occurred.
TMOD (Timer Mode): The Timer Mode SFR is used to configure the mode of operation of
each of the two timers. Using this SFR your program may configure each timer to be a 16-bit
timer, an 8-bit auto-reload timer, a 13-bit timer, or two separate timers. Additionally, you may
configure the timers to only count when an external pin is activated or to count "events" that
are indicated on an external pin.
TL0/TH0 (Timer 0 Low/High): These two SFRs, taken together, represent timer 0. Their
exact behavior depends on how the timer is configured in the TMOD SFR; however, these
timers always count up. What is configurable is how and when they increment in value.
TL1/TH1 (Timer 1 Low/High): These two SFRs, taken together, represent timer 1. Their
exact behavior depends on how the timer is configured in the TMOD SFR; however, these
timers always count up. What is configurable is how and when they increment in value.
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
The oscillator, in any case, drives the internal clock generator. The clock generator provides
the internal clocking signals to the chip. The internal clocking signals are at half the oscillator
frequency, and define the internal phases, states, and machine cycles.
Prepared by
Ms Rupali Mane
ALE: The main function of ALE is to provide a properly timed signal to latch the low byte of
an address from P0 to an external latch during fetches from external Program Memory. For that
purpose ALE is activated twice every machine cycle. This activation takes place even when
the cycle involves no external fetch.
(Enable Address): The microcontroller by default starts searching for program from
external.
program memory. PC is higher than FFFH for 8051. By applying logic zero to this pin, P2
and P3 are used for data and address transmission with no regard to whether there is internal
memory or not. It means that even there is a program written to the microcontroller, it will not
be executed. Instead, the program written to external ROM will be executed. By applying logic
one to the pin, the microcontroller will use both memories, first internal then external (if
exists).
Vcc & GND: Standard power supply to connect +5V power supply w.r.t. GND.
RST (Reset): A logic one on this pin disables the microcontroller and clears the contents of
most registers. In other words, the positive voltage on this pin resets the microcontroller. By
applying logic zero to this pin, the program starts execution from the beginning.
Prepared by
Ms Rupali Mane
The alternate functions can only be activated if the corresponding bit latch in the port SFR
contains 1. Otherwise the port pin is stuck at 0.
L3. Exercise:
Q.1 Draw Pin configuration of 8051 and state the functions of each pin
Q.2 Explain the functions of Port 3 in detail
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
The first 128 bytes of internal memory is organised as shown in figure, and is referred to as
Internal RAM, or IRAM.
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
L4. Exercise:
Q.1 Write short note on Special function Register
Q.2 Draw internal memory organization of 8051
Prepared by
Ms Rupali Mane
Port-0 Pin Structure: Port -0 has 8 pins (P0.0-P0.7). The structure of a Port-0 pin is shown in
figure
Port-0 can be configured as a normal bidirectional I/O port or it can be used for address/data
interfacing for accessing external memory. When control is '1', the port is used for address/data
interfacing. When the control is '0', the port can be used as a normal bidirectional I/O port.
Let us assume that control is '0'. When the port is used as an input port, '1' is written to the
latch. In this situation both the output MOSFETs are 'off'. Hence the output pin floats. This
high impedance pin can be pulled up or low by an external source. When the port is used as an
output port, a '1' written to the latch again turns 'off' both the output MOSFETs and causes the
output pin to float. An external pull-up is required to output a '1'. But when '0' is written to the
latch, the pin is pulled down by the lower MOSFET. Hence the output becomes zero.
When the control is '1', address/data bus controls the output driver MOSFETs. If the
address/data bus (internal) is '0', the upper MOSFET is 'off' and the lower MOSFET is 'on'. The
output becomes '0'. If the address/data bus is '1', the upper transistor is 'on' and the lower
transistor is 'off'. Hence the output is '1'. Hence for normal address/data interfacing (for external
memory access) no pull-up resistors are required.
Port-0 latch is written to with 1's when used for external memory access.
Prepared by
Ms Rupali Mane
Port-1 does not have any alternate function i.e. it is dedicated solely for I/O interfacing. When
used as output port, the pin is pulled up or down through internal pull-up. To use port-1 as input
port, '1' has to be written to the latch. In this input mode when '1' is written to the pin by the
external device then it read fine. But when '0' is written to the pin by the external device then
the external source must sink current due to internal pull-up. If the external device is not able
to sink the current the pin voltage may rise, leading to a possible wrong reading.
Port-2 Pin Structure: Port-2 has 8-pins (P2.0-P2.7). The structure of a port-2 pin is shown in
figure 4.10. Port-2 is used for higher external address byte or a normal input/output port. The
I/O operation is similar to Port-1. Port-2 latch remains stable when Port-2 pin are used for
external memory access. Here again due to internal pull-up there is limited current driving
capability.
Prepared by
Ms Rupali Mane
1. Port-3 Pin Structure: Port-3 has 8 pin (P3.0-P3.7). Port-3 pins have alternate
functions. The structure of a port-3 pin is shown in figure 4.11.
Each pin of Port-3 can be individually programmed for I/O operation or for alternate function.
The alternate function can be activated only if the corresponding latch has been written to '1'.
To use the port as input port, '1' should be written to the latch. This port also has internal pull-
up and limited current driving capability.
Prepared by
Ms Rupali Mane
L5. Exercise:
Q.1 Draw the structure Port 1 and Port 2
Q.2 Draw the structure Port 0 and Port 3
Lecture 6
Counters and timers
Learning Objective: In this lecture student will able to draw and explain counters and timers.
Prepared by
Ms Rupali Mane
In the "timer" function mode, the counter is incremented in every machine cycle. Thus, one
can think of it as counting machine cycles. Hence the clock rate is 1/12 th of the oscillator
frequency.
The operation of the timers/counters is controlled by two special function registers, TMOD
and TCON respectively.
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Prepared by
Ms Rupali Mane
Gate: This is an OR Gate enabled bit which controls the effect of on START/STOP of
Timer. It is set to one ('1') by the program to enable the interrupt to start/stop the timer. If TR1/0
in TCON is set and signal on pin is high then the timer starts counting using either internal
clock (timer mode) or external pulses (counter mode).
M1 M0 Mode Operation
Timer control (TCON): TCON is bit addressable. The address of TCON is 88H. It is partly
related to Timer and partly to interrupt.
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Bit Definition TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0
Prepared by
Ms Rupali Mane
TR1: Timer1 run control bit. Set to 1 to start the timer / counter.
IE1: Interrupt1 edge flag. Set by hardware when an external interrupt edge is detected. It is
cleared when interrupt is processed.
IT1: Interrupt1 type control bit. Set/ cleared by software to specify falling edge / low level
triggered external interrupt.
Timer Mode-0: In this mode, the timer is used as a 13-bit UP counter as follows.
The lower 5 bits of TLX and 8 bits of THX are used for the 13 bit count. Upper 3 bits of TLX
are ignored. When the counter rolls over from all 0's to all 1's, TFX flag is set and an interrupt
is generated.
The input pulse is obtained from the previous stage. If TR1/0 bit is 1 and Gate bit is 0, the
counter continues counting up. If TR1/0 bit is 1 and Gate bit is 1, then the operation of the
counter is controlled by input. This mode is useful to measure the width of a given pulse
fed to input.
Timer Mode-1: This mode is similar to mode-0 except for the fact that the Timer operates in
16-bit mode.
Prepared by
Ms Rupali Mane
Timer Mode-3: Timer 1 in mode-3 simply holds its count. The effect is same as setting TR1=0.
Timer0 in mode-3 establishes TL0 and TH0 as two separate counters.
Control bits TR1 and TF1 are used by Timer-0 (higher 8 bits) (TH0) in Mode-3 while TR0 and
TF0 are available to Timer-0 lower 8 bits(TL0).
Prepared by
Ms Rupali Mane
L6,7. Exercise:
Q.1 Explain TMOD and TCON register
Q.2 Explain in brief various timer modes of 8051 .
Lecture 7
Serial data input and output
Learning Objective: In this lecture student will able to draw and explain serial
communication of 8051.
Serial Communication:
The serial port of 8051 is full duplex, i.e., it can transmit and receive simultaneously.
The register SBUF is used to hold the data. The special function register SBUF is physically
two registers. One is, write-only and is used to hold data to be transmitted out of the 8051
via TXD. The other is, read-only and holds the received data from external sources via RXD.
Both mutually exclusive registers have the same address 099H.
Serial Port Control Register (SCON): Register SCON controls serial data
communication.
Table 1-10 SCON register format
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
1. Mode-1 (standard UART mode): In mode-1, the serial port functions as a standard
Universal Asynchronous Receiver Transmitter (UART) mode. 10 bits are transmitted
through TXD or received through RXD. The 10 bits consist of one start bit (which is
usually '0'), 8 data bits (LSB is sent first/received first), and a stop bit (which is usually
'1'). Once received, the stop bit goes into RB8 in the special function register SCON.
The baud rate is variable.
The following figure shows the way the bits are transmitted/ received.
In receiving mode, data bits are shifted into the receiver at the programmed baud rate. The data
word (8-bits) will be loaded to SBUF if the following conditions are true.
RI must be zero. (i.e., the previously received byte has been cleared from SBUF). Mode bit
SM2 = 0 or stop bit = 1. After the data is received and the data byte has been loaded into SBUF,
RI becomes one.
Timer-1 is used to generate baud rate for mode-1 serial communication by using overflow flag
of the timer to determine the baud frequency. Timer-1 is used in timer mode-2 as an auto-
reload 8-bit timer. The data rate is generated by timer-1 using the following formula.
Where,
Prepared by
Ms Rupali Mane
It can be noted that fosc/(12 X [256- (TH1)]) is the timer overflow frequency in timer mode-2,
which is the auto-reload mode.
Timer-1 can be run using the internal clock, fosc /12 (timer mode) or from any external source
via pin T1 (P3.5) (Counter mode).
Example: If standard baud rate is desired, then 11.0592 MHz crystal could be selected. To get
a standard 9600 baud rate, the setting of TH1 is calculated as follows.
Or,
Or,
In mode-1, if SM2 is set to 1, no receive interrupt (RI) is generated unless a valid stop bit is
received.
Mode-2 (Multiprocessor Mode): In this mode 11 bits are transmitted through TXD or
received through RXD. The various bits are as follows: a start bit (usually '0'), 8 data bits (LSB
first), a programmable 9th (TB8 or RB8) bit and a stop bit (usually '1').
Prepared by
Ms Rupali Mane
Mode-3 (Multi processor mode with variable baud rate): In this mode 11 bits are
transmitted through TXD or received through RXD. The various bits are: a start bit (usually
'0'), 8 data bits (LSB first), a programmable 9th bit and a stop bit (usually '1').
Mode-3 is same as mode-2, except the fact that the baud rate in mode-3 is variable (i.e., just as
in mode-1).
• Idle Mode
• Power down mode
The two power saving modes are entered by setting two bits IDL and PD in the special function
register (PCON) respectively.
L8,9. Exercise:
Q.1 Draw and explain SMOD of 8051
Q 2. Draw and explain SBUFF REGISTERs of 8051
Prepared by
Ms Rupali Mane
Lecture 8
Interrupts, Power saving modes
Learning Objective: In this lecture student will able to learn about interrupts and power
saving modes.
Interrupts Structure:
1 External–0
3 External–1
4 TF1 Timer–1(Internal)
Out of these, and are external interrupts whereas Timer and Serial port interrupts are
generated internally. The external interrupts could be negative edge triggered or low level
triggered. All these interrupt, when activated, set the corresponding interrupt flags. Except for
serial interrupt, the interrupt flags are cleared when the processor branches to the Interrupt
Service Routine (ISR). The external interrupt flags are cleared on branching to Interrupt
Service Routine (ISR), provided the interrupt is negative edge triggered. For low level triggered
external interrupt as well as for serial interrupt, the corresponding flags have to be cleared by
software by the programmer.
Prepared by
Ms Rupali Mane
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Table 4.10:
Prepared by
Ms Rupali Mane
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Prepared by
Ms Rupali Mane
Priority 1
Priority 1
Priority 1
Priority 1
Priority 1
Register PCON controls processor power down, sleep modes and serial data baud rate. Only
one bit of PCON is used with respect to serial communication. The seventh bit (b7) (SMOD)
is used to generate the baud rate of serial communication.
Bit Position D7 D6 D5 D4 D3 D2 D1 D0
Prepared by
Ms Rupali Mane
The schematic diagram for 'Power down' mode and 'Idle' mode is given as follows:
Idle Mode: Idle mode is entered by setting IDL bit to 1 (i.e., =0). The clock signal is gated
off to CPU, but not to the interrupt, timer and serial port functions. The CPU status is preserved
entirely. SP, PC, PSW, Accumulator and other registers maintain their data during IDLE mode.
The port pins hold their logical states they had at the time Idle was initiated. ALE and
are held at logic high levels.
Activation of any enabled interrupt will clear PCON.0 bit and hence the Idle Mode is exited.
The program goes to the Interrupt Service Routine (ISR). After RETI is executed at the end of
the ISR, the next instruction will start from the one following the instruction that enabled Idle
Mode.
A hardware reset exits the idle mode. The CPU starts from the instruction following the
instruction that invoked the 'Idle' mode.
Prepared by
Ms Rupali Mane
L10,11. Exercise:
Q.1 Draw and explain IE and IP REGISTERRS of 8051
Learning from the lecture ‘Interrupt and power saving modes of 8051,
Student will able to draw and explain interrupt structure of 8051 with IE and IP register
Prepared by
Ms Rupali Mane
Prepared by
Ms Rupali Mane
Answers : 1 - a , 2-c,3-c,4-d,5-b,6-c,7-d,8-b,9-d.
Outcome
This module will help students to understand the difference between microprocessor
and microcontroller, its advanced features which are inbuilt within an integrated chip making
it to be a versatile in any embedded application.
Short Questions:
1. Name three features of the 8051.
2. Give Comparison between microprocessor and Microcontroller
3. What is the major difference between the 8051 and 8052 microcontrollers?
4. Give the size of RAM. Of 8051
5. Give the size of the on-chip ROM. 8051
6. What components are normally put together with the microcontroller into a single chip?
7. Write in the difference between microprocessors and microcontroller?
8. Give and explain the formula for calculating instruction cycle time for 8051.
9. Give the important features of 8051 microcontroller?
10. What is the function of dptr register?
11. Explain the bits of psw register.
12. Explain internal and external memory organization of 8051 microcontroller.
13. What are SFRs? Why are they called as special function registers?
14. How an I/O pin can be both an input and output
15. Which port of 8051 has no alternate functions
16. Why a low address byte latch for external memory is needed?
17. Explain the bits of TCON register
18. Explain the bits of TMOD register
19. Explain the Timer/Counter control logic of 8051.
20. Explain the bits of SCON register.
21. Find the baud rate for the serial port in mode0 for a 6 MHz crystal
22. Explain in short the serial communication in 8051.
Prepared by
Ms Rupali Mane
Long Questions:
1. Explain the clock timings of 8051 in detail. Also justify the choice of resonator for the
clock generation. Give and explain the formula for calculating instruction cycle time
for 8051.
2. Explain the programmer’s model of 8051 microcontroller with emphasis on I/O port
structures and interrupt mechanism it supports.
3. Explain the pin diagram of 8051 microcontroller.
4. What are the different features available in microcontrollers as compared to
microprocessors? Explain their role in embedded system applications.
5. Explain the working of port 0, 1, 2 & 3 in detail for 8051 microcontroller.
6. Explain in detail SFRs used for controlling the timer operation of 8051 microcontroller.
7. Explain the various modes of operation of timers in 8051.
8. Explain the ‘Timer’ of ‘Counter’ mode operation of 8051 micro controller.
9. Explain in detail SFRs used for controlling the serial communication of 8051
microcontroller.
10. Explain the various modes of operation of serial port in 8051.
11. Explain the interrupt structure of 8051 microcontroller. Explain how single stepping
can be achieved.
12. Suggest the hardware scheme to increase the number of interrupting sources to be
handled by INT0 or INTl pin of 8051 and explain the working of it.
13. Write a short note on Power saving modes in 8051.
14. Justify the choice of microcontroller as against that of microprocessor for the
development of ‘embedded system’
15. Draw and Explain the port1 structure of 8051
16. Draw and Explain the port 0 structure of 8051
Prepared by
Ms Rupali Mane