Cypress技术william hill官网
直播中

王翰音

7年用户 288经验值
私信 关注
[问答]

fx2lp eeprom速度如何改变

你好,
我在我的项目中使用了FX2LP的C2负载EEPROM启动。故障电流I2C速度是100kHz。通过设置EEPROM配置,我有红色,它可以是400 kHz的速度。如果400 kHz BO位是1,那么它将是400 KHz,如果它是0,它的100KHz。
但是如何改变呢?我会在FX2LP固件中找到这一点?让我知道。
B7 B6 B5 B4 B3 B2 B1 B0
0个CDON 0、0、0、0、0、400千赫
当做,

以上来自于百度翻译


     以下为原文
  Hello,
i am using c2 load eeprom booting for fx2lp in my project.defaulty i2c speed is 100khz.i have red  that it can be 400khz speed by setting the EEPROM Configuration Byte.if 400khz bo bit is one,then it will be 400khz,if its is 0,its 100khz.
but how to make changes ?and where i will find this bit in the fx2lp firmware?let me know.

b7      b6            b5  b4   b3  b2  b1      b0
0    DISCON       0    0     0    0    0    400KHZ




regards,

回帖(1)

杜美娜

2018-9-21 16:29:15
你好,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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分