Question

In: Electrical Engineering

(CO 3) If an event is captured at a reading of 0x52BA, what will the counter...

(CO 3) If an event is captured at a reading of 0x52BA, what will the counter value be if the next event occurs after 1 ms? The E-clock is 12 MHz.

Group of answer choices

a) 0xD06C

b) 0x72AC

c) 0x819A

d) 0xF020

Solutions

Expert Solution

The reading in TCNT register gets incremented for every clock pulse. When an event happens, the event time is recorded in a 16-bit (TCNT - Timer Counter) register. Physical time is represented by count in TCNT register.

Suppose the clock frequency is 'F'. If an event is captured and at the time of capture TCNT register reading is 'X'. The next event is captured and at the time of capture TCNT register reading is 'Y'. The time difference between events is calculated as follows: (Remember that 'X' and 'Y' are hexadecimal values in TCNT register)

  • First convert second event hexadecimal reading 'Y' into decimal. Let this value be t2.
  • Convert first event hexadecimal reading 'X' into decimal. Let this value be t1.
  • Time difference between events (Td) = (t2 - t1)/F.

In our question,

Reading of first event X = 0x52BA;

time difference (Td) = 1ms = 10-3 seconds.

Frequency (F) = 12MHz = 12*106 Hz.

Now convert X in hexadecimal to decimal system. (0x52BA)16 = (21178)10. So t1 = 21178.

Apply formula as (t2 - t1)/F = Td

(t2 - 21178) = (12 * 106) * (10-3)

(t2 - 21178) = 12000

t2 = 12000 + 21178 = 33178

We got t2 = (33178)10. But we need Y. So convert t2 into hexadecimal system which gives the answer. The value (33178)10 = (819A)16.

Therefore answer = (819A)16 = 0x819A.

The counter value for the next event will be 0x819A. Hence option-c is correct.


Related Solutions

what is nibble? what is counter?
what is nibble? what is counter?
What is the complement of event "At least 3 engines fail" (Hint: "at least 3 engines...
What is the complement of event "At least 3 engines fail" (Hint: "at least 3 engines fail" is equivalent to "at most 1 engine work") A. At least 1 engines work B. At most 1 engines work C. At least 2 engines work D. At most 2 engines work
What is a sentinel event? And describe in detail 3 examples of sentinel events?
What is a sentinel event? And describe in detail 3 examples of sentinel events?
what is an wxperiment? what is an event?
what is an wxperiment? what is an event?
Synchronous Counter Design a counter with MOD-5 (0-3-4-1-6) and explain its operation.
Synchronous Counter Design a counter with MOD-5 (0-3-4-1-6) and explain its operation.
1. What will counter cyclical budgeting policy? 2. What types of government policies would counter the...
1. What will counter cyclical budgeting policy? 2. What types of government policies would counter the business cycle. What types of policies should government implement if economy is in severe recession.
What type of event is a customer order A. Investigation Event B. Mutual Commitment Event C....
What type of event is a customer order A. Investigation Event B. Mutual Commitment Event C. Economic Decrement Event D. Economic Increment Event E. Economic Reversal Event
what is it meant by the term "subsequent event" How is a subsequent event treated in...
what is it meant by the term "subsequent event" How is a subsequent event treated in an entity's financial reports? Give an example of something that would be a subsequent event.
What are the differences between an event, and a simple event? In your opinion, using the...
What are the differences between an event, and a simple event? In your opinion, using the information that you have learned in this chapter, which of the following offer the strongest evidence for the likelihood of an event? Classical, empirical, or subjective probability... Explain your understanding of Independent and Dependent events - give examples of conditional logic to help your fellow students understand these concepts in a more practical way.
Flip a coin 3 times, what is 1. outcome 2. sample space 3. event(two tails) 4....
Flip a coin 3 times, what is 1. outcome 2. sample space 3. event(two tails) 4. event space(two tails)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT