Question Bank & 2 Marks Materials
Question Bank & 2 Marks Materials
QUESTION BANK
4. Which register has the SMOD bit, and what is its status when the 8051 is
powered up?
The SMOD bit is located in the PCON (Power Control) register in the 8051
microcontroller. This bit is used to double the baud rate of the serial communication when
set to 1.
SMOD Bit Details:
Register: PCON (Power Control Register)
Bit Position: SMOD is bit 7 of the PCON register (most significant bit).
1
Status on Power-Up:
When the 8051 is powered up, the SMOD bit is cleared to 0 by default. This means the
baud rate is not doubled initially, and the serial communication operates at its standard baud
rate until the SMOD bit is manually set by the program.
5. Give the format of the register PSW of 8051 and name each it.
SBUF register: It is an 8-bit register used for serial communication in the 8051
microcontrollers. For a byte of data to be transferred via the transmitted line, it must be
placed in the SBUF Register.
8. Write a program to find the 2’s complement using 8051? [ NOV / DEC 2020
AND APRIL / MAY 2021]
2000 LHLD 3000H 2A Load HL pair data from 3000h
2001 00
2002 30
2003
2004 MOV A,L 7D Move the low-order result from reg.A TO Reg. L
L 2005 MOV L,A 6F Move the result from reg.L TO Reg.A
2006 MOV A,H 7C Move the higher order from reg.H to reg.A
2007 CMA 2F compliment accumulator
2008 MOV H,A 67 Move the result from reg.A TO Reg.H
2009 INX H 23 Increment HL pair to find 2’s compliment
200A SHLD 3002H Store the result at address 3002H
200B 02
2
200C 30
200D HLT 76 HALT
OUTPUT:
1. Before execution:
3000H:12H
3001H:05H
2. After execution:
3002H: EEH
3003H: FAH
9. What are the interrupts of 8051? And high light any two functions?
3
11. Explain the interrupts of 8051 microcontroller?
12. How does 8051 differentiate between bit and byte addresses in its internal RAM?
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. How does 8051 differentiate between bit and byte addresses in its internal RAM?
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.
14. Give the format and list the function of the instruction DJNZ for 8051.
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.
4
15. Explain the operating mode 0 of 8051 ports.
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.
Pin 29 − This is PSEN pin which stands for Program Store Enable. It is used to
read a signal from the external program memory. Pin 30 − This is EA pin which stands for
External Access input. It is used to enable/disable the external memory interfacing.
18. List the advantages and disadvantages of parallel communication over serial
communication in 8051?
Serial mode offers the advantage of fewer traces on the pc board, and fewer pins
on the devices. Parallel offers the advantage of transferring 8 data bits per I/O clock cycle,
but at the disadvantage of many more pins required on the devices.
Baud Rate is defined as the data transmission rate that determines the symbols per
second for serial communication. It is the number of symbols transmitted per second. It is
also known as symbol rate and is denote by s (baud rate in 8051 is 11.0592 MHz).
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
6
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
27. State how baud rate is calculated for serial data transfer in mode 1?
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.
29. Difference between Timer and counter ?draw the diagram of TCON in 8051?
S.No TIMER COUNTER
A timer uses the frequency of the A counter uses an external signal to count
1
internal clock, and generates delay. pulses.
These enable to precisely time
A counter converts the number of input cycles
2 processes, generate signals and
to a binary value using an array of triggers.
count events
7
30. 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
8
UNIT 2- EMBEDDED C PROGRAMMING
PART-A
9
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 ?
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?
An RTOS will often be used when there are more interrupt sources, more functions,
and more standard communications interfaces that need to be supported. If the application
is <64KB in size, an RTOS is not necessary. Conversely if, the applications is 1 MB, an
RTOS will likely be used.
17. When RTOS necessary and when it is not necessary in the Embedded system?
An RTOS is necessary when scheduling of Multiple processors. An RTOS is must to monitor
the processors that are response controlled and event controlled processors.
11
PART-B
12
UNIT III - IOT AND ARDUINO PROGRAMMING
PART A
1. Draw the logic design of IOT and describe its components?
A logical design for an IoT system is the actual design of how its components (computers,
sensors, and actuators) should be arranged to complete a particular function. It doesn't go into the
depth of describing how each component will be built with low-level programming specifics.
2. What is Raspberry PI ?
Raspberry Pi is a low-cost, credit card-sized computer that connects to a computer monitor or
TV using HDMI, and uses a standard keyboard and mouse. It can run a host of operating systems,
such as Raspbian, Android, Windows 10, IoT Core,etc.
4. What is Python?
Most automation, data mining, and big data platforms rely on Python. Python supports
modules and packages, which encourages program modulation and code reuse.
13
6. What is GND in GPIO ?
GND means ground pins. Ground GPIO pins are physical numbers 6, 9, 14, 20, 25, 30, 34
and 39.Define Raspberry PI hardware. Ans.: Raspberry Pi hardware includes ARM processor, GPU,
RAM and USB port
Raspbian is a free operating system based on Debian optimized for the Raspberry Pi
hardware. An operating system is the set of basic programs and utilities that make your Raspberry
Pi run • As Raspbian is a Linux operating system it has good security features, has excellent
networking capabilities. Raspbian is highly optimized for the Raspberry Pi line's low-performance
ARM CPUs.
Most common protocols MQP. Short for Advanced Message Queuing Protocol, AMQP is
an open standard protocol used for more message-oriented middleware.
Bluetooth and BLE. Bluetooth is a short-range wireless technology that uses short-
wavelength, ultrahigh-frequency radio waves.
1. Cellular.
2. CoAP.
3. DDS.
4. LoRa and LoRaWAN.
5. LWM2M.
6. MQTT.
In summary, Arduino has a simpler software environment that is well-suited for basic
control of inputs and outputs, while Raspberry Pi has a more powerful and versatile
operating system that provides greater functionality for complex projects.
14
12. Point out the challenges faced by Internet of Things.
Security. In our opinion, security is the most crucial issue that needs to be addressed for IoT.
Costs.
Reliability and Hardware.
Ease of Integration.
Connectivity.
Development Skill set.
Quality Control Design
15
PART –B
1. Briefly explain the Technical Building blocks of IoT,
4. Explain the Sensors and sensor Node and interfacing using any Embedded target
boards RaspberryPi.
5. Explain about Arduino shields.
6. Explain the types of Arduino in detail.
16
UNIT IV
3. What is Bluetooth?
An important short-range IoT communications Protocols / Technology. Bluetooth, which has
become very important in computing and many consumer product markets. It is expected to be key
for wearable products in particular, again connecting to the IoT albeit probably via a smartphone in
many cases.
4. What is Zigbee?
ZigBee is similar to Bluetooth and is majorly used in industrial settings. It has some significant
advantages in complex systems offering low-power operation, high security, robustness and high
and is well positioned to take advantage of wireless control and sensor networks.
5. Define NFC
NFC (Near Field Communication) is an IoT technology. It enables simple and safe
communications between electronic devices, and specifically for smartphones, allowing consumers
to perform transactions in which one does not have to be physically present.
6. What is Piconet?
The Bluetooth network is called a piconet. If it contains one master and one slave then its called
a single piconet. Similarly, if it contains one master and multiple slaves are called multiple piconets.
7. Define Scatternet
Its a Combination of multiple piconets.
Here Master of one piconet can be a slave in another piconet
18
18. What is Operation and Support Subsystem (OSS)?
The operation supports subsystem (OSS) is a part of the complete GSM network architecture.
This is connected to the NSS & the BSC components. This OSS is mainly used to control the GSM
network & the BSS traffic load.
PART B
1. Explain GSM services and its architecture in detail
19
UNIT V APPLICATIONS DEVELOPMENT
PART A
20
7. Define Application specific integrated circuit.
ASIC is an integrated circuit designed to perform task specific operation inside an embedded
system.
21
15. Write the applications of IOT in Smart Retail
IoT applications in retail give shoppers a new experience. Customers do not have to stand in
long queues as the checkout system can read the tags of the products and deduct the total amount
from the customer's payment app with IoT applications' help.
PART B
1. Explain the Complete Design of Embedded Systems.
2. Explain the Development of IoT Applications.
3. Write a program for Home Automation and explain.
4. Write a program –Smart Agriculture and explain with relevant diagrams.
5. Write a program Smart Cities and explain.
6. Write a program Smart Healthcare. and explain with relevant diagrams.
22