Machine-translated by Google. Questions are authored in English.
Top

Discussion

Toggling a spare output pin is a useful debugging technique because it

  • A.halts the processor for inspection
  • B.works only when the debugger is connected
  • C.costs a few cycles and can be watched externally
  • D.records the value of every variable at that point

Answer: C

Correct answer: costs a few cycles and can be watched externally

Setting a pin on entry and clearing it on exit costs almost nothing, does not stop the processor, and can be watched on a scope or analyser while the system runs at full speed. That makes it the technique of choice for anything timing-sensitive, where a breakpoint would change the behaviour being investigated and printing would be far too slow.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.