阅读:1268回复:2
请教一个有关68013的问题!谢谢了!
在从属FIFO模式中,自动输入模式中的数据包是如何定义的呢?比如我是这样定义的:
EP2AUTOINLENH=0x03; EP2AUTOINLENL=0xE8; 那么它的数据包的大小是多少呢? 谢谢了! |
|
沙发#
发布于:2007-08-11 22:05
每次传输数据包大小是你在固件里面设置端点的属性里面设置好的,比如说512字节,如果你的顶层应用程序要读2049字节,那么就分5次传输,前4次每次数据包都是512字节,最后一次是1个字节
|
|
板凳#
发布于:2007-08-13 19:41
These registers can be used to set smaller packet sizes than the physical buffer size (refer to
the previously described EPxCFG registers). The default packet size is 512 bytes for all endpoints. Note that EP2 and EP6 can have maximum sizes of 1024 bytes, and EP4 and EP8 can have maximum sizes of 512 bytes, to be consistent with the endpoint structure. |
|
|