Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1071052
  • 博文数量: 132
  • 博客积分: 612
  • 博客等级: 中士
  • 技术积分: 1389
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-14 16:06
文章分类

全部博文(132)

文章存档

2015年(2)

2014年(55)

2013年(53)

2012年(2)

2011年(20)

分类: 其他平台

2014-02-23 11:46:01

首先声明一下,68013有两个文档,一个datasheet,一个是TRM,刚开始的时候我以为只有datasheet呢,结果看了半天只有一个寄存器列表,但是没有解释寄存器的每个bit的含义就感觉这个chip很奇怪呀,难道需要靠猜的吗?后来开始看源码,也就是cpress的example中的代码,看着很多对寄存器的操作不明所以就只好放狗去网上搜了,看到网上有人说TRM,一搜才知道原来是另一份文档,有对寄存器的详细解释。


这里先说一下datasheet中提到的arm endpoint这个含义,其实是很少使用这个方式来描述的,它在原文中为:

1.6.2 Sending Data to the Host

A USB device never spontaneously sends data to the host. Either EZ-USB firmware or exter- nal logic can load data into an EZ-USB endpoint buffer and ‘arm’ it for transfer at any time. How- ever, the data is not transmitted to the host until the host issues an IN request to the EZ-USB endpoint. If the host never sends the IN token, the data remains in the EZ-USB endpoint buffer indefinitely. 


主要说明usb协议中规定设备不能主动向主机发送数据,直到主机说想要了才能发送数据。所以在准备好了数据之后和发送之前的状态就叫arm,直白点说就是待命状态。

阅读(1343) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~