## GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN ENGINEERING - SEMESTER 4 - EXAMINATION - SUMMER 2026

બ

એEબેડGLYPH&lt;c=21,font=/QPBAAA+ShrutiRegular&gt;ડ  સ ી   GLYPH&lt;c=13,font=/QPBAAA+ShrutiRegular&gt; ોGLYPH&lt;c=14,font=/QPBAAA+ShrutiRegular&gt; ા મ ન ી   રચ ન ા   સ મ . વ ો.

૦૪

| Subject Code: DI04000171                                                                                                                                              | Subject Code: DI04000171                                                                                                                                              | Subject Code: DI04000171                                                                                                                                                                                                                                                                                                                                            | Date: 15/05/2026   |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|
| Subject Name:  Microcontroller & its Applications                                                                                                                     | Subject Name:  Microcontroller & its Applications                                                                                                                     | Subject Name:  Microcontroller & its Applications                                                                                                                                                                                                                                                                                                                   |                    |
| Time: 10:30 AM TO 01:00 PM                                                                                                                                            | Time: 10:30 AM TO 01:00 PM                                                                                                                                            | Time: 10:30 AM TO 01:00 PM                                                                                                                                                                                                                                                                                                                                          | Total Marks: 70    |
| Instructions :                                                                                                                                                        | Instructions :                                                                                                                                                        | Instructions :                                                                                                                                                                                                                                                                                                                                                      |                    |
| 1. Attempt all questions.                                                                                                                                             | 1. Attempt all questions.                                                                                                                                             | 1. Attempt all questions.                                                                                                                                                                                                                                                                                                                                           |                    |
| 2. MakeSuitable assumptions wherever necessary                                                                                                                        | 2. MakeSuitable assumptions wherever necessary                                                                                                                        | 2. MakeSuitable assumptions wherever necessary                                                                                                                                                                                                                                                                                                                      |                    |
| 3. Figures to the right indicate full marks. 4. Use of simple calculators and non-programmable scientific calculators are permitted. 5. English version is authentic. | 3. Figures to the right indicate full marks. 4. Use of simple calculators and non-programmable scientific calculators are permitted. 5. English version is authentic. | 3. Figures to the right indicate full marks. 4. Use of simple calculators and non-programmable scientific calculators are permitted. 5. English version is authentic.                                                                                                                                                                                               |                    |
| Q.1                                                                                                                                                                   | (a)                                                                                                                                                                   | Define 1) Program Counter 2) Stack Pointer 3) DPTR                                                                                                                                                                                                                                                                                                                  | 03                 |
| GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૧                                                                                 | ( અ )                                                                                                                                                                 | GLYPH<c=1,font=/QPBAAA+ShrutiRegular> ય ાGLYPH<c=4,font=/QPBAAA+ShrutiRegular> ય ાિયત કરો 1) GLYPH<c=13,font=/QPBAAA+ShrutiRegular> ોGLYPH<c=14,font=/QPBAAA+ShrutiRegular> ા મ   કાઉ GLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટર  2)  GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટGLYPH<c=21,font=/QPBAAA+ShrutiRegular>ક  પ ોઇ GLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટર  3)  DPTR | ૦૩                 |
|                                                                                                                                                                       | (b)                                                                                                                                                                   | Compare microprocessor and microcontroller System.                                                                                                                                                                                                                                                                                                                  | 04                 |
|                                                                                                                                                                       | ( બ )                                                                                                                                                                 | માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોGLYPH<c=13,font=/QPBAAA+ShrutiRegular> ોસેસર અને માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ ર િસ GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટમ ન ી % ુલના કરો.                                                                                                                                    | ૦૪                 |
|                                                                                                                                                                       | (c)                                                                                                                                                                   | Explain Memory organization of 8051 microcontroller.                                                                                                                                                                                                                                                                                                                | 07                 |
|                                                                                                                                                                       | ( ક )                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                                                                                     |                    |
|                                                                                                                                                                       |                                                                                                                                                                       | 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ રન ી  મ ેમ ર+ સ ં GLYPH<c=20,font=/QPBAAA+ShrutiRegular>થ ા  સ મ . વ ો.                                                                                                                                                                                                           | ૦૭                 |
|                                                                                                                                                                       |                                                                                                                                                                       | અથવા                                                                                                                                                                                                                                                                                                                                                                 |                    |
|                                                                                                                                                                       |                                                                                                                                                                       | OR                                                                                                                                                                                                                                                                                                                                                                  |                    |
|                                                                                                                                                                       | (c)                                                                                                                                                                   | Draw and explain Pin diagram of 8051 microcontroller and explain its function.                                                                                                                                                                                                                                                                                      | 07                 |
|                                                                                                                                                                       | ( ક )                                                                                                                                                                 | 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ રન ો  િપ ન  ડાયાGLYPH<c=14,font=/QPBAAA+ShrutiRegular> ામ  દ ોરો અ ન ે સમ. વો અને તે2 ું  કાય3 સમ. વો.                                                                                                                                                                                      | ૦૭                 |
| Q.2                                                                                                                                                                   | (a)                                                                                                                                                                   | Explain control statement of If-Else , White Loop and Do-while loop.                                                                                                                                                                                                                                                                                                | 03                 |
| GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૨                                                                                 | ( અ )                                                                                                                                                                 | If-Else, while ? ૂ પ અને Do-while ? ૂ પ2ું િનયંBણ િનવેદન સમ.વો.                                                                                                                                                                                                                                                                                                               | ૦૩                 |
|                                                                                                                                                                       | (b)                                                                                                                                                                   | Explain difference between assembly language and Embedded C.                                                                                                                                                                                                                                                                                                        | 04                 |
|                                                                                                                                                                       | ( બ )                                                                                                                                                                 | એસેEબલી ભાષા અને એEબેડGLYPH<c=21,font=/QPBAAA+ShrutiRegular>ડ સી વIચેનો તફાવત સમ.વો.                                                                                                                                                                                                                                                                                           | ૦૪                 |
|                                                                                                                                                                       | (c)                                                                                                                                                                   | Explain different addressing modes of 8051 microcontroller with examples.                                                                                                                                                                                                                                                                                           | 07                 |
|                                                                                                                                                                       | ( ક )                                                                                                                                                                 | 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ રન ા  િવ િવ ધ  એ MGLYPH<c=21,font=/QPBAAA+ShrutiRegular>િસ Nગ  મ ોડન ે ઉદ ાહરણો સાથે સમ. વો.                                                                                                                                                                                            | ૦૭                 |
|                                                                                                                                                                       |                                                                                                                                                                       | અથવા                                                                                                                                                                                                                                                                                                                                                                 |                    |
|                                                                                                                                                                       |                                                                                                                                                                       | OR                                                                                                                                                                                                                                                                                                                                                                  |                    |
| Q.2 GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૨                                                                             | (a)                                                                                                                                                                   | Write an assembly program to add two 8 bit numbers and store result into accumulator.                                                                                                                                                                                                                                                                               | 03                 |
|                                                                                                                                                                       | ( અ )                                                                                                                                                                 | બે 8 બીટ નંબરો ઉમેરવા માટGLYPH<c=21,font=/QPBAAA+ShrutiRegular> એસેEબલી GLYPH<c=13,font=/QPBAAA+ShrutiRegular>ોGLYPH<c=14,font=/QPBAAA+ShrutiRegular> ામ લખો અને પRરણામને                                                                                                                                                                                                          | ૦૩                 |
|                                                                                                                                                                       |                                                                                                                                                                       | એSુETુલેટરમાં GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટોર કરો.                                                                                                                                                                                                                                                                                                               |                    |
|                                                                                                                                                                       | (b)                                                                                                                                                                   | Explain structure of Embedded C program.                                                                                                                                                                                                                                                                                                                            | 04                 |
|                                                                                                                                                                       | ( )                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                     |                    |

