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

Discussion

A driver moving 8-bit samples at 100 kSa/s on a 16 MHz core should use

  • A.polling in a tight loop, which is the simplest arrangement
  • B.an interrupt per sample, the rate being modest
  • C.a task that reads the register periodically
  • D.DMA, an interrupt per sample being too costly

Answer: D

A hundred thousand handler entries a second at even twenty cycles each is an eighth of the processor spent on overhead alone. One interrupt per buffer reduces it to nothing measurable, which is the ordinary reason DMA is chosen.

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

Post your comment

Please log in or register to post a comment.