Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8. (TCO 2) If a peripheral interrupt is activated while the 9S12G128 is executin

ID: 3851620 • Letter: 8

Question

8. (TCO 2) If a peripheral interrupt is activated while the 9S12G128 is executing an instruction in the main program, then the CPU _________ and then jumps to interrupt vector table to get the ISR address. (Points : 10)

       finishes the current instruction
       stops in the middle of the current instruction
       depending on the instruction, may finish or stop in the middle of the current instruction
       immediately terminates the current instruction

1. (TCO 3) The 9S12G128 event counter is configured and enabled for rising edge. A 1.0 Hz waveform (TTL logic levels) is applied to the counter input. With the counter starting at 0xFFF0, what is the data contained in the event counter after 16.52 seconds (first count increment occurred at 0 seconds)? (Points : 10)

       0x0011
       0x0021
       0x0001
       16.5

Question 1.1. (TCO 3) To measure the duty cycle, we capture the time for (Points : 10)

       rising edge followed by falling edge plus the very next rising edge.
       falling edge followed by rising edge.
       two consecutive rising edges.
       two consecutive falling edges.

Question 3.3. (TCO 3) For the 9S12G128 timer module, the pulse width modulation output is provided via the pins of which port? (Points : 10)

       Port T
       Port A
       Port P
       Port B

Explanation / Answer

1)Ans.depending on the instruction, may finish or stop in the middle of the current instruction

Explanation :It doesn't stops in the middle of the current instruction nor immediately terminates the current instruction.

2)Ans:B

Given :
1.0 Hz waveform
ounter starting at 0xFFF0
event counter after 16.52 seconds
Hence the event counter of first count increment occurred at 0 seconds 0x0021

3)To measure the duty cycle, we capture the time for rising edge followed by falling edge plus the very next rising edge.

Ans:A


For the 9S12G128 timer module, the pulse width modulation output is provided via the pins of Port P

Ans:C

---------------------------------------
Thank You hope the information helps you..

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote