你好,Geethanjali,
EEPROM内容得到了第八字节作为“配置字节”。这个字节有如您所提到的DISCON和400千赫位。
当配置字节的比特0被设置时,I2C频率将被改变为400 KHz。这可以使用与FX2LP DVK一起使用的HOX2BIX实用工具来设置。
为了使用配置字节集的BIT0,使用KEIL项目生成IIC文件,请遵循下面的步骤。
-右击项目窗口中的目标名称& gt;并选择“目标和目标选项”。
-从出现的对话框中,打开“输出”选项卡。
在“运行用户程序“1”框中,输入下面的语句。
HX2BIX-i-F0xC2-C0x01-O BulkLo.IIC BulkLoop.HEX
在构建目标之后,将生成IIC文件。可以检查IIC文件的内容,以确认配置字节是否设置TTO 0x01。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geethanjali,
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
in the project window and choose 'Options for Target '.
- 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.
Best regards,
Srinath S
你好,Geethanjali,
EEPROM内容得到了第八字节作为“配置字节”。这个字节有如您所提到的DISCON和400千赫位。
当配置字节的比特0被设置时,I2C频率将被改变为400 KHz。这可以使用与FX2LP DVK一起使用的HOX2BIX实用工具来设置。
为了使用配置字节集的BIT0,使用KEIL项目生成IIC文件,请遵循下面的步骤。
-右击项目窗口中的目标名称& gt;并选择“目标和目标选项”。
-从出现的对话框中,打开“输出”选项卡。
在“运行用户程序“1”框中,输入下面的语句。
HX2BIX-i-F0xC2-C0x01-O BulkLo.IIC BulkLoop.HEX
在构建目标之后,将生成IIC文件。可以检查IIC文件的内容,以确认配置字节是否设置TTO 0x01。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geethanjali,
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
in the project window and choose 'Options for Target '.
- 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.
Best regards,
Srinath S
举报