USB DEVICE CONTROLLER
M66290AGP/FP
MITSUBISHI <DIGITAL ASSP>
38
Appoint the first number of the buffer of a unit of 64Bytes.
Buffer exists from #00h to #2Fh.
Buffer size(double of the buffer size in double buffer mode), which is
appointed from the first, is secured for endpoint buffer.
Set that plural of endpoint do not occupy the same buffer area.
If "1" is written into this bit, continuous transfer mode of endpoint is set.
When the direction of endpoint is set to OUT, then it is set to continuous
receive mode. And when the direction of endpoint is set to IN, then it is
set to continuous transmit mode.
Continuous receive mode can receive data packet up to the buffer size
which is set, or can receive continuously before receives short packet.
Continuous transmit mode can transmit data packet up to the buffer size
which is set, and transmission of short packet can be done by set the
IVAL flag.
In data packet (max packet size) receive which is less than buffer
size, interrupt to CPU does not occur.
Continuous transfer mode is effective only in bulk transfer.
Function
Name
Bit
Name
Bit
Reset
-
0
W/R
Continuous
transfer mode
(only for Bulk
transfer)
-
0
W/R
Set the constitution of endpoint buffer.
0 : Single buffer mode
1 : Double buffer mode
In double buffer mode, double of the buffer size is taken as the endpoint
buffer.
Double buffer mode
EPi_DBLB
7
-
00
W/R
-
0
W/R
-
0
W/R
-
0000
W/R
-
00h
W/R
6
EPi_
RWMD
Set endpoint buffer size at a unit of 64Bytes.
"0000"=64Bytes, "0001"=128Bytes, ...., "1110"=960Bytes,
"1111"=1024Bytes
To set the sequence toggle bit mode of interrupt transfer.
0 : Alternation data toggle bit mode
(Only toggled when transfer completed with no problem)
1 : Continuous toggle bit mode
(Whatever the hand shake exists or the types are, it toggles
every time when data packet is transmitted )
This is effective when endpoint is set to interrupt(IN) transfer.
To set the transfer direction of endpoint
0 : OUT (receive data from host)
1 : IN (transmit data to host)
When changed the state of transfer direction, clear (EPi_ACLR)
the endpoint buffer.
To set the transfer type of endpoint.
00 : not Configured
01 : bulk transfer
10 : interrupt transfer
11 : isochronous transfer
Buffer start number
EPi_Buf_
Nmb[5:0]
Buffer size
EPi_Buf_
siz[3:0]
Interrupt toggle
mode
EPi_ITMD
Transfer direction
EPi_DIR
Transfer type
EPi_TYP
[1:0]
11 to 8
12
5 to 0
13
15 to 14
W/R
USB
S/W
H/W
RWMD
DBLB
EPi_TYP[1:0]
DIR
ITMD
EPi_Buf_siz[3:0]
EPi_Buf_Nmb[5:0]
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D15
D13
D14
(4-7) EPi Configuration Register 0 ( i=1 to 5)
(Address : EP1=60h, EP2=64h, EP3=68h, EP4=6Ch, EP5=70h)
The EPi configuration register 0 must be set in a state of response PID is NAK("00").