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

Discussion

An I2C driver must handle a device that does not acknowledge. The correct response is

  • A.to retry indefinitely until the device answers
  • B.to continue as though the byte had been accepted
  • C.to reset the processor and start again
  • D.to report the failure and release the bus

Answer: D

A missing acknowledgement means the device is absent, held in reset or has the wrong address, and the driver's job is to say so and leave the bus usable. Retrying for ever hangs the caller and resetting loses everything else the system was doing.

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

Post your comment

Please log in or register to post a comment.