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

AN2131QC 参数 Datasheet PDF下载

AN2131QC图片预览
型号: AN2131QC
PDF下载: 下载PDF文件 查看货源
内容描述: 在EZ - USBTM集成电路 [The EZ-USBTM Integrated Circuit]
分类和应用:
文件页数/大小: 334 页 / 1468 K
品牌: CYPRESS [ CYPRESS ]
 浏览型号AN2131QC的Datasheet PDF文件第164页浏览型号AN2131QC的Datasheet PDF文件第165页浏览型号AN2131QC的Datasheet PDF文件第166页浏览型号AN2131QC的Datasheet PDF文件第167页浏览型号AN2131QC的Datasheet PDF文件第169页浏览型号AN2131QC的Datasheet PDF文件第170页浏览型号AN2131QC的Datasheet PDF文件第171页浏览型号AN2131QC的Datasheet PDF文件第172页  
Referring to the logic inside the dotted lines, each USB interrupt source has an interrupt  
request latch. The EZ-USB core sets an IRQ bit, and the 8051 clears an IRQ bit by writing  
a “1” to it. The output of each latch is ANDed with an IEN (Interrupt Enable) bit and then  
ORd with all the other USB interrupt request sources.  
The EZ-USB core prioritizes the USB interrupts, and constructs an Autovector, which  
appears in the AVEC register. The interrupt vector values IV[4..0] are shown to the left of  
the interrupt sources (shaded boxes). 00 is the highest priority, 15 is the lowest. If two  
USB interrupts occur simultaneously, the prioritization affects which one is first indicated  
in the AVEC register. If the 8051 has enabled Autovectoring, the AVEC byte replaces  
byte 0x45 in 8051 program memory. This causes the USB interrupt automatically to vec-  
tor to different addresses for each USB interrupt source. This mechanism is explained in  
detail in Section 9.10, "USB Autovectors."  
Due to the OR gate in Figure 9-2, any of the USB interrupt sources sets the 8051 USB  
interrupt request latch, whose state appears as an interrupt request in the 8051 SFR bit  
EXIF.4. The 8051 enables the USB interrupt by setting SFR bit EIE.0. To clear the USB  
interrupt request the 8051 writes a zero to the EXIF.4 bit. Note that this is the opposite of  
clearing any of the individual USB interrupt sources, which the 8051 does by writing a “1”  
to the IRQ bit.  
When a USB resource requires service (for example, a SOF token arrives or an OUT token  
arrives on a BULK endpoint), two things happen. First, the corresponding Interrupt  
Request Latch is set. Second, a pulse is generated, ORd with the other USB interrupt  
logic, and routed to the 8051 INT2 input. The pulse is required because INT2 is edge trig-  
gered.  
When the 8051 finishes servicing a USB interrupt, it clears the particular IRQ bit by writ-  
ing a “1” to it. If any other USB interrupts are pending, the act of clearing the IRQ causes  
the EZ-USB core logic to generate another pulse for the highest-priority pending interrupt.  
If more that one is pending, they are serviced in the priority order shown in Figure 9-2,  
starting with SUDAV (priority 00) as the highest priority, and ending with EP7-OUT (pri-  
ority 15) as the lowest.  
Important  
It is important in any USB Interrupt Service Routine (ISR) to clear the 8051 INT2 inter-  
rupt before clearing the particular USB interrupt request latch. This is because as soon  
as the USB interrupt is cleared, any pending USB interrupt will pulse the 8051 INT2  
input, and if the INT2 interrupt request latch has not been previously cleared the pending  
interrupt will be lost.  
EZ-USB TRM v1.9  
Chapter 9. EZ-USB Interrupts  
Page 9-5  
 复制成功!