Modifying FX2LP I2C Frequency Upon Booting - KBA224158

Version 2

    Version: **

     

    Translation - Japanese: 起動時にFX2LP I2C周波数を変更する - KBA224158 - Community Translated (JA)

     

    Question:

    How can I modify the frequency of the FX2LP I2C during firmware loading from the EEPROM?

     

    Answer:

    FX2LP I2C controller supports I2C at 100 kHz and 400 kHz and operates at 100 kHz by default. To operate the I2C at 400 kHz during booting from the EEPROM, the configuration byte of the EEPROM should be set to 0x01.

    EEPROM Configuration Byte:

     

     

    Configuration

    b7

    b6

    b5

    b4

    b3

    b2

    b1

    b0

    0

    DISCON

    0

    0

    0

    0

    0

    400 kHz

    To generate the IIC file using Keil uVision with this value on the configuration byte, add the following command in the post build settings of the project

    hex2bix -i -f 0xC2 -c 0x01 -o <filename>.iic <filename>.hex