1 of 1 people found this helpful
The EEPROM contents has got the 8th byte as the 'Configuration Byte'. This byte has the DISCON and 400kHz bits as you had mentioned.
The I2C frequency would be changed to 400kHz when the bit0 of the Configuration Byte is set. This can be set using the Hex2Bix utility that comes with the FX2LP DVK.
In order to generate the IIC file using the Keil Project with the bit0 of the configuration byte set, kindly, follow the steps below.
- Right click on the <Target Name> in the project window and choose 'Options for Target <Target Name>'.
- From the dialog box that appears, open the 'Output' tab.
- In the 'Run User Program #1' box, enter the below statement.
hex2bix -i -f 0xC2 -c 0x01 -o bulkloop.iic bulkloop.hex
After building the target, the IIC file will be generated. The contents of the IIC file can be checked to confirm if the Configuration Byte is set tto 0x01.