欢迎访问ic37.com |
会员登录 免费注册
发布采购

90USB1287-16AU 参数 Datasheet PDF下载

90USB1287-16AU图片预览
型号: 90USB1287-16AU
PDF下载: 下载PDF文件 查看货源
内容描述: 单片机具有ISP功能的Flash和USB控制器64 / 128K字节 [Microcontroller with 64/128K Bytes of ISP Flash and USB Controller]
分类和应用: 微控制器
文件页数/大小: 434 页 / 3172 K
品牌: ATMEL [ ATMEL ]
 浏览型号90USB1287-16AU的Datasheet PDF文件第267页浏览型号90USB1287-16AU的Datasheet PDF文件第268页浏览型号90USB1287-16AU的Datasheet PDF文件第269页浏览型号90USB1287-16AU的Datasheet PDF文件第270页浏览型号90USB1287-16AU的Datasheet PDF文件第272页浏览型号90USB1287-16AU的Datasheet PDF文件第273页浏览型号90USB1287-16AU的Datasheet PDF文件第274页浏览型号90USB1287-16AU的Datasheet PDF文件第275页  
AT90USB64/128  
Figure 22-2. Endpoint activation flow:  
Endpoint  
Activation  
Select the endpoint  
UENUM  
EPNUM=x  
Activate the endpoint  
EPEN=1  
Configure:  
UECFG0X  
EPDIR  
EPTYPE  
...  
- the endpoint direction  
- the endpoint type  
- the Not Yet Disable feature  
Configure:  
- the endpoint size  
- the bank parametrization  
Allocation and reorganization of  
the memory is made on-the-fly  
UECFG1X  
ALLOC  
EPSIZE  
EPBK  
Test the correct endpoint  
configuration  
CFGOK=1  
No  
Yes  
Endpoint activated  
ERROR  
As long as the endpoint is not correctly configured (CFGOK cleared), the hardware does not  
acknowledge the packets sent by the host.  
CFGOK is will not be sent if the Endpoint size parameter is bigger than the DPRAM size.  
A clear of EPEN acts as an endpoint reset (see Section 22.4, page 270 for more details). It also  
performs the next operation:  
• The configuration of the endpoint is kept (EPSIZE, EPBK, ALLOC kept)  
• It resets the data toggle field.  
• The DPRAM memory associated to the endpoint is still reserved.  
See Section 21.8, page 258 for more details about the memory allocation/reorganization.  
22.8 Address Setup  
The USB device address is set up according to the USB protocol:  
• the USB device, after power-up, responds at address 0  
• the host sends a SETUP command (SET_ADDRESS(addr)),  
• the firmware records that address in UADD, but keep ADDEN cleared,  
• the USB device sends an IN command of 0 bytes (IN 0 Zero Length Packet),  
• then, the firmware can enable the USB device address by setting ADDEN. The only accepted  
address by the controller is the one stored in UADD.  
ADDEN and UADD shall not be written at the same time.  
UADD contains the default address 00h after a power-up or USB reset.  
271  
7593A–AVR–02/06  
 复制成功!