Generate a time delay of 20 ms with a 16-bit timer 0. (Crystal frequency 10MHz) When the time is up, call a subroutine. (Do not use interrupts, detect the time is up by polling.) In the subroutine, perform AND operation between the values at 16h and 26h. Save the result to the address that is pointed by the resu (For example, if the result is 20, the value 20 will be written to address 20).

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

Can you write the answer with assembly code using 8051 architecture?

Write a program that does:
Generate a time delay of 20 ms with a 16-bit timer 0. (Crystal frequency 10MHz)
When the time is up, call a subroutine. (Do not use interrupts, detect the time is up by polling.)
In the subroutine, perform AND operation between the values at 16h and 26h. Save the result to the address that is pointed by the result
(For example, if the result is 20, the value 20 will be written to address 20).
Transcribed Image Text:Write a program that does: Generate a time delay of 20 ms with a 16-bit timer 0. (Crystal frequency 10MHz) When the time is up, call a subroutine. (Do not use interrupts, detect the time is up by polling.) In the subroutine, perform AND operation between the values at 16h and 26h. Save the result to the address that is pointed by the result (For example, if the result is 20, the value 20 will be written to address 20).
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning