CS3691 Important Questions
CS3691 Important Questions
CS3691 Important Questions
8-Bit Microcontroller – Architecture – Instruction Set and Programming – Programming Parallel Ports –
Timers and Serial Port – Interrupt Handling.
Important questions
PART – A
1. Define microcontroller ? and its applications.
A microcontroller is a compact integrated circuit designed to govern a specific operation in an
embedded system. A typical microcontroller includes a processor, memory and input/output (I/O)
peripherals on a single chip.
Application of Microcontroller
Light sensing & controlling devices.
Temperature sensing and controlling devices.
Fire detection & safety devices.
Industrial instrumentation devices.
Process control devices.
2. Define 8051 microcontroller ? and its applications.
8051 microcontroller is designed by Intel in 1981. It is an 8-bit microcontroller. It is built with 40
pins DIP (dual inline package), 4kb of ROM storage and 128 bytes of RAM storage, 2 16-bit
timers.
3.Compare : microprocessor and microcontroller?[ NOV / DEC 2021]
S.NO Microprocessor Microcontroller
1.
Microprocessor is the heart of Micro Controller is the heart of an
Computer system. embedded system.
4.Which register has the SMOD bit, and what is its status when the 8051 is powered up?. [NOV /
DEC 2021]
It is 8-bit register. When 8051 is powered up, SMOD is zero.By setting the SMOD, baud rate
can be doubled. If SMOD = 0 (which is its value on reset), The SMOD Bit in the PCON Register is used
to control the Baud Rate of the Serial Port. There are two general purpose Flag Bits in the PCON Register, which can
be used by the programmer during execution.
5.Give the format of the register PSW of 8051 and name each it .[ NOV / DEC 2019]
6.Define the operating model 0 of 8051 serial ports.?[ NOV / DEC 2020 AND APRIL /
MAY 2021]
Mode 0: In this mode, the serial port works like a shift register and the data transmission works
synchronously with a clock frequency of fosc /12. Serial data is received and transmitted through
RXD. 8 bits are transmitted/ received at a time.
9 . What are the interrupts of 8051? And high light any two functions ? [ NOV / DEC 2019,
APR / MAY 2019]
4 Serial When the last bit (stop bit) of a byte is transmitted, the
communication TI serial interrupt flag is set, and when the last bit (stop
interrupt - RI/TI bit) of the receiving data byte is received, the RI flag
gets set.
12.How does 8051 differentiate between bit and byte addresses in its internal ram ? [ NOV
/ DEC 2019] .
The 8051 has a bit-addressable area of 16 bytes from byte addresses 20H to 2FH in internal
RAM as shown in fig b, forming a total of 128 addressable bits (i.e., 16-byte location × 8 bits).
Each bit can be accessed by its bit addresses from 00H to 7FH for the byte address location 20H
to 2FH in RAM.
13.Give the format and list the function of the instruction DJNZ for 8051. [ NOV / DEC 2019,
APR / MAY 2017]
An instruction DJNZ reg, label is used to perform a Loop operation. In this instruction, a register
is decremented by 1; if it is not zero, then 8051 jumps to the target address referred to by the
label. The register is loaded with the counter for the number of repetitions prior to the start of the
loop.
14. Explain the operating mode 0 of 8051 ports. [ MAY / JUNE 2016]
Mode 0: In this mode, the serial port works like a shift register and the data transmission works
synchronously with a clock frequency of fosc /12. Serial data is received and transmitted through
RXD. 8 bits are transmitted/ received at a time.
23. What are bit manipulation instructions give two examples ?[ APRIL / MAY 2017]
The bit related operations that will be performed on that data, are as follows −
Complement bit b2
Move b5to b4
OR b0and complement of b1 and store to C (b7)
Set b6
Reset bit b3
Input is AEH
BitPosition b7 b6 b5 b4 b3 b2 b1 b0
Value 1 0 1 0 1 1 1 0
Output
BitPosition b7 b6 b5 b4 b3 b2 b1 b0
Value 0 1 1 1 0 0 1 0
The output will be 72H
Program
MOV24H,10H;Copy item from 10H to 24H
CPL24.2;Complement bit b2
MOVC,24.5;Copy b5 to C
MOV24.4,C;Move C to b4
MOVC,24.0;Make copy of b0 to C
ORLC,/1;OR C and complement of b1
SETB24.6;Set bit b6
CLR24.3;Reset bit b3
MOV30H,24H; Store the result at 30H
HALT: SJMP HALT
In Intel 8051, there are two 16-bit timer registers. These registers are known as Timer0
andTimer1. The timer registers can be used in two modes. These modes areTimer mode and the
Counter mode.
26. state how baud rate is calculated for searial adta transfer in mode 1? [NOV/DEC 2019]
Serial data is received and transmitted through RXD. 8 bits are transmitted/ received at a time. Pin
TXD outputs the shift clock pulses of frequency fosc /12, which is connected to the external
circuitry for synchronization. The shift frequency or baud rate is always 1/12 of the oscillator
frequency.
28.Differnce between Timer and counter ?draw the diagram of TCON in 8051? [NOV/DEC
2019]
S.no TIMER COUNTER
1 A timer uses the frequency of the A counter uses an external signal to count
internal clock, and generates delay. pulses.
2 These enable to precisely time A counter converts the number of input cycles
processes, generate signals and to a binary value using an array of triggers.
count events
29. what is the significance if EA pin
Pin 30 − This is EA pin which stands for External Access input. It is used to enable/disable
the external memory interfacing. Pin 31 − This is ALE pin which stands for Address Latch
Enable. It is used to demultiplex the address-data signal of port.
PART –B
1. Explain the Block diagram of 8051 ? or Explain the architecture of 8051? [MAY/ JUNE
2016 , NOV / DEC 2016, NOV / DEC 2017 ,APRIL/ MAY 2018, , NOV / DEC 2021,
APRIL/ MAY 2018, APRIL/ MAY 2021,]
2. What are the vectored interrupt of 8051? [ NOV / DEC 2019]
3. Explain the Data transfer , Arithmetic and branch instructions with examples . [MAY/
JUNE 2019].
4. Explain the Serial Port Programming with examples .[MAY/ JUNE 2016] (or). Ilustrate
the serial communication in 8051 , with its special function register.
[ NOV / DEC 2017]
5. Describe the different modes of operation of Timer/Counter in 8051 with its associated
registers (or)Explain the timer modes of 8051 microcontroller ? [NOV / DEC 2016,
APRIL/ MAY 2017,APRIL/ MAY 2018, NOV / DEC 2019].
(Or) Illustrate the options available with Timer Mode (TMOD) register of 8051.
[ NOV / DEC 2021]
6. Discuss the ports and its circuits of 8051 ?[ NOV / DEC 2017]
7. List the various instructions available in 8051 microcontroller. [APRIL/ MAY 2021,
NOV / DEC 2017]
PART-A
Memory Interface means an interface, or portion thereof, between a logic integrated circuit and a
memory integrated circuit, whereby interface shall mean an electrical bus or other similar
information path between integrated circuits that is capable of transmitting and/or receiving
information between two or more.
3. Define I/O device interfacing
I/O interfaces are the mediums in which data are sent from internal logic to external sources and from
which data are received from external sources. The interface signals can be unidirectional or
bidirectional, single-ended or differential and could follow one of the different I/O standards.
4. Define Watch dog ?
A watchdog timer (WDT) is a timer that monitors microcontroller (MCU) programs to see if they are
out of control or have stopped operating. It acts as a “watchdog” watching over MCU operation.
5. List the advantages and limitations of Priority based process scheduling. [NOV/DEC 2017]
1. Good way to ensure processes with Processes with lower priority may be
higher priorities are handled first starved
2. Good when the resources are limited Difficult to objectively decide which
and priorities for each process are processes are given higher priority
defined beforehand
Context Switching involves storing the context or state of a process so that it can be reloaded
when required and execution can be resumed from the same point as earlier. This is a feature of a
multitasking operating system and allows a single CPU to be shared by multiple processes
7. List the memory devices used in the design of embedded system ?or What are the memory
devices used in the design of embedded system ? [NOV/DEC 2018, NOV/DEC 2017]]
Types of Memory , Volatile Memory, Random Access Memory (RAM) Static Random Access
Memory (SRAM) , Dynamic Random Access Memory (DRAM), Non-volatile memory. EEPROM, .
Flash memory ,SD card.
8. How does priority scheduling improve multitask execution ? [APR/MAY 2019]
Following are the benefits of priority scheduling method:
1. Easy to use.
2. Processes with higher priority execute first which saves time.
3. The importance of each process is precisely defined.
4. A good algorithm for applications with fluctuating time and resource requirements.
11.Bring out the difference between multiple process and multiple task ? [NOV/DEC 2019]
S.N
O
Multi-tasking Multiprocessing
The availability of more than one processor per
system, that can execute several set of
The execution of more than one task instructions in parallel is known as
1. simultaneously is known as multitasking. multiprocessing.
2. The number of CPU is one. The number of CPUs is more than one.
3. In this, one by one job is being executed at In this, more than one process can be executed
a time. at a time.
Variables in C programming language, which Arduino uses, have a property called scope. A scope
is a region of the program and there are three places where variables can be declared
19. What are Arduino – Operators?
An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C
language is rich in the following types of operators −
• Arithmetic Operators
• Comparison Operators
• Boolean Operators
• Bitwise Operators
• Compound Operators
. A sketch is the name that Arduino uses for a program. It's the unit of code that is uploaded to and
run on an Arduino board.
PART-B