USB to I2C通讯的问题

[复制链接]
12093|12
 楼主| guoyt 发表于 2011-8-3 09:40 | 显示全部楼层 |阅读模式
在xypress的网站上下载了“Example_CSD_EzI2Cs_FIlters_24x94”的参考程序,根据我们电路更改了相关引脚的定义;然后编译,下载到芯片上;再使用usb to I2C进行连接,根据提供的文档,使用命令“w 0A 00 00”,反馈回来“s 14+ 00+ 00+ p”,和文档描述一致。
但是,接下来选择chart的variables setting,就没有文档对应的选项了。
hanwe 发表于 2011-8-3 09:44 | 显示全部楼层
I2C是连接正常了吗?
 楼主| guoyt 发表于 2011-8-3 09:49 | 显示全部楼层
正常了。接下来怎么监控按键的动作,和调整按键的操作呢?
yufe 发表于 2011-8-3 10:01 | 显示全部楼层
Please follow the steps to use chart display:

1. Chart - Data Settings, we have 16 variables available here. Choose one of them. For example, N1 ACTIVE(Choose)  status(Variable name, will be used in command)  Byte(Type)  Sign(Not Choose) (Choose Scale, Offset, Color)
then, click OK.

2. Commands: (See variable name "status" used here)
w 00 03 p r 00 @status p

3. Click "Repeat"(Send), and choose other parameters according to your application.

4. View the chart.
 楼主| guoyt 发表于 2011-8-3 10:11 | 显示全部楼层
我完全参考例程的PDF敲命令,结果对应的参数的name没有更改
llia 发表于 2011-8-3 10:16 | 显示全部楼层
可以更改
 楼主| guoyt 发表于 2011-8-3 10:27 | 显示全部楼层
参数对应上了。但是,按道理返回CSD_baSnsOnMask[0]是可以反映前8个按键有没有按下的,可以,在没有按键按下的时候,这个参数不停的在变化
 楼主| guoyt 发表于 2011-8-3 10:48 | 显示全部楼层
调用active函数倒是可以正常的反应按键是否有动作。
但是mask数组好像没有反应
wangpe 发表于 2011-8-3 10:55 | 显示全部楼层
不懂。。。
 楼主| guoyt 发表于 2011-8-3 11:00 | 显示全部楼层
好吧,我再试试看
jack_shine 发表于 2011-8-4 09:33 | 显示全部楼层
路过学习
siwi 发表于 2011-8-4 10:56 | 显示全部楼层
这个没接触过
siwi 发表于 2011-8-4 10:56 | 显示全部楼层
回去了解下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1018

主题

9067

帖子

3

粉丝
快速回复 在线客服 返回列表 返回顶部