0% found this document useful (0 votes)
145 views1 page

I I. - II I I Time: Assuming

The document provides a series of questions about programming timers on a microcontroller to generate time delays and square waves at different frequencies. The questions vary the crystal oscillator frequency (XTAL) and ask to find the timer settings needed to achieve particular time delays or frequencies using different timer modes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views1 page

I I. - II I I Time: Assuming

The document provides a series of questions about programming timers on a microcontroller to generate time delays and square waves at different frequencies. The questions vary the crystal oscillator frequency (XTAL) and ask to find the timer settings needed to achieve particular time delays or frequencies using different timer modes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

21. Assume that XTAL = 16 MHz.

Find the TH I,TL I value to generate a time


delay of 5 ms. Timer I is programmed in mode I. .
.
22. Assuming t at h XTAL -
-. II 0592 MHz., program Timer 0 to generate a time
delay of 2.5 ms.
23. Assuming that XTAL = 11.0592 MHz, program Timer I to generate a time
delay of 0.2 ms. .
24. A suming that XTAL = 20 MHz, program Timer I to generate a time delay of
100 ms.
25. Assuming that XTAL = 11.0592 MHz, and we are generating a square wave on
pin P 1.2, find the lowest square wave frequency that we can generate using
mode I.
26. Assuming that XTAL = 11.0592 MHz, and we are generating a square wave on
pin P 1.2, find the highest square wave frequency that we can generate using
mode I.
27. Assuming that XTAL = J 6 MHz, and we are generating a square wave on pin
P 1.2, find the lowest square wave frequency that we can generate using
mode I.
28. Assuming that XTAL = 16 MHz, and we are generating a square wave on pin
P 1.2, find the highest square wave frequency that we can generate using
mode I.
29. In mode 2 assuming that TH I = F IH, indicate which states timer 2 goes
through until TFI is raised. How many states is that?
30. Program Timer I to generate a square wave of I kHz. Assume that XTAL =
IJ .0592 MHz.
3 I. Program Timer 0 to generate a square wa.ve of 3 kHz. Assume that XTAL =
I) .0592 MHz.
32. Program Timer 0 to generate a square wave of 0.5 kHz. Assume that XTAL =
20 MHz.
33. Program Timer I to generate a square wave of 10kHz. Assume that XTA L =
20 MHz.
34. Assuming that XTAL = 11.0592 MHz, show a program to generate a l-second
time delay. Use any timer you want,
35. Assuming that XTAL = 16 MHz, show a program to generate a 0.25-second
time delay. Use any timer you want.
36. Assuming that XTAL = 11.0592 MHz and that we arc· generating a square
wave on pm P 1.3, find the lowest square wave frequency that we can generate
usmg mode 2.
37. Assuming that XTAL = 1J 0592 MH d h .
. . . z an t at we are generatmg a square
wave on pin P 1.3, find the highest square wave frequency that we can gener-
ate using mode 2.
38. Assuming that XTAL = 16 MH d h .
. zan t at we are generatmg a square wave on
pin P 1.3, find the lowest square wave frequeney that we e .
mode 2. an generate usmg
39. Assuming that XTAL = 16 MHz and that we .
. PI 3 fi d h . arc generatmg a square wave on
pm ., 111 t e highest square wave frequency that .
mode 2. we can generate usmg
40. Find the value (in hex) loaded into TH in .a h fl.
e Cot ic followmg.
274
-
CHAPTEl

You might also like