M66596FP/WG
rev .1.00
2006.3.14
page 45 of 127
Pipe configuration register [PIPECFG]
<Address: 66H>
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TYPE
BFRE
DBLB CNTMD SHTNAK
DIR
EPNUM
0
?
0
-
0
-
0
-
0
-
0
?
0
-
0
-
0
-
0
-
0
-
0
Bit
Name
Function
S/W
H/W
Note
15-14 TYPE
Transfer type
00: Pipe use disabled
01: Bulk transfer
10: Interrupt transfer
11: Isochronous transfer
R/W
R
13-11 Nothing is placed here. These should be fixed at “0”.
10
BFRE
BRDY interrupt operation specified
0: BRDY interrupt upon sending or receiving of
data
1: BRDY interrupt upon reading of data
R/W
R
9
DBLB
Double buffer mode
0: Single buffer
1: Double buffer
R/W
R
8
CNTMD
Continuous transfer mode
0: Non-continuous transfer mode
1: Continuous transfer mode
R/W
R
7
SHTNAK
Pipe disabled at end of transfer
0: Pipe continued at end of transfer
1: Pipe disabled at end of transfer
R/W
R
6-5 Nothing is placed here. These should be fixed at “0”.
4
DIR
Transfer direction
0: Receiving (OUT transfer)
1: Sending (IN transfer)
R/W
R
3-0 EPNUM
End point number
Specifies the end point number for the pertinent
pipe
R/W
R
<<Notes>>
*2) By the pipe number selected in the PIPESEL bit of a PIPESEL register, the value can be set as follows.
When using PIPE1-5, this bit can select "TYPE=00", "TYPE=01", or "TYPE=11".
When using PIPE6-7, this bit should be set "TYPE=10".
*3) If "BFRE=1” is set, BRDY interrupts are not generated when the buffer is set to the data writing direction.
*4) The DBLB bit is valid when PIPE1-5 are selected.
The procedure to change the DBLB bit for a PIPE is as following;
(a) Single buffer to double buffer (“DBLB=0” to “DBLB=”1”);
Set the PID bit to “NAK” for the pertinent pipe
→ “ACLRM=1” → (wait at least 100ns) → “ACLRM=0”
→ “DBLB=”1” → Set the PID bit to “BUF” for the pipe
(b) Double buffer to singlee buffer (“DBLB=1” to “DBLB=”0”);
Set the PID bit to “NAK” for the pertinent pipe
→ “DBLB=”0” → “ACLRM=1” → (wait at least 100ns) →
“ACLRM=0”
→ Set the PID bit to “BUF” for the pipe
*5) The CNTMD bit is valid when bulk transfer (“TYPE=01”) is selected using PIPE1-5. “CNTMD=1” should not be
set when isochronous transfer has been selected (“TYPE=11”).
The CNTMD bit should not be set “1” for PIPE6-7.