Question: . . 3 - Timer (25 pts Assume that we have the following microcontroller system with timer unit description: The microcontroller is an 8-bit system

 . . 3 - Timer (25 pts Assume that we have
the following microcontroller system with timer unit description: The microcontroller is an

. . 3 - Timer (25 pts Assume that we have the following microcontroller system with timer unit description: The microcontroller is an 8-bit system and its clock runs at 128MHz. The timer is also 8-bit. The timer uses only the internal clock and there are 3 predefined pre-scale values: 1: No pre-scaling O 64: System clock/64 256: System clock/256 o 512: System clock/512 There are two modes of the timer: o Normal Mode: The timer counts up to the MAX value and then restarts from the BOTTOM (where MAX-maximum value that an 8-bit timer can go up to and BOTTOM-0) o Clear on Compare (CTC) Mode: The timer counts up to the TOP value (defined by the OCR register) and then restarts from the BOTTOM (-0). The registers in the timer unit are as follows: o TCNT: Keeps the count value of the timer. OCR: Keeps the output compare value for the CTC mode. . - You need to use your own Red ID number to complete this question. Indicate your Red ID number below 12 ptsi. o hp OTCNT: Keeps the count value of the timer. o OCR: Keeps the output compare value for the CTC mode. - You need to use your own Red ID number to complete this question. Indicate your Red ID number below 12 pts). Now you are supposed to set the timer in jes (microseconds) for a time value indicated by the last 4 digits in your Red ID number counted from right to left, with the first 3 digits from right to left as the integer part, and the 4 digit from right to left as the factional part. For example, if your Red ID number is 987654321, then the time you need to count is 123.4 pus. - Indicate the total amount of time that you need to count below 13 pts). o Et hip . . 3 - Timer (25 pts Assume that we have the following microcontroller system with timer unit description: The microcontroller is an 8-bit system and its clock runs at 128MHz. The timer is also 8-bit. The timer uses only the internal clock and there are 3 predefined pre-scale values: 1: No pre-scaling O 64: System clock/64 256: System clock/256 o 512: System clock/512 There are two modes of the timer: o Normal Mode: The timer counts up to the MAX value and then restarts from the BOTTOM (where MAX-maximum value that an 8-bit timer can go up to and BOTTOM-0) o Clear on Compare (CTC) Mode: The timer counts up to the TOP value (defined by the OCR register) and then restarts from the BOTTOM (-0). The registers in the timer unit are as follows: o TCNT: Keeps the count value of the timer. OCR: Keeps the output compare value for the CTC mode. . - You need to use your own Red ID number to complete this question. Indicate your Red ID number below 12 ptsi. o hp OTCNT: Keeps the count value of the timer. o OCR: Keeps the output compare value for the CTC mode. - You need to use your own Red ID number to complete this question. Indicate your Red ID number below 12 pts). Now you are supposed to set the timer in jes (microseconds) for a time value indicated by the last 4 digits in your Red ID number counted from right to left, with the first 3 digits from right to left as the integer part, and the 4 digit from right to left as the factional part. For example, if your Red ID number is 987654321, then the time you need to count is 123.4 pus. - Indicate the total amount of time that you need to count below 13 pts). o Et hip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!