English
Language : 

M66291GP Datasheet, PDF (76/126 Pages) Renesas Technology Corp – ASSP (USB2.0 Device Controller)
M66291GP/HP
2.39 EPi Configuration Registers 0 (i=1~6)
Q EP1 Configuration Register 0 (EP1_0CONFIG)
Q EP2 Configuration Register 0 (EP2_0CONFIG)
Q EP3 Configuration Register 0 (EP3_0CONFIG)
Q EP4 Configuration Register 0 (EP4_0CONFIG)
Q EP5 Configuration Register 0 (EP5_0CONFIG)
Q EP6 Configuration Register 0 (EP6_0CONFIG)
<Address : H’60>
<Address : H’64>
<Address : H’68>
<Address : H’6C>
<Address : H’70>
<Address : H’74>
b15 14 13 12 11
EPi_DIR EPi_
EPi_TYP
ITMD
0
0
0
0
0
-
-
-
-
-
-
-
-
-
-
10 9
EPi_Buf_siz
0
0
-
-
-
-
b
15~14
EPi_TYP
Transfer Type
Bit name
13
12
11~8
7
6
5~0
EPi_DIR
Transfer Direction
EPi_ITMD
Interrupt Toggle Mode
EPi_Buf_siz
Buffer Size
EPi_DBLB
Double Buffer Mode
EPi_RWMD
Continuous Transmit/Receive Mode
EPi_Buf_Nmb
Buffer Start Number
8
7
6
5
EPi_ EPi_
DBLB RWMD
0
0
0
0
-
-
-
-
-
-
-
-
4
3
2
1 b0
EPi_Buf_Nmb
0
0
0
0
0
-
-
-
-
-
-
-
-
-
-
<H/W reset : H'0000>
<S/W reset : ->
<USB bus reset : ->
Function
RW
00 : Invalid
{{
01 : Bulk transfer
10 : Interrupt transfer
11 : Isochronous transfer
0 : OUT buffer (Receives data from the host)
{{
1 : IN buffer (Transmits data to the host)
0 : Enable data resend function (normal toggle mode)
{{
1 : Disable data resend function (forced toggle mode)
Endpoint buffer size
{{
0 : Single buffer mode
1 : Double buffer mode
0 : Single transmit /receive mode
1 : Continuous transmit/receive mode
The top block number of buffer
{{
{{
{{
(1) EPi_TYP (Transfer Type) Bits (b15~b14)
These bits are used to set the transfer type of the endpoint.
(2) EPi_DIR (Transfer Direction) Bit (b13)
This bit is used to set the transfer direction of the endpoint.
After switching the transfer direction, clear the buffer by the BCLR bit.
(3) EPi_ITMD (Interrupt Toggle Mode) Bit (b12)
This bit sets the enable/disable of data resend function at interrupt transfer.
This bit can be set to “1” only when the transfer type is set to interrupt transfer (EPi_TYP bits = “10”). Set this
bit to “0” for other transfer modes.
When the data resend function is set to disable, the new data is transmitted at the next transmission by
toggling the DATA PID and the buffer, even if the ACK is not received after transmitting the data at interrupt
transfer. Here, the IVAL bit is cleared to “0” and the EPB_RDY bit is set to “1” (buffer ready interrupt has
occurred).
When the data resend function is set to enable, the normal toggle sequence is executed. When the
transmission completes normally, the DATA PID and the buffer got toggled to transmit the next data. In case
ACK cannot be received after the data is transmitted, the DATA PID and the buffer do not get toggle, and the
same data in the buffer is resent.
Rev1.01 2004.11.01 page 76 of 122