
EZ-USB FX2 Technical Reference Manual
Page 15-6 EZ-USB FX2 Technical Reference Manual v2.1
Writing any value to INT2CLR or INT4CLR clears the INT2 or INT4 interrupt request bit for the
INT2/INT4 interrupt currently being serviced.
Writing to one of these registers has the same effect as clearing the appropriate interrupt request
bit in the FX2 external register space. For example, suppose the EP2 Empty Flag interrupt is
asserted. The FX2 automatically sets bit 1 of the EP2FIFOIRQ register (in External Data memory
space, at 0xE651), and asserts the INT4 interrupt request.
Using autovectoring, the FX2 automatically calls (vectors to) the EP2_FIFO_EMPTY 2 Interrupt
Service Routine (ISR). The first task in the ISR is to clear the interrupt request bit, EP2FIFOIRQ.1.
AUTOPTRL2 Autopointer 2 Address LOW SFR 0x9E
b7 b6 b5 b4 b3 b2 b1 b0
A7 A6 A5 A4 A3 A2 A1 A0
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 0 0 0 0 0
IOC Port C (bit addressable) SFR 0xA0
b7 b6 b5 b4 b3 b2 b1 b0
D7 D6 D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W
x x x x x x x x
INT2CLR Interrupt 2 Clear SFR 0xA1
b7 b6 b5 b4 b3 b2 b1 b0
x x x x x x x x
W W W W W W W W
x x x x x x x x
INT4CLR Interrupt 4 Clear SFR 0xA2
b7 b6 b5 b4 b3 b2 b1 b0
x x x x x x x x
W W W W W W W W
x x x x x x x x
Comentários a estes Manuais