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

AN2131QC 参数 Datasheet PDF下载

AN2131QC图片预览
型号: AN2131QC
PDF下载: 下载PDF文件 查看货源
内容描述: 在EZ - USBTM集成电路 [The EZ-USBTM Integrated Circuit]
分类和应用:
文件页数/大小: 334 页 / 1468 K
品牌: CYPRESS [ CYPRESS ]
 浏览型号AN2131QC的Datasheet PDF文件第109页浏览型号AN2131QC的Datasheet PDF文件第110页浏览型号AN2131QC的Datasheet PDF文件第111页浏览型号AN2131QC的Datasheet PDF文件第112页浏览型号AN2131QC的Datasheet PDF文件第114页浏览型号AN2131QC的Datasheet PDF文件第115页浏览型号AN2131QC的Datasheet PDF文件第116页浏览型号AN2131QC的Datasheet PDF文件第117页  
The vector values are four bytes apart. This allows the programmer to build a jump table  
to each of the interrupt service routines. Note that the jump table must begin on a page  
(256 byte) boundary because the first vector starts at 00. If Autovectoring is not used  
(AVEN=0), the IVEC register may be directly inspected to determine the USB interrupt  
source (see Section 9.11, "Autovector Coding").  
Each bulk endpoint interrupt has an associated interrupt enable bit (in IN07IEN and  
OUT07IEN), and an interrupt request bit (in IN07IRQ and OUT07IRQ). The interrupt  
service routine. IRQ bits are cleared by writing a “1.” Because all USB registers are  
accessed using “movx@dptr” instructions, USB interrupt service routines must save and  
restore both data pointers, the DPS register, and the accumulator before clearing interrupt  
request bits.  
Note  
Any USB ISR should clear the 8051 INT2 interrupt request bit before clearing any of the  
EZ-USB endpoint IRQ bits, to avoid losing interrupts. Interrupts are discussed in more  
detail in Chapter 9, "EZ-USB Interrupts."  
Individual interrupt request bits are cleared by writing “1” to them to simplify code. For  
example, to clear the endpoint 2-IN IRQ, simply write “0000100” to IN07IRQ. This will  
not disturb the other interrupt request bits. Do not read the contents of IN07IRQ, logi-  
cal-OR the contents with 01, and write it back. This clears all other pending interrupts  
because you are writing “1”s to them.  
6.14 Interrupt Bulk Transfer Example  
This simple (but fully-functional) example illustrates the bulk transfer mechanism using  
interrupts. In the example program, BULK endpoint 6 is used to loop data back to the  
host. Data sent by the host over endpoint 2-OUT is sent back over endpoint 2-IN.  
Page 6-16  
Chapter 6. EZ-USB CPU  
EZ-USB TRM v1.9  
 复制成功!