Embedded Systems Questions and Answers – I2C-II

This set of Embedded Systems Questions and Answers for Experienced people focuses on “I2C-II”.

1. Which of the following indicates the type of operation that the master requests?
a) address value
b) initial value
c) terminal count
d) first byte
View Answer

Answer: a
Explanation: The address value helps the master to select the device and indicates what operation should be taken. If the 8th bit is logic one, read operation takes out and if it is logic zero, write operation takes out.

2. How can both single byte and the double byte address slave use the same bus?
a) extended memory
b) extended address
c) peripheral count
d) slave bus
View Answer

Answer: b
Explanation: For providing more addressing, an extended address is developed which possesses two bytes in which the first byte uses a special code to distinguish it from a single byte address so that the single byte and double byte address slaves can use a shared bus.

3. Which counter selects the next register in the I2C?
a) auto-incrementing counter
b) decrementing counter
c) auto-decrementing counter
d) terminal counter
View Answer

Answer: a
Explanation: The peripheral having a small number of locations can use auto-incrementing counter for accessing the next register. But this will not be applicable in bigger memory devices.
advertisement
advertisement

4. Which is an efficient method for the EEPROM?
a) combined format
b) auto-incrementing counter
c) register set
d) single format
View Answer

Answer: a
Explanation: Combined format is an efficient method for the EEPROM because it is having a large number of registers.

5. Which of the following uses two data transfers?
a) auto-incrementing counter
b) auto-decrementing counter
c) combined format
d) single format
View Answer

Answer: c
Explanation: The EEPROM is having a large number of registers, so auto incrementing counter will not be applicable. So there is an alternative method which uses index value that is written to the chip, prior to accessing the data. This is called combined format and this combined format uses two data transfer. One is to write the data and the other is to read.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which of the following is efficient for the small number of registers?
a) auto-incrementing counter
b) auto-decrementing counter
c) combined format
d) single format
View Answer

Answer: a
Explanation: The peripherals which have a small number of locations can use auto-increment counter within the peripheral in which each access selects the next register.

7. Which can determine the timeout value?
a) polling
b) timer
c) combined format
d) watchdog timer
View Answer

Answer: a
Explanation: The polling can be used along with the counter to determine the timeout value.
advertisement

8. How is bus lockup avoided?
a) timer and polling
b) combined format
c) terminal counter
d) counter
View Answer

Answer: a
Explanation: The timeout value can be changed by the peripheral devices, so for a sophisticated system a combination of polling and timer is used to check for the signal n times within a predefined interval. This can avoid the bus lock.

9. Which of the following can determine if two masters start to use the bus at the same time?
a) counter detect
b) collision detect
c) combined format
d) auto-incremental counter
View Answer

Answer: b
Explanation: The collision detects technique helps to determine whether two or more masters are using the same bus in a multi-master device.

advertisement

10. Which ports are used in the multi-master system to avoid errors?
a) unidirectional port
b) bidirectional port
c) multi directional port
d) tridirectional port
View Answer

Answer: b
Explanation: By using the bidirectional ports, each master can monitor the line and confirm its expected state and if it is not matched, a mismatch or collision had occurred which will discontinue the transmission by the master.

Sanfoundry Global Education & Learning Series – Embedded System.

To practice all areas of Embedded Systems for Experienced people, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.