Renesas M16C Series User Manual page 156

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
Setting the size and start location of IN/OUT FIFO
www.DataSheet4U.com
(b15)
b7
0
0
(b15)
b7
0
0
Figure 2.8.19. Initialization procedure of endpoint (1)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Initialization of endpoint 0 (Control transfer)
(b15)
(b8)
b7
b0
b7
0
0
0
0
0
0
0 0
0
(b8)
b0
b7
0
0
(b8)
b0
b7
0
0
page 147 of 354
Initialization of Endpoint
b0
USB endpoint 0 MAXP register [Address 029A
EP0MP
Maximum packet size of endpoint 0 IN/OUT
b0
USB Endpoint x IN FIFO configuration register
EPxIFC (x=1 to 4) [Address 02A2
IN FIFO buffer start number
Select the starting number for the EPx IN FIFO (in units of 64 bytes)
000000 : buffer starting location = 0
000001 : buffer starting location = 64
000010 : buffer starting location = 128
......
101111 : buffer starting location = 3008 (last starting number)
IN FIFO buffer size
Select the buffer size for the EPx IN FIFO (in units of 64 bytes)
0000 : buffer size = 64
0001 : buffer size = 128
0010 : buffer size = 192
......
1111 : buffer size = 1024 (largest buffer size)
Double buffer mode
0 : Double buffer mode disabled
1 : Double buffer mode enabled
Continuous transfer mode (Note)
0 : Continuous transfer disabled
1 : Continuous transfer enabled
b0
USB Endpoint x OUT FIFO configuration register
EPxOFC (x=1 to 4) [Address 02BC
OUT FIFO buffer start number
Select the starting number for the EPx OUT FIFO (in units of 64 bytes)
000000 : buffer starting location = 0
000001 : buffer starting location = 64
000010 : buffer starting location = 128
......
101111 : buffer starting location = 3008 (last starting number)
OUT FIFO buffer size
Select the buffer size for the EPx OUT FIFO (in units of 64 bytes)
0000 : buffer size = 64
0001 : buffer size = 128
0010 : buffer size = 192
......
1111 : buffer size = 1024 (largest buffer size)
Double buffer mode
0 : Double buffer mode disabled
1 : Double buffer mode enabled
Continuous transfer mode (Note)
0 : Continuous transfer disabled
1 : Continuous transfer enabled
Continued to the next page
2. USB function
]
16
, 02A8
, 02AE
, 02B4
]
16
16
16
16
, 02C4
, 02CC
, 02D4
]
16
16
16
16
Note: Valid when bulk tranfer.

Advertisement

Table of Contents
loading

Table of Contents