Professional Documents
Culture Documents
Emb Final
Emb Final
Emb Final
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