0% found this document useful (0 votes)
77 views

MCQ On Microcontrollers and Applications

This document contains 10 multiple choice questions and answers about pulse width modulation (PWM) and microcontroller serial peripheral interface (SPI) and inter-integrated circuit (I2C) communication. Specifically, it addresses where compare level occurs for 16-bit contents in compare mode, why PWM outputs are required, how PWM resolution and period affect output variations, components to filter in a low-pass filter corresponding to PWM period, control bits that select slave select mode and data sampling, which bit enables SPI synchronization, value of bits to enter SPI slave mode, bits that determine I2C bit rate, and command for I2C input threshold selection.

Uploaded by

SiddhanT Op
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

MCQ On Microcontrollers and Applications

This document contains 10 multiple choice questions and answers about pulse width modulation (PWM) and microcontroller serial peripheral interface (SPI) and inter-integrated circuit (I2C) communication. Specifically, it addresses where compare level occurs for 16-bit contents in compare mode, why PWM outputs are required, how PWM resolution and period affect output variations, components to filter in a low-pass filter corresponding to PWM period, control bits that select slave select mode and data sampling, which bit enables SPI synchronization, value of bits to enter SPI slave mode, bits that determine I2C bit rate, and command for I2C input threshold selection.

Uploaded by

SiddhanT Op
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

For More Questions Click Here

1) Where does the comparison level occur for 16-bit contents in the compare mode
operation?

a. Between CCPR1 register & TMR1


b. Between CCPR1 & CCPR2 registers
c. Between CCPR2 register & TMR1
d. Between CCPR2 register & TMR0

ANSWER: (a) Between CCPR1 register & TMR1

2) Why are the pulse width modulated outputs required in most of the applications?

a. To control average value of an input variables


b. To control average value of output variables
c. Both a & b
d. None of the above

ANSWER: (b) To control average value of output variables

3) What would be the resolution value if oscillator and PWM frequencies are 16MHz
and 2 MHz respectively?

a. 2
b. 3
c. 4
d. 8

ANSWER: (b) 3

4) How do the variations in an average value get affected by PWM period?

a. Longer the PWM period, faster will be the variation in an average value
b. Shorter the PWM period, faster will be the variation in an average value
c. Shorter the PWM period, slower will be the variation in an average value
d. Longer the PWM period, slower will be the variation in an average value

ANSWER: (b) Shorter the PWM period, faster will be the variation in an average value

5) Which among the below stated components should be filtered for determining the
cut-off frequency corresponding to the PW period of low-pass filter?

a. Fundamental F & higher harmonics


PWM

b. Resonant F & higher harmonics


PWM

c. Slowly Varying DC components


d. Slowly Varying AC components

ANSWER: (a) Fundamental F PWM & higher harmonics


6) Which among the below stated conditions are selected by the SSPCON & SSPSTAT
control bits?

a. Slave Select mode in slave mode


b. Data input sample phase
c. Clock Rate in master mode
d. All of the above

ANSWER: (d) All of the above

7) Which bit of SSPCON must be necessarily set so as to enable the synchronization of


serial port?

a. WCOL
b. SSPOV
c. CKP
d. SSPEN

ANSWER: (d) SSPEN

8) What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave
mode by enabling SS pin control?

a. 0000
b. 0100
c. 0010
d. 0001

ANSWER: (b) 0100

9) Which bits assist in determining the I C bit rate during the initialization process of
2

MSSP module in I C mode?


2

a. SSPADD
b. SSPBUF
c. Both a & b
d. None of the above

ANSWER: (a) SSPADD

10) Which command/s should be essentially written for I C input threshold selection
2

and slew rate control operations?

a. SSPSTAT
b. SSPIF
c. ACKSTAT
d. All of the above

ANSWER: (a) SSPSTAT

You might also like