![](http://datasheet.mmic.net.cn/30000/M38K07M4L-XXXHP_datasheet_2360578/M38K07M4L-XXXHP_63.png)
1-45
38K0 Group User’s Manual
HARDWARE
FUNCTIONAL DESCRIPTION
b7
b0
B0VAL02
b7:b1
–
0
–
EP02 control register 2 (EP02CON2) [address 001B16]
Bit name
Bit symbol
At reset
Function
H/W
S/W
O
–: State remaining
Buffer 0 enable bit
Not used
When the selected endpoint is IN, writing “1” to this bit
makes the transmitting data a set state (SIE is possible
to read).
When the selected endpoint is OUT, writing “1” to this
bit makes data reception possible (SIE is possible to
write).
Write “0” when writing.
“0” is read when reading.
00
0
00
0
W
R
Fig. 57 Structure of EP02 control register 2
b7
b0
B1VAL02
b7:b1
–
0
–
EP02 control register 3 (EP02CON3) [address 001C16]
Bit name
Bit symbol
At reset
Function
H/W
S/W
O
–: State remaining
Buffer 1 enable bit
Not used
When the selected endpoint is IN, writing “1” to this bit
makes the transmitting data a set state (SIE is possible
to read).
When the selected endpoint is OUT, writing “1” to this
bit makes data reception possible (SIE is possible to
write).
In double buffer mode this bit is valid.
Write “0” when writing.
“0” is read when reading.
00
0
00
0
W
R
Fig. 58 Structure of EP02 control register 3
Fig. 59 Structure of EP02 interrupt source register
b7
b0
B0RDY02
B1RDY02
ERR02
b7 to b3
0
–
0
–
EP02 interrupt source register (EP02REQ) [address 001D16]
Bit name
Bit symbol
At reset
Function
H/W
S/W
O
USB function/Endpoint 2 buffer 0
ready interrupt bit
USB function/Endpoint 2 buffer 1
ready interrupt bit
USB function/Endpoint 2 error
interrupt bit
Not used
0 : No interrupt request issued
1 : Interrupt request issued
This bit is set to “1” when the buffer 0 is ready state
(enabled to be read/written) on USB function/Endpoint 2.
“0” can be set by software, but “1” cannot be set.
0 : No interrupt request issued
1 : Interrupt request issued
In single buffer mode this bit is invalid.
This bit is set to “1” when the buffer 1 is ready state
(enabled to be read/written) on USB function/Endpoint 2
in double buffer mode.
“0” can be set by software, but “1” cannot be set.
0 : No interrupt request issued
1 : Interrupt request issued
This bit is set to “1” when STALL response occurs on
USB function/Endpoint 2.
“0” can be set by software, but “1” cannot be set.
Write “0” when writing.
“0” is read when reading.
00
0
00
W
R