NEW
Font size
WorksheetsMicrocontroller Quiz
Total questions: 60
Worksheet time: 30mins
How many ports are there in 8051?
2
4
6
8
What is the size of the accumulator in 8051?
8 bits
16 bits
32 bits
64 bits
Which pins are used as the data bus in 8051?
P0.0-P0.7
P1.0-P1.7
P2.0-P2.7
P3.0-P3.7
Which pin is used as the transmit data in 8051?
TXD
RXD
P3.0
P3.1
What is the primary function of the ALU in 8051?
To perform arithmetic operations
To perform logical operations
To perform both arithmetic and logical operations
To store data
Which logical operation can be performed by the ALU in 8051 using the ANL instruction?
AND
OR
XOR
NOT
What is the purpose of the carry flag (CY) in the ALU of 8051?
To store the result of an arithmetic operation
To store the result of a logical operation
To indicate a carry or borrow in an arithmetic operation
To indicate an overflow in an arithmetic operation
What is the primary function of the Program Counter (PC) in 8051?
To store data
To store instructions
To keep track of the current program address
To perform arithmetic operations
How does the Program Counter (PC) increment in 8051?
Automatically after each instruction
Manually by the programmer
Only during a jump instruction
Only during a call instruction
What is the function of the pull-up resistors in the I/O ports of 8051?
To pull the input signals high
To pull the output signals low
To reduce the power consumption
To increase the speed of operation
What is the primary function of the serial port in 8051?
To transmit and receive data serially
To transmit and receive data in parallel
To perform arithmetic operations
To store data
How many timers does the 8051 microcontroller have?
1
2
3
4
What is the total number of instructions in the 8051 instruction set?
100
111
255
256
Which type of instruction is used to transfer data between registers in 8051?
Arithmetic instruction
Logical instruction
Data transfer instruction
Control instruction
What is the function of the MOV instruction in 8051?
To perform arithmetic operations
To perform logical operations
To transfer data between registers
To control the program flow
Which instruction is used to move the contents of the accumulator to a register in 8051?
MOV A, Rn
MOV Rn, A
MOV A, #data
MOV DPTR, #data
What is the function of the MOVC instruction in 8051?
To move the contents of the accumulator to a register
To move the contents of a register to the accumulator
To move a byte of data from the code memory to the accumulator
To move a byte of data from the external data memory to the accumulator
What is the function of the MOVX instruction in 8051?
To move the contents of the accumulator to the external data memory
To move the contents of the external data memory to the accumulator
To move the contents of a register to the external data memory
To move the contents of the external data memory to a register
What is the function of the ANL instruction in 8051?
To perform a bitwise AND operation
To perform a bitwise OR operation
To perform a bitwise XOR operation
To perform a bitwise NOT operation
What is the function of the CLR A instruction in 8051?
To clear the accumulator
To set the accumulator
To complement the accumulator
To increment the accumulator
Which instruction is used to set a specific bit in a register in 8051?
SETB
CLR
ANL
ORL
What is the purpose of the branching instructions in 8051?
To perform arithmetic operations
To perform logical operations
To transfer control to a different part of the program
To handle interrupts
Which instruction is used to jump to a label in 8051?
LJMP
SJMP
AJMP
JMP
Which instruction is used to jump to a label if the carry flag is set in 8051?
JC
JNC
JZ
JNZ
Which SFR is used to store the high byte of the Timer 0 value in 8051?
TH0
TL0
TMOD
TCON
What happens when two or more interrupts have the same priority level?
The interrupt with the highest priority is serviced first
The interrupt with the lowest priority is serviced first
The interrupts are serviced simultaneously
The interrupts are ignored
What is the primary function of the TCON register in 8051?
To configure the timer modes
To control the timer operations
To store the timer values
To handle interrupts
Which bit of the TCON register is used to enable or disable the timer interrupts?
TF0
TF1
IE0
IE1
What is the primary function of the TMOD register in 8051?
To control the timer operations
To configure the timer modes
To store the timer values
To handle interrupts
Which bits of the TMOD register are used to select the timer mode?
TF0 and TF1
TR0 and TR1
Gate and C/T
M0 and M1
What is the relationship between the IP Register and the IE (Interrupt Enable) Register?
The IP Register sets the priority of interrupts, while the IE Register enables or disables interrupts
The IP Register enables or disables interrupts, while the IE Register sets the priority of interrupts
What is the primary function of the SCON register in 8051?
To configure the serial communication mode
To control the serial data transmission
To store the serial data received
To handle serial communication interrupts
Which bits of the SCON register are used to select the serial communication mode?
SM0 and SM1
SM2 and SM3
REN and TB8
RB8 and TI
Which bit of the SCON register is used to indicate the serial data transmission status?
TI
RI
SM0
SM1
What is the primary function of the PCON register in 8051?
To configure the serial communication mode
To control the power management
To store the program counter value
To handle interrupts
Which bit of the PCON register is used to enable or disable the idle mode?
PD
IDL
GF0
GF1
What is the IC 8255 also known as?
Programmable Peripheral Interface (PPI)
Programmable Interrupt Controller (PIC)
Programmable Timer/Counter (PTC)
Programmable Memory Interface (PMI)
What are the three ports of the IC 8255?
Port A, Port B, and Port C
Port 1, Port 2, and Port 3
Port X, Port Y, and Port Z
Port 0, Port 1, and Port 2
What are the three modes of operation of the IC 8255?
Mode 0, Mode 1, and Mode 2
Mode A, Mode B, and Mode C
Mode X, Mode Y, and Mode Z
Mode 1, Mode 2, and Mode 3
What is the primary function of a Seven Segment LED Display?
To display alphanumeric characters
To display numeric characters only
To display graphics and images
To display video signals
What is the application of a Seven Segment LED Display?
In calculators and digital watches
In digital clocks and timers
In electronic scoreboards and displays
All of the above
What is the purpose of the RS (Register Select) pin in an LCD interface?
To select the register to be written to
To select the register to be read from
To enable or disable the LCD display
To set the LCD display mode
What is the purpose of the DB0-DB7 pins in an LCD interface?
To provide a clock signal
To provide a data signal
To select the register to be written to
To enable or disable the LCD display
What is the primary function of a stepper motor interface?
To control the speed of the stepper motor
To control the direction of the stepper motor
To control the step angle of the stepper motor
To provide a user interface
What is the primary function of an ADC interface?
To convert digital signals to analog signals
To convert analog signals to digital signals
To amplify analog signals
To filter analog signals
Which of the following is a common sensor interface protocol?
SPI (Serial Peripheral Interface)
I2C (Inter-Integrated Circuit)
UART (Universal Asynchronous Receiver-Transmitter)
All of the above
What is the purpose of the driver circuit in a relay interface?
To amplify the control signal
To isolate the control circuit
To limit the current to the relay coil
All of the above
What is the purpose of debouncing in a keyboard interface?
To filter out noise and false key presses
To amplify the keyboard signals
To control the keyboard's LED indicators
To provide power to the keyboard
What is Arduino?
A programming language
A microcontroller board
A software framework
All of the above
What is the programming language used for Arduino?
C
C++
Java
Python
What is a common application of Arduino in robotics?
Motor control
Sensor integration
Autonomous navigation
All of the above
Which of the following is a type of Arduino board?
Arduino Uno
Arduino Mega
Arduino Nano
All of the above
Which of the following is a type of communication interface available on Arduino boards?
Serial communication (UART)
Internet communication (Ethernet or Wi-Fi)
Wireless communication (Bluetooth or Zigbee)
All of the above
Which of the following is responsible for collecting data from the environment in an IoT system?
Microcontroller
Sensor
Actuator
Cloud Server
What is the purpose of the microcontroller in an IoT system?
To collect data from sensors
To control actuators
To process data and make decisions
All of the above
Which of the following is responsible for performing actions based on the data collected by sensors in an IoT system?
Microcontroller
Sensor
Actuator
Cloud Server
What is the purpose of the cloud server in an IoT system?
To collect data from sensors
To control actuators
To process and analyze data
To provide internet connectivity
What is a major concern in IoT ethics regarding data collection?
Data accuracy
Data security
Data ownership
Data privacy
Which of the following is an example of an IoT application in the industrial sector?
Predictive maintenance
Quality control
Supply chain management
All of the above
Which of the following is an example of an IoT device?
Smartphone
Laptop
Smart thermostat
All of the above
