Emb Final

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Institute of Space Technology Islamabad

Lab: Embedded Systems Exam: Final

Date: july26, 2020

Q#1

Examine the program and find the time delay in seconds for timer0(16-bit). The
oscillator frequency is 4MHZ You can consult datasheet to identify the timer
control bits in different registers related to timer0. Justify your answer

Q#2

Design a 4_bit counter with two control switches A&B that counts up(0-9) when
both A and B are high and counts down(9-0) when both switches are low . If
both switches are at opposite state the counter should rest to zero.
Q#3

Examine the sample code below and find out the attributes of the PWM wave
generated .justify your Answer

Q#4

Write down the sample program in Q#3 in C language

You might also like