A single-master environment is defined by the fact that there is only one device on the bus which acts as I2C master. All other devices are slaves that respond to its commands, and nobody else ever tries to drive the two lines.
No arbitration required
This is by far the easiest way to implement an I2C bus, as it removes the need for arbitration detection and handling entirely. There is no second master that could compete for the bus, so the master can simply write out its commands. Unless a slave makes use of clock stretching, the master does not even need to read back the clock line.
This behavior is certainly not recommended, but it works in many cases, especially when writing to EEPROMs or other slave devices which are implemented as a hardware state machine. Such slaves react within a few clock cycles, so the master can safely assume that every bit was seen by the slave.
Typical single-master setups include:
- a microcontroller polling an EEPROM or a temperature sensor at fixed intervals,
- a dedicated I2C master chip controlling display and keyboard controllers,
- any arrangement in which exactly one device ever initiates a transfer.
A caution about PC I2C interfaces
One important thing to consider when working with PC I2C interfaces: the system becomes a multimaster environment as soon as the PC is used to send commands to a running I2C system, i.e. if the PC is used to talk to slave devices while there is also a microcontroller on the target possibly talking to the I2C bus. Two masters then share the same bus, and both must be prepared for arbitration.
As soon as there is any chance that a second master could appear on the bus later — a debug interface, a test tool, a second processor — it pays off to implement full multimaster capability from the start. Retrofitting it is rarely trivial, because the software must then cope with transfers being interrupted at any time.