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 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 nibble? what is counter?
what is nibble? what is counter?
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?
Construct a BCD counter that counts from 3 to 8, and back to 3.
Construct a BCD counter that counts from 3 to 8, and back to 3.
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 displayed to the screen when the following code executes? Counter c1 = new Counter();...
What is displayed to the screen when the following code executes? Counter c1 = new Counter(); Counter c2 = new Counter(); Counter c3 = new Counter(); Counter[] A = {c1, c2}; JAVA A[0].clickButton(); Counter[] B = new Counter[2]; for(int i = 0; i < A.length; i++) B[i] = A[i]; B[0] = c3; System.out.println("A[0] is " + A[0].getCount()); System.out.println("B[0] is " + B[0].getCount());
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT