Skip to content
EndsemMay 20232019 patternTE Electrical

Microcontrollers and Embedded Systems (MES) SPPU Endsem Question Paper May 2023

All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.

Subject code
303145A
Pattern
2019 pattern
Exam
Endsem
Session
May 2023
Max. marks
70
Time
2½ Hours
Semester
I
Paper code
[6003]-365

Printed for: T.E. (Electrical)

Instructions to the candidates

  1. Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
  2. Neat diagrams should be drwan whenever necessary.
  3. Figures to the right side indicate full marks.
  4. Use of calculator is allowed.
  5. Assume suitable data if necessary.

Questions

  1. Q1

    1. a)

      Explain the steps of PWM programming in CCP module. Find the minimum and maximum PWM frequency allowed for XTAL=10MHz.

      Also asked:Nov 2023

      [9]
    2. b)

      Find PR2, CCPR1RL, DC1B1: DC1B0 value for the following PWM frequencies with 75% duty cycle. Assume XTAL=10MHz

    3. a)

      2KHz with prescalar=16

    4. b)

      5KHz with prescalar=4

      [8]
  2. Q2

    1. a)

      Draw CCP1CON and list the steps involved in programming PIC18F458 microcontroller in capture mode.

      Also asked:May 2025 ·Nov 2023

      [9]
    2. b)

      Use PWM mode of CCP module, write a program in C for PIC18F458 to create a 2.5 MHz PWM waveform with 75% duty cycle on CCP1 pin. Assume XTAL=10MHz.

      [8]
  3. Q3

    1. a)

      Enlist interrupt registers in PIC18F458. Explain any two.

      Also asked:May 2025 ·Nov 2023

      [9]
    2. b)

      Write a C program for PIC18 toggle the LED connected to pin 7 of the PORT B every time INT0 is activated by a switch connected at INT0(RB0). Assume XTAL=10MHz. 2

      Also asked:May 2025

      [9]
  4. Q4

    1. a)

      State steps the microcontroller does perform upon activation of an interrupt.

      Also asked:Nov 2023

      [9]
    2. b)

      Write a program in C language using Timer0 to generate square wave form on PORTB.5. Assume PORT C is connected to 8 switches and PORT D to 8 LEDs and same data is being transferred from PORT C to PORT D.

      [9]
  5. Q5

    1. a)

      Explain how current is measured using PIC l8 microcontroller. Write a program to measure current and display it on PORT D.

      [8]
    2. b)

      Explain the programming of PIC 18 ADC using interrupt with suitable example.

      [9]
  6. Q6

    1. a)

      Explain features of on-board ADC of PIC18F458. Also explain in detail the functions of ADIF and ADFM bits.

      Also asked:May 2025

      [8]
    2. b)

      Draw interfacing diagram of 16x2 LCD with PIC18 microcontroller and explain the functions of various pins of LCD.

      [9]
  7. Q7

    1. a)

      Explain the interrupt flags bits used in transmission and reception modes of USART.

      [9]
    2. b)

      List the steps for programming PIC18 to receive the data serially.

      Also asked:Nov 2025 ·May 2025

      [9]
  8. Q8

    1. a)

      Write a note on SPI protocol. Also state its applications.

      [9]
    2. b)

      This part has equations that don’t show as text. Open the PDF to read it.

      [9]