2. You have a global variable state in your PS0C 6 program that you would like...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. You have a global variable state in your PS0C 6 program that you would like to monitor during execution for debug purposes: uint8 state; You would like its value to be reflected on one of the LEDS on the board, so that when state is non-zero, the LED will light up. Unfortunately, there is no way to detect a write to a specific memory location in the PSOC directly using hardware, but you can periodically monitor the memory location, and if you do it fast enough (say within a millisecond), the delay between the value changing in memory and the LED responding to it will not be noticed. Ideally, you would like to do this without slowing down the program substantially. (a) Explain how you can make the value assigned to the variable state reflect on the LED using interrupts. You may use other components such as timers, counters, control and status registers, etc. Describe your scheme with a block diagram of the components and its operation. You don't need to actually design the scheme in PSOC Creator and you don't need to provide any C code. (b) Can you achieve the same result without using interrupts, using DMA instead? Describe your scheme with a block diagram of the components and its operation. Explain how you will set up descriptors for the DMA channel. You don't need to actually design the scheme in PSOC Creator and you don't need to provide any C code. (c) Which approach is superior? Why? 2. You have a global variable state in your PS0C 6 program that you would like to monitor during execution for debug purposes: uint8 state; You would like its value to be reflected on one of the LEDS on the board, so that when state is non-zero, the LED will light up. Unfortunately, there is no way to detect a write to a specific memory location in the PSOC directly using hardware, but you can periodically monitor the memory location, and if you do it fast enough (say within a millisecond), the delay between the value changing in memory and the LED responding to it will not be noticed. Ideally, you would like to do this without slowing down the program substantially. (a) Explain how you can make the value assigned to the variable state reflect on the LED using interrupts. You may use other components such as timers, counters, control and status registers, etc. Describe your scheme with a block diagram of the components and its operation. You don't need to actually design the scheme in PSOC Creator and you don't need to provide any C code. (b) Can you achieve the same result without using interrupts, using DMA instead? Describe your scheme with a block diagram of the components and its operation. Explain how you will set up descriptors for the DMA channel. You don't need to actually design the scheme in PSOC Creator and you don't need to provide any C code. (c) Which approach is superior? Why?
Expert Answer:
Answer rating: 100% (QA)
a We can connect the LEDs to an 8bit control register One way to make the outputs reflect the state ... View the full answer
Related Book For
Business Statistics A First Course
ISBN: 978-0321979018
7th edition
Authors: David M. Levine, Kathryn A. Szabat, David F. Stephan
Posted Date:
Students also viewed these finance questions
-
A student has seven books that she would like to place in her backpack. However, there is room for only four books. Regardless of the arrangement, how many ways are there of placing four books into...
-
Write an informative report on one of the following topics. 1. What should a U.S. manager know about dealing with workers from ______ [you fill in the country or culture]? What factors do and do not...
-
Write a classic academic research paper on one of the four risk frameworks: OCTAVE Allegro, FAIR, FRAAP, and NIST. The material in the book is not going to be sufficient for an academic research...
-
A square garden has an area of 900 square feet. If a sprinkler (with a circular pattern) is placed in the center of the garden, what is the minimum radius of spray the sprinkler would need in order...
-
We hear people talk of "ultraviolet light" and "infrared light." Why are these terms misleading? Why are we less likely to hear people talk of "radio light" and "X-ray light"?
-
In almond trees, the allele A = big almonds and a = small almonds; the allele B = bitter almonds; b = sweet almonds. You have one tree that produces only big bitter almonds and another tree that...
-
What are the main differences between sequence and collaboration diagrams? When would you use each?
-
A mathematical programming system named SilverScreener uses a 0-1 integer programming model to help theater managers decide which movies to show on a weekly basis in a multiple-screen theater...
-
What are the key mechanisms through which organizational culture is transmitted and sustained across generations of employees ?
-
Find the absolute maximum and minimum of the function f(x, y) = r* + y* subject to the constraint a + y* = 4096. As usual, ignore unneeded answer blanks, and list points in lexicographic order....
-
If the perpetuity grows at 2% and there is a 9% annual return, what is the maximum amount you would pay for this investment?
-
On July 23 of the current year, Dakota Mining Company pays $8,131,200 for land estimated to contain 9,240,000 tons of recoverable ore. It installs and pays for machinery costing $831,600 on July 25....
-
Fields Company has two manufacturing departments, forming and painting. The company uses the weighted average method and it reports the following unit data for the Forming department. Units completed...
-
Fickel Company has two manufacturing departments-Assembly and Testing & Packaging. The predetermined overhead rates in Assembly and Testing & Packaging are $20.00 per direct labor-hour and $16.00 per...
-
The Cheyenne Hotel in Big Sky, Montana, has accumulated records of the total electrical costs of the hotel and the number of occupancy-days over the last year. An occupancy-day represents a room...
-
Mickley Company's plantwide predetermined overhead rate is $21.00 per direct labor-hour and its direct labor wage rate is $11.00 per hour. The following information pertains to Job A-500: Direct...
-
Prepare a writeup on - Plot a graph showing how average runtime varies for satisfiable formulae for both methods, as the ratio C/V varies from 0.5 to 10, fixing V to 10, 20, 30, 40, and 50. Use DPLLs...
-
l ask this second time correnct answer is 38,01 can we look pls Consider a non-conducting rod of length 8.8 m having a uniform charge density 4.5 nC/m. Find the electric potential at P, a...
-
You want to develop a model to predict the taxes of houses, based on assessed value. A sample of 30 single family houses listed for sale in Silver Spring, Maryland, a suburb of Washington, DC, is...
-
How much time do Americans living in or near cities spend waiting in traffic, and how much does waiting in traffic cost them per year? The file Congestion includes this cost for 31 cities. For the...
-
What are some of the criteria used in the selection of a particular hypothesis testing procedure?
-
Give an example of a local wind pattern. Give an example of a global wind pattern.
-
What drives surface currents?
-
Do surface currents affect water temperature, air temperature, or both?
Study smarter with the SolutionInn App