|                                                                                           | (c)   | Explain different operators in 8051 microcontrollers with examples                                                                                                                                                                                                                                                                                                                                               | 07   |
|-------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
|                                                                                           | ( ક ) | 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ રમ ા ં   િવ િવ ધ  ઓ પરGLYPH<c=21,font=/QPBAAA+ShrutiRegular> ટરોન ે ઉ દ ાહરણો સાથે સમ. વો.                                                                                                                                                                                                                                           | ૦૭   |
| Q.3 GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૩ | (a)   | Explain TMOD register -Timer mode Control Register of 8051 microcontroller using Timer/Counter configuration.                                                                                                                                                                                                                                                                                                    | 03   |
|                                                                                           | ( અ ) | ટાઈમર/કાઉGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટર કXGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ફગ રGLYPH<c=21,font=/QPBAAA+ShrutiRegular> શ ન ન ો  ઉ પ ય ોગ  કર+ન ે 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ ર2ું TMOD ર\જGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટર  -  ટાઈ મ ર મોડ કં"ોલ ર\જGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટર સમ. વો.                                        | ૦૩   |
|                                                                                           | (b)   | Explain steps to generate delay using timer.                                                                                                                                                                                                                                                                                                                                                                     | 04   |
|                                                                                           | ( બ ) | ટાઈમરનો ઉપયોગ કર+ને િવલંબ પેદા કરવાના પગલાં સમ.વો.                                                                                                                                                                                                                                                                                                                                                                            | ૦૪   |
|                                                                                           | (c)   | Explain modes of timer 0 and timer 1 .                                                                                                                                                                                                                                                                                                                                                                           | 07   |
|                                                                                           | ( ક ) | ટાઈમર 0 અને ટાઈમર 1 ના મો^સ સમ.વો .                                                                                                                                                                                                                                                                                                                                                                                    | ૦૭   |
| Q.3                                                                                       | (a)   | Compare TMOD and TCON register.                                                                                                                                                                                                                                                                                                                                                                                  | 03   |
| GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૩     | ( અ ) | TMOD અને TCON રaGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટરની % ુ લના કરો.                                                                                                                                                                                                                                                                                                                                               | ૦૩   |
|                                                                                           | (b)   | Explain different types of Interrupts in 8051 microcontrollers.                                                                                                                                                                                                                                                                                                                                                  | 04   |
|                                                                                           | ( બ ) | 8051 માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ રમ ા ં   િવ િવ ધ  GLYPH<c=13,font=/QPBAAA+ShrutiRegular> કારન ા િવ b ેપ ો સ મ . વો.                                                                                                                                                                                                                                                 | ૦૪   |
|                                                                                           | (c)   | Generate 1ms Delay (12MHz Crystal) using Embedded C Language.                                                                                                                                                                                                                                                                                                                                                    | 07   |
|                                                                                           | ( ક ) | એEબેડGLYPH<c=21,font=/QPBAAA+ShrutiRegular>ડ  C  ભ ાષ ાનો ઉપયોગ કર+ને 1ms િવલ ં બ (12MHz RGLYPH<c=29,font=/QPBAAA+ShrutiRegular>GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટલ) જનરGLYPH<c=21,font=/QPBAAA+ShrutiRegular>ટ કરો.                                                                                                                                                                                                 | ૦૭   |
| Q.4                                                                                       | (a)   | Explain applications of 8051 Interfacing.                                                                                                                                                                                                                                                                                                                                                                        | 03   |
| GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૪     | ( અ ) | 8051 ઇGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટરફGLYPH<c=21,font=/QPBAAA+ShrutiRegular>િસ Nગ ન ી   એ ghલ કGLYPH<c=21,font=/QPBAAA+ShrutiRegular>શ ન ો  સ મ . વ ો.                                                                                                                                                                                                                                                      | ૦૩   |
|                                                                                           | (b)   | Explain Keypad interfacing for Data Entry.                                                                                                                                                                                                                                                                                                                                                                       | 04   |
|                                                                                           | ( બ ) | ડGLYPH<c=21,font=/QPBAAA+ShrutiRegular>ટા એGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"+   મ ાટGLYPH<c=21,font=/QPBAAA+ShrutiRegular>  ક+ પ ેડ  ઇ GLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટરફGLYPH<c=21,font=/QPBAAA+ShrutiRegular>િસ Nગ   સ મ . વ ો.                                                                                                                                                                        | ૦૪   |
|                                                                                           | (c)   | Explain the interfacing of a 7-segment display with 8051. Differentiate between common anode and common cathode display.                                                                                                                                                                                                                                                                                         | 07   |
|                                                                                           | ( ક ) | 8051 સાથે 7-સેગમેGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટ RડGLYPH<c=20,font=/QPBAAA+ShrutiRegular>hલ ે2 ું  ઇGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટરફGLYPH<c=21,font=/QPBAAA+ShrutiRegular>િસ Nગ   સ મ . વ ો. સ ામ ાGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ય   એ ન ોડ અ ન ે સ ામ ાGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ય કGLYPH<c=21,font=/QPBAAA+ShrutiRegular> થોડ RડGLYPH<c=20,font=/QPBAAA+ShrutiRegular>hલ ે  વ Iચ ે તફાવત કરો. | ૦૭   |
|                                                                                           |       | અથવા OR                                                                                                                                                                                                                                                                                                                                                                                                           |      |
| Q.4                                                                                       | (a)   | Explain the function of RS,RW,EN pins of a 16X2 LCD.                                                                                                                                                                                                                                                                                                                                                             | 03   |
| GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૪     | ( અ ) | 16X2 LCD ના RS,RW,EN િપન2ું કાય3 સમ.વો.                                                                                                                                                                                                                                                                                                                                                                                | ૦૩   |
|                                                                                           | (b)   | Write an 8051 program in C to display 0-9 on a 7-segment display.                                                                                                                                                                                                                                                                                                                                                | 04   |
|                                                                                           | ( બ ) | 7-સેગમેGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટ  RડGLYPH<c=20,font=/QPBAAA+ShrutiRegular>hલ ે  પ ર  0 -9 દ શ ા3 વ વા માટGLYPH<c=21,font=/QPBAAA+ShrutiRegular> 8051 GLYPH<c=13,font=/QPBAAA+ShrutiRegular> ોGLYPH<c=14,font=/QPBAAA+ShrutiRegular> ા મ   C  લ ખ ો.                                                                                                                                                         | ૦૪   |
|                                                                                           | (c)   | Explain DC Motor Interfacing with 8051.                                                                                                                                                                                                                                                                                                                                                                          | 07   |
|                                                                                           | ( ક ) |                                                                                                                                                                                                                                                                                                                                                                                                                  | ૦૭   |

8051 સાથે ડ+સી મોટર ઇGLYPH&lt;c=17,font=/QPBAAA+ShrutiRegular&gt;ટરફGLYPH&lt;c=21,font=/QPBAAA+ShrutiRegular&gt;િસNગ સમ. વો.

| Q.5 GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular> ૫   | (a)   | Explain need for Analog to Digital Conversion (ADC) in 8051. Why is an external ADC required?                                                                                                                                                                                                                      | 03   |
|---------------------------------------------------------------------------------------------|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
|                                                                                             | ( અ ) | 8051માં એનાલોગ pુ Rડ\જટલ કGLYPH<c=17,font=/QPBAAA+ShrutiRegular>વઝ3ન (ADC)ની જsRરયાત સમ.વો. બાt ADC શા માટGLYPH<c=21,font=/QPBAAA+ShrutiRegular>  જ s ર+ છે ?                                                                                                                                                                  | ૦૩   |
|                                                                                             | (b)   | Explain role of MAX232 in BMS and its applications of BMS system.                                                                                                                                                                                                                                                  | 04   |
|                                                                                             | ( બ ) | BMS માં MAX232 ની x ૂિમકા અને BMS િસGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટમની તેની એghલકGLYPH<c=21,font=/QPBAAA+ShrutiRegular>શનો સમ.વો.                                                                                                                                                                                       | ૦૪   |
|                                                                                             | (c)   | Draw and explain Microcontroller and GSM based security system with relay.                                                                                                                                                                                                                                         | 07   |
|                                                                                             | ( ક ) | Rરલે સાથે માઇGLYPH<c=29,font=/QPBAAA+ShrutiRegular>ોકGLYPH<c=17,font=/QPBAAA+ShrutiRegular>"ોલ ર અ ન ે a એ સએમ આ ધાRરત z ુ રbા િસGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટમ દોરો અને                                                                                                                                               | ૦૭   |
|                                                                                             |       | સમ.વો.                                                                                                                                                                                                                                                                                                              |      |
|                                                                                             |       | અથવા                                                                                                                                                                                                                                                                                                                |      |
| Q.5 GLYPH<c=1,font=/QABAAA+BalooBhai2Regular> GLYPH<c=2,font=/QABAAA+BalooBhai2Regular>     | (a)   | State the applications of temperature control system.                                                                                                                                                                                                                                                              | 03   |
| ૫                                                                                           | ( અ ) | તાપમાન િનયંBણ GLYPH<c=13,font=/QPBAAA+ShrutiRegular>ણાલીનો ઉપયોગ જણાવો.                                                                                                                                                                                                                                                      | ૦૩   |
|                                                                                             | (b)   | Draw and explain the block diagram a temperature control system using 8051 and LM35.                                                                                                                                                                                                                               | 04   |
|                                                                                             | ( બ ) | 8051 અને LM35 નો ઉપયોગ કર+ને તાપમાન િનયંBણ િસGLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટમ {લોક ડાયાGLYPH<c=14,font=/QPBAAA+ShrutiRegular>ામ દોરો અને સમ.વો.                                                                                                                                                                             | ૦૪   |
|                                                                                             | (c)   | Draw and explain the working of solar tracking system using LDR, stepper motor and 7 segment display.                                                                                                                                                                                                              | 07   |
|                                                                                             | ( ક ) | LDR, GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટGLYPH<c=21,font=/QPBAAA+ShrutiRegular>પ ર  મ ોટર  અ ન ે  7 સ ેગ મ ેGLYPH<c=17,font=/QPBAAA+ShrutiRegular>ટ  RડGLYPH<c=20,font=/QPBAAA+ShrutiRegular>hલ ેન ો  ઉ પ ય ોગ  કર+ન ે સ ોલ ર "GLYPH<c=21,font=/QPBAAA+ShrutiRegular>RકNગ  િસ GLYPH<c=20,font=/QPBAAA+ShrutiRegular>ટમ ન ી | ૦૭   |

કામગીર+ દોરો અને સમ.વો.

*****