EasyManua.ls Logo

Sharp LH79524 - Interrupt Register for Endpoint 0, 1, 2, and 3 (IIR); Table 17-8. IIR Register; Table 17-9. IIR Fields

Sharp LH79524
555 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Universal Serial Bus Device LH79524/LH79525 User’s Guide
17-12 Version 1.0
17.2.2.3 Interrupt Register for Endpoint 0, 1, 2, and 3 (IIR)
IIR is a read-only register that indicates which of the interrupts for IN Endpoints 1, 2, and
3 are currently active. It also indicates whether the Endpoint 0 (the Control Endpoint) inter-
rupt is currently active. Upon interrupt, software should read each of the three interrupt reg-
isters (IIR, OIR, and UIR), which clears the interrupt bit. The UIR must be the last register
read and cleared.
Table 17-8. IIR Register
BIT 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
FIELD ///
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
BIT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FIELD ///
EP3IN
EP2IN
EP1IN
EP0IN
RESET 0000000000000000
TYPE RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
ADDR 0xFFFF5000 + 0x008
Table 17-9. IIR Fields
BITS NAME FUNCTION
31:4 /// Reserved Reading returns 0. Write the reset value.
3EP3IN
Endpoint3 IN Interrupt The EP3 interrupt is generated for Interrupt IN transfers. This bit
is programmed to 1 by the USB when: IN_PKT_RDY is cleared to 0 by the USB; The FIFO
is flushed by the USB; and USB has issued a STALL response IN token, indicated by
SENT_STALL = 1. Software clears this interrupt by reading this register.
1 = Interrupt IN transfer pending
0 = Interrupt cleared or the above conditions are not met
2EP2IN
Endpoint2 IN Interrupt The EP2 interrupt is generated for Isochronous Interrupt IN transfers.
The USB block programs this bit to 1 when IN_PKT_RDY bit is cleared to 0 by the USB Host,
the FIFO is flushed by the USB Host, and the USB Host has issued a STALL response IN token,
as indicated by SENT_STALL = 1. Software clears this interrupt by reading this register.
1 = Isochronous Interrupt IN transfer pending
0 = Interrupt cleared or the above conditions are not met
1EP1IN
Endpoint1 IN Interrupt The EP1 interrupt is generated for BULK IN transfers. The USB
block programs this bit to 1 when IN_PKT_RDY bit is cleared to 0 by the USB Host, the FIFO
is flushed by the USB Host, and the USB Host has issued a STALL response IN token, as
indicated by SENT_STALL = 1. Software clears this interrupt by reading this register.
1 = BULK IN transfer pending and the above three conditions are met
0 = Interrupt cleared or the above conditions are not met
0EP0IN
Endpoint 0 Interrupt The EP0 interrupt is generated for Control transfers. The EP0 inter-
rupt is programmed to 1 by the USB block when: OUT_PKT_RDY is set to 1 by the USB Host;
IN_PKT_RDY is cleared to 0 by the USB Host; SENT_STALL is set to 1 by the USB Host;
SETUP_END is set to 1 by the USB Host; and DATA_END is cleared to 0 by the USB Host
(Indicates end of control transfer). Software clears this interrupt by reading this register.
1 = EP0 interrupt set
0 = EP0 interrupt cleared or the above conditions are not met

Table of Contents

Related product manuals