Download GPL162002A/162003A Programming Guide
Transcript
GPL162002A/162003A Programming Guide P_USBD_INTF Bit 15 0x7B3A 14 13 12 11 USB Interrupt Flag Register 10 9 8 7 6 5 4 3 2 1 0 Function RST RME SUS IINNA IINPC BONA BOPS BINA BIPC E0SNA E0SC E0INNA E0INPC E0ONA E0OPS E0SPS Default 0 0 0 0 Bit Function Type 15 RST R/W 0 RME R/W 0 0 0 0 0 0 Description the corresponding 0 0 0 Read 0= Not occurred of Read 1= Occurred P_USBD_INTEN is 1 and the USB device is Write 0= No effect reset, the interrupt flag will be set. Write 1= Clear the flag Resume Interrupt Flag Read 0= Not occurred enable bit l a i e t n s e U d i f n 司 o C 公 s 限 u 有 l p 份 l a r e 股 n e 技 G 科 格 普 If the corresponding 0 Condition Reset Interrupt Flag If 14 0 enable bit y l n O of Read 1= Occurred P_USBD_INTEN is 1 and the USB device Write 0= No effect resumes in SUSPEND state, the interrupt Write 1= Clear the flag flag will be set. 13 SUS R/W Suspend Interrupt Flag If 12 IINNA R/W Read 1= Occurred P_USBD_INTEN is 1 and the USB device is Write 0= No effect suspended, the interrupt flag will be set. Write 1= Clear the flag Interrupt In NACK Interrupt Flag Read 0= Not occurred the corresponding Read 0= Not occurred of If the corresponding enable enable bit of Read 1= Occurred P_USBD_INTEN is 1 and an IN request bit Write 0= No effect happens with rplying a NAK to the host, this Write 1= Clear the flag bit will be set. 11 IINPC R/W Interrupt In Packet Clear Interrupt Flag If 10 BONA R/W Read 1= Occurred P_USBD_INTEN is 1 and an IN packet is Write 0= No effect read from the host, this bit will be set. Write 1= Clear the flag Bulk Out NACK Interrupt Flag Read 0= Not occurred r o F 9 the corresponding corresponding enable enable bit Read 0= Not occurred of If the of Read 1= Occurred P_USBD_INTEN is 1 and an OUT packet bit Write 0= No effect happens but the device sends a NAK, this Write 1= Clear the flag bit will be set. BOPS R/W Bulk Out Packet Set Interrupt Flag If the corresponding enable Read 0= Not occurred of Read 1= Occurred P_USBD_INTEN is 1 and an OUT packet is bit Write 0= No effect loaded into the endpoint0 FIFO, this bit will Write 1= Clear the flag be set. 8 BINA R/W Bulk In NACK Interrupt Flag If the corresponding enable Read 0= Not occurred of Read 1= Occurred P_USBD_INTEN is 1 and an IN request bit Write 0= No effect happens with rplying a NAK to the host, this Write 1= Clear the flag bit will be set. © Generalplus Technology Inc. PAGE 193 V1.0 – Dec. 20, 2006