5.1.1 I2C_Config Command and its Response

The I2C_Config command (0x40) configures the I2C peripheral with the specified clock speed and clock-stretch timeout.

This command is sent through Endpoint 0x03 (OUT). The response is read through Endpoint 0x83 (IN).

Table 5-2. I2C_Config - Command
Byte IndexCommandDescription
00x40Command codeConfigures the I2C module with the following settings:
1

0x70

0x16

0x04

Speed: 100 kHz

400 kHz

1 MHz

I2C clock speed
2

0x01

0x02

0xFA

Timeout: 1 ms

2 ms

...

250 ms

I2C clock-stretch timeout
Table 5-3. I2C_Config - Response
Byte IndexResponseDescription
00x40Return command codeReturns whether the I2C_Config command was accepted or rejected
10x20Accepted – success The command is accepted
0x60Rejected – wrong parametersThe command is rejected because the parameters are invalid
0x64Rejected – I2C is busyThe command is rejected because the I2C module is busy