Answer :- a) The CPU frequency = 25 MHz. Thus CPU clock time per cycle = 1/25 us = 0.04 us = 40 ns.
Answer :- b) The input divider value is 8 means clock gets divided by 8 and it becomes 25/8 MHz. Then IDEX is 3, so final clock for timer has frequency = 25/(8*3) MHz = 1.0416 MHz.
Answer :- c) The cycle time = 24/25 us = 960 ns.
Answer :- d) Let n be the count value then,
n*(24/25)*10-6 = 1*10-3
=> n = 1041.66
Hence TACCR0 must be loaded with value 1042.
3. 15 points Timers: Suppose that our timers on the MSP430 are set with NC 01, ID-8, and IDEX-3. ...
(8 points) A coffee shop sells bags of roasted coffee beans to customers to make into coffee at home. The demand for these bags is quite predictable (and can be treated as deterministic for our purposes). The shop sells 3,500 bags of coffee beans per year. Each time the shop places an order for these bags with its coffee supplier, it incurs an administrative cost of $15, independent of the quantity ordered. The company values each bag at $12.50 (this...
3. 12+2-4 points] We are comparing the two caches in Problem 1 and Problem 2. Suppose both caphes have a hit time of 2 cycles. The cache in Problem 1 has a miss penalty of 15 cycles. The one in Problem 2 has a miss penalty of 25 cycles. Calculate the total time taken (in cycles) for all accesses, for each cache. Which cache is better- the one in Problem 1 or Problem 2? 3. 12+2-4 points] We are comparing...