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).
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).
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
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).](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1898b763-691f-4070-ab8d-c1cd7e75828b%2F97bbe999-be54-4565-b4ca-7d102f19020d%2F1cod6v_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Electric Motor Control](https://www.bartleby.com/isbn_cover_images/9781133702818/9781133702818_smallCoverImage.gif)
![Electric Motor Control](https://www.bartleby.com/isbn_cover_images/9781133702818/9781133702818_smallCoverImage.gif)