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

Discussion

A driver's register write appears to have no effect, and reading the register back gives the old value. The first thing to check is

  • A.whether the interrupt has been registered
  • B.whether the driver is reentrant
  • C.whether the peripheral's clock is enabled
  • D.whether the buffer is large enough

Answer: C

Correct answer: whether the peripheral's clock is enabled

A peripheral with no clock does not respond at all: writes are discarded and reads return whatever the bus leaves, which commonly looks like the old value. Enabling the clock is the first line of most initialisation routines and the first thing to check when a register appears not to exist.

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

Post your comment

Please log in or register to post a comment.