do this using C/C++ language and my birthday is 11/29/1994 In this project we us
ID: 3789856 • Letter: D
Question
do this using C/C++ language and my birthday is 11/29/1994
In this project we use the Interval Timer implemented in the Cyclone FPGA as part ofthe Media Computer, to generate a precise delay based on the DEO board's system clock. This delay will be used in an extension of the "Display Birthday" homework exercise. Interval Timer The Interval Timer can be used by the Nios II processor to generate a precise delay. This timer can be loaded with a chosen value, and then enabled to count down to zero using the 50-MHz clock signal provided as the system clock in the DE-series computer systems. The programming interface for the timer includes six 16-bit registers, as illustrated in Figure 5 Address 17 16 15 Unused RUN TO 0xFF202000 Status register STOP START CONT ITO Control register Unused 0xFF202004 Counter start value (low) Not present 0xFF202008 (interval timer has 16-bit registers) Counter start value (high) 0xFF20200C Counter snapshot (low) 0xFF202010 Counter snapshot (high) 0xFF202014 Figure 5: The Interval Timer registers. The TO bit in the Status register provides a timeout signal which is set to 1 by the timer when it has reached a count value of zero. You should poll this bit in your program to cause the Nios II processor to wait for the timer. The TO bit can be reset by writing a 0 into it. The CONT bit affects the continuous operation of the timer. When the timer reaches a count value of zero it automatically reloads the specified starting count value. If CONT is set to 1, then the timer will continue counting down automatically. But if CONT J 0, then the timer will stop after it has reached a count value of 0. The (STARTISTOP) bits can be used to commence/suspend the operation of the timer by writing a l into the respective bit. The two 16-bit registers for the Counter start value allow the countdown period of the timer to be changed by loading different start values. To achieve a desired countdown period, Interval, the starting value of the count is given by 50 MHz x Interval (in seconds J 50x10% x IntervalExplanation / Answer
/* DOB can be printed for other team members*/
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.