ase the tim rto we use bo counter 0, counter 1, gram Time nt on P1 ar

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
MOV OT weMA
MOV TH0,#-12
(a)
(c)
(e)
(g)
MOV
MOV TH0,#-34
(d)
MOV TH1,#-120
(f)
MOV TH1,#-222
(h)
MOV TH1,#-104
MOV TH1,#-67
41. In Problem 40, indicate by what number the machine cycle frequency of 921.6
kHz (XTAL = 11.0592 MHz) is divided.
42. In Problem 41, find the time delay for each case from the time the timer starts
to the time the TF flag is raised.
SECTION 9.2: COUNTER PROGRAMMING
43. To use the timer as an event counter we must set the C/T bit in the TMOD reg-
ister to
44. Can we use both of the timers as event counters?
45. For counter 0, which pin is used to input clocks?
46. For counter 1, which pin is used to input clocks?
47. Program Timer 1 to be an event counter. Use mode 1 and display the binary
count on P1 and P2 continuously. Set the initial count to 20,000.
48. Program Timer 0 to be an event counter. Use mode 2 and display the binary
count on P2 continuously. Set the initial count to 20.
49. Program Timer 1 to be an event counter. Use mode 2 and display the decimal
count on P2, P1, and PO continuously. Set the initial count to 99.
50. The TCON register is a(n) -bit register.
51. True or false. The TCON register is not a bit-addressable register.
52. Give another instruction to perform the action of "SETB TRO".
(low, high).
SECTION 9.3: PROGRAMMING TIMERS O AND 1 IN 8051 C
53. Program Timer 0 in C to generate a square wave of 3 kHz. Assume that XTAL
= 11.0592 MHz.
54. Program Timer 1 in C to generate a square wave of 3 kHz. Assume that XTAL
= 11.0592 MHz.
55. Program Timer 0 in C to generate a square wave of 0.5 kHz. Assume that
XTAL = 11.0592 MHz.
56. Program Timer 1 in C to generate a square wave of 0.5 kHz. Assume that
XTAL = 11.0592 MHz.
57. Program Timer 1 in C to be an event counter. Use mode 1 and display the bina-
ry count on P1 and P2 continuously. Set the initial count to 20,000.
58. Program Timer 0 in C to be an event counter. Use mode 2 and display the bina-
ry count on P2 continuously. Set the initial count to 20.
Transcribed Image Text:MOV OT weMA MOV TH0,#-12 (a) (c) (e) (g) MOV MOV TH0,#-34 (d) MOV TH1,#-120 (f) MOV TH1,#-222 (h) MOV TH1,#-104 MOV TH1,#-67 41. In Problem 40, indicate by what number the machine cycle frequency of 921.6 kHz (XTAL = 11.0592 MHz) is divided. 42. In Problem 41, find the time delay for each case from the time the timer starts to the time the TF flag is raised. SECTION 9.2: COUNTER PROGRAMMING 43. To use the timer as an event counter we must set the C/T bit in the TMOD reg- ister to 44. Can we use both of the timers as event counters? 45. For counter 0, which pin is used to input clocks? 46. For counter 1, which pin is used to input clocks? 47. Program Timer 1 to be an event counter. Use mode 1 and display the binary count on P1 and P2 continuously. Set the initial count to 20,000. 48. Program Timer 0 to be an event counter. Use mode 2 and display the binary count on P2 continuously. Set the initial count to 20. 49. Program Timer 1 to be an event counter. Use mode 2 and display the decimal count on P2, P1, and PO continuously. Set the initial count to 99. 50. The TCON register is a(n) -bit register. 51. True or false. The TCON register is not a bit-addressable register. 52. Give another instruction to perform the action of "SETB TRO". (low, high). SECTION 9.3: PROGRAMMING TIMERS O AND 1 IN 8051 C 53. Program Timer 0 in C to generate a square wave of 3 kHz. Assume that XTAL = 11.0592 MHz. 54. Program Timer 1 in C to generate a square wave of 3 kHz. Assume that XTAL = 11.0592 MHz. 55. Program Timer 0 in C to generate a square wave of 0.5 kHz. Assume that XTAL = 11.0592 MHz. 56. Program Timer 1 in C to generate a square wave of 0.5 kHz. Assume that XTAL = 11.0592 MHz. 57. Program Timer 1 in C to be an event counter. Use mode 1 and display the bina- ry count on P1 and P2 continuously. Set the initial count to 20,000. 58. Program Timer 0 in C to be an event counter. Use mode 2 and display the bina- ry count on P2 continuously. Set the initial count to 20.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY