![Sino Wealth SH61F83 Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/sino-wealth/sh61f83/sh61f83_manual_1283060032.webp)
SH61F83
32
7.3. Interrupt Flag
00DAH
IF1
Initial Value
Interrupt Control Flag
Bit[7:5]
-
0b
-
Reserved
Bit4
TC0
0b
R/W
Time Capture 0 Interrupt flag
. Set by hardware when the eight bits are
received or end condition is detected. Cleared by hardware when interrupt is
processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit3
T1
0b
R/W
Base Timer 1 Interrupt flag
. Set by hardware when the Base timer1
overflow is detected. Cleared by hardware when interrupt is processed.
Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit2
-
0b
-
Reserved
Bit1
T0
0b
R/W
Base Timer 0 Interrupt flag
. Set by hardware when the Base Timer0 over
flow is detected. Cleared by hardware when interrupt is processed.
Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit0
EXT0
0b
R/W
External Interrupt 0 flag
. Set by hardware when the P46 falling edge signal
is detected. Cleared by hardware when interrupt is processed.
Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
00DBH
IF2
Initial Value
Interrupt Control Flag
Bit7
-
0b
-
Reserved
Bit6
FUN
0b
R/W
FUN Interrupt flag
. Set by hardware when an invalid program ROM address
is detected or the idle time of USB bus large then 5ms. Cleared by hardware
when interrupt is processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit5
SIE
0b
R/W
When OUT0, IN0, IN1 or IN2 is responded by a NAK, responds ACK to IN1,
IN2 or responds STALL to IN0 or OUT0 tokens, SIE will be set. Cleared by
hardware when interrupt is processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit4
OUT0
0b
R/W
When OUT token for endpoint 0 is done, it will set the OUT0 flag. Cleared by
hardware when interrupt is processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit3
IN0
0b
R/W
When IN token for endpoint 0 is done, it will set the IN0 flag. Cleared by
hardware when interrupt is processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit2
OT0ERR
0b
R/W
When an Out token with wrong data sequence is received, OT0ERR will be
set 1. Cleared by hardware when interrupt is processed. Write “0” to clear,
write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit1
OWSTUP
0b
R/W
When a receiving setup token overwrites the existing data in FIFO, R0_OW
will set 1. After the overwriting setup packet is received and a following IN or
OUT token happens, OWSTUP is set. Cleared by hardware when interrupt is
processed. Write “0” to clear, write “1” no effect.
Reset Source: Hardware reset or USB reset
Bit0
STUP
0b
R/W
When a SETUP TOKEN for endpoint 0 is done, it will set the STUP flag.
Cleared by hardware when interrupt is processed. Write “0” to clear, write “1”
no effect.
Reset Source: Hardware reset or USB reset