Embedded Communication Protocol and Motor Control
i2c I2C specifications defined maximum clock frequency of 100 kHz. This was later increased to 400 kHz as Fast mode . There is also a High speed mode which can go up to 3.4 MHz and there is also a 5 MHz ultra-fast mode. I2C Interface I2C uses only two wires: SCL (serial clock) and SDA (serial data). I2C Addresses Basic I2C communication is using transfers of 8 bits or bytes. Each I2C slave device has a 7-bit address that needs to be unique on the bus. 7-bit address represents bits 7 to 1 while bit 0 is used to signal reading from or writing to the device. If bit 0 (in the address byte) is set to 1 then the master device will read from the slave I2C device. I2C Protocol In normal state both lines (SCL and SDA) are high. Both need to be pulled up with a resistor to +Vdd. With I2C, data is transferred in messages. Messages are broken up into frames of data. Each message has an address fr...