Question: Using the seven-segment display in Figure 3.17 and the timer interface registers in Figure 3.14, write a RISC-style program that flashes decimal digits in the

Using the seven-segment display in Figure 3.17 and the timer interface registers in Figure 3.14, write a RISC-style program that flashes decimal digits in the repeating sequence 0, 1, 2, , 9, 0, . . Each digit is to be displayed for one second. Assume that the counter in the timer circuit is driven by a 100-MHz clock.

Figure 3.17

d Number a b c d e f g 0 1111110 1

Figure 3.14

2 0110000 1101101 3 4 5 6 7 8 9 1111 001The program in Figure 13 accomplishes the required task. Comments in the program explain how this task is performed. Write the program for the flashes decimal digits in the repeating sequence.

d Number a b c d e f g 0 1111110 1 2 0110000 1101101 3 4 5 6 7 8 9 1111 001 0110011 1011011 10 111 11 1110000 ------- 11011 Address 0x4020 0x4024 0x4028 0x402C 31 7 4 3 Initial count value 2 I TON ZERO TIRQ TIM_STATUS UP FREE RUN TIE Current count value TIM_CONT TIM_INIT TIM_COUNT

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a RISCstyle program that uses a sevensegment display to flash digits 0 through 9 each for one second we will use the timer to manage the dis... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

6095837c917d1_25944.pdf

180 KBs PDF File

Word file Icon

6095837c917d1_25944.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!