xwfang
驱动牛犊
驱动牛犊
  • 注册日期2002-08-19
  • 最后登录2004-12-12
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2612回复:8

如何设置68013的高速和全速?

楼主#
更多 发布于:2004-10-29 15:33
请教一下!
lzyuer
驱动牛犊
驱动牛犊
  • 注册日期2004-09-05
  • 最后登录2005-05-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-10-29 15:50
 设置寄存器cpucs就可以了
xuhaiqg
驱动牛犊
驱动牛犊
  • 注册日期2004-04-12
  • 最后登录2005-05-31
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-10-29 16:22
全速和高速不是设的,如果你的PC支持高速,68013就设USBCS的bit7为1,主机还会发出一个高速中断,68013收到中断后,你就根据USBCS的bit7或有无高速中断来处理你的高速或全速传输
纸上来得终觉浅 绝知此事要躬行
lzyuer
驱动牛犊
驱动牛犊
  • 注册日期2004-09-05
  • 最后登录2005-05-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-10-29 17:22
  是不是pc上的usb接口是2.0的就支持高速呢?
xuhaiqg
驱动牛犊
驱动牛犊
  • 注册日期2004-04-12
  • 最后登录2005-05-31
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2004-10-29 17:48
 是不是pc上的usb接口是2.0的就支持高速呢?

在68013的情况下是这样
纸上来得终觉浅 绝知此事要躬行
cahwlx1982
驱动小牛
驱动小牛
  • 注册日期2004-08-16
  • 最后登录2006-06-17
  • 粉丝0
  • 关注0
  • 积分31分
  • 威望4点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2004-11-01 15:34
发一段英文资料给你!你自己好好的研究一下,就知道怎么来设置高速和低速了!
Programming the FX2 into Full Speed mode vs High Speed mode:


Programming the FX2 into Full Speed mode vs. High Speed mode.

The FX2 has the ability to be placed into a Full Speed mode. This mode is entered by
First setting the device to allow the 8051 to always control the mode. To do this, you must set bit7 in the I2C Configuration Byte and leave it.

You would also change any descriptor configuration bit, using the code dscr.a51 as the example, you would change the configuration string in HighSpeedConfigDscr and FullSpeed ConfigDscr from a 0x00 to a 0x80. This will allow the 8051 to control the process.

The second item to control is at address 0xE6FB. This address should be set to a char variable called force_mode. Then to set the full speed mode you would disconnect from the host by setting USBCS |= 0x08, (or setting the DISCON bit in USBCS register).

After setting the disconnect bit, cause a delay to ensure a disconnect has occurred, i.e. EZUSB_Delay(1500). Once disconnected, set the force_mode address to 0x02 to set full speed mode (0x00 to set high speed mode). Following this clear any interrupts. Finally you need to reconnect to the bus and re-enumerate (USBCS &=0xF7 to reconnect).

Self-powered device will want to sense the presence of Vbus with a port pin prior to connection to the bus.
xwfang
驱动牛犊
驱动牛犊
  • 注册日期2002-08-19
  • 最后登录2004-12-12
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2004-11-05 11:12
谢谢阿,可是我应该怎么给分了,我是菜鸟!
cahwlx1982
驱动小牛
驱动小牛
  • 注册日期2004-08-16
  • 最后登录2006-06-17
  • 粉丝0
  • 关注0
  • 积分31分
  • 威望4点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2004-11-05 11:18
如果你用的68013芯片的话,还要注意一点,要是你在D+,D-上串接电阻的话,那么你只能工作在全速了,要想工作在高速的话,硬件这个方面也是很重要的!而USB1.1是必须串接电阻的!你自己也要注意以下哦!
另外与你的PC机有一定的关系的要是你的PC不支持高速的话,那就还要考虑重新装系统了!
希望给你的一点建议,能帮你带取一定的帮助!
祝你好运!
hooligan686
驱动牛犊
驱动牛犊
  • 注册日期2004-05-06
  • 最后登录2009-11-18
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
8楼#
发布于:2004-12-30 17:02
cahwlx1982兄:能否解释一下为何在D+D-上串连电阻就只能工作在全速模式?我不懂,我也遇到了类似的问题,就是高速设备不能被识别为高速,而只能在全速模式下工作,郁闷.望你给我解析一下,随便说说也行.
游客

返回顶部