You are on page 1of 1

VNIT NAGPUR

Slot: E
Department of Electronics and Communication
Date: Oct 08, 2020(Th)
Embedded Systems (Code: ECL403)
Time: 11:00–12:00
Mid-Sem Exam
Time: 1 hour B.Tech Sem-5 Weightage: 25%
Important points:

• Support your answer with an elaborate explanation and calculations.


• Support your answer with the screenshots of the simulator output and assembly code.
• Upload your answers, explanation and code document in PDF format
• Copy-paste only code in the form link on course Moodle page.
• Plagiarism in any form is highly discouraged and is subjected to heavy penalty
• For any queries, feel free to contact the instructor immediately.

1. An 8051 microcontroller with crystal frequency of 12 MHz is to be programmed using


assembly coding to determine the frequency of an unknown square wave received at a port.
(a) Using inbuilt timers, generate a square wave (with equal ON-OFF duration) of maximum
duration (delay) possible with a 16-bit timer. [CO-1,2] [10]
(b) For the signal generated in Part (a), how many cycles can be accommodated in 1 sec?
Calculate the same by programming a counter to count the number of cycles for 1 sec.
[CO-1,2] [10]
(c) For the count obtained in Part (b), calculate the % approximation error incurred in the
measurement of duration/frequency, if any, and display it on the first line of 2x16 line,
5x8 font LCD. [CO-3] [5]

End of exam

You might also like