Renesas M16C Series User Manual page 195

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

Advertisement

M30245 Group
USB endpoint x(x=1 to 4) OUT MAXP register
This register indicates endpoint x(x=1~4) OUT maximum packet size. The default value is 0 byte.
When the endpoint is initialized due to any reason such as that the request for setting the endpoint
(SET_DESCRIPTOR, SET_CONFIGURATION, SET_INTERFACE, etc.) is received from the host
CPU, change the endpoint x OUT maximum packet size value by writing in this register. Set a packet
size value specified for every transfer type to be used.
The configuration of USB endpoint x(x=1 to 4) OUT MAXP register is shown in Figure 2.8.41.
www.DataSheet4U.com
USB Endpoint x OUT MAXP register
(b15)
b7
0 0 0 0 0 0
Figure 2.8.41. USB endpoint x(x=1 to 4) OUT MAXP register
USB endpoint x(x=1 to 4) OUT write count register
This 11-bit register contains the number of bytes of one buffer data written in the endpoint x(x=1~4)
OUT FIFO. This register is for read-only. When the USB function control unit completes the data
packet receive from the host CPU, set the value of this register. When one buffer data receive com-
pletes, read this register and determine the byte count of the data to be read from OUT FIFO. This
register value is not decremented even if the data are read from USB endpoint x OUT FIFO register .
When this register is read while there are two buffer data in OUT FIFO in the double buffer mode, the
number of bytes of the packet data received at first is already stored. When CLR_OUT_BUF_RDY bit
is set to "1" after one buffer data is read from OUT FIFO, this register value is updated to the number
of bytes of buffer data subsequently received.
The configuration of USB endpoint x(x=1 to 4) OUT write count register is shown in Figure 2.8.42.
USB Endpoint x OUT Write Count register
(b15)
b7
0 0 0 0 0
Figure 2.8.42. USB endpoint x(x=1 to 4) OUT write count register
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
(b8)
b0
b7
b0
(b8)
b0
b7
b0
page 186 of 354
Address
Symbol
EPxOMP (x = 1 - 4)
02B8
16
02C8
16
Bit Symbol
Bit Name
Maximum packet size
OMAXP9-0
Reserved
Address
Symbol
EPxWC (x = 1 - 4)
02BA
02CA
Bit Symbol
Bit Name
Receive byte count
WCNT10-0
Reserved
2. USB function
When reset
, 02C0
,
0000
16
16
, 02D0
16
Function
Set maximum packet size of
EPx OUT
Must always be "0"
When reset
, 02C2
,
0000
16
16
16
, 02D2
16
16
Function
The byte count of receive one buffer
data in the EPx OUT FIFO is set.
Must always be "0"
R W
O O
O O
R W
O X
O O

Advertisement

Table of Contents
loading

Table of Contents