M30240ECFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30240ECFP Datasheet - Page 62

no-image

M30240ECFP

Manufacturer Part Number
M30240ECFP
Description
M30240 Group Specification
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Specifications in this manual are tentative and subject to change
Universal Serial Bus
Figure 1.50: USB Endpoint x OUT MAXP
Figure 1.51: USB Endpoint x OUT WRT CNT
Figure 1.52: USB Endpoint x FIFO Register
2.18.4.18 USB Endpoint x OUT MAXP Register
2.18.4.19 USB Endpoint x OUT WRT CNT Register
2.18.4.20 USB Endpoint x FIFO Register
The USB Endpoint x OUT MAXP Register, shown in Figure 1.50, indicates the maximum packet size (MAXP)
of an Endpoint x OUT packet. The default values for endpoints 1-4 are 0 bytes. The setting of this register also
affects the configuration of single/dual packet operation. When MAXP > 1/2 of the FIFO size, single packet is
set. When MAXP <= 1/2 of the FIFO size, dual packet mode is set.
The USB Endpoint x OUT WRT CNT Register, shown in Figure 1.51, contains the number of bytes of the cur-
rent data set in the OUT FIFO. The USB FCU sets the value in the Write Count Register after having success-
fully received a packet of data from the host. The CPU reads the register to determine the number of bytes to
be read from the FIFO.
The USB Endpoint x FIFO Register, shown in Figure 1.52 is the USB IN (transmit) and OUT (receive) FIFO
data register. The CPU writes data to this register for the corresponding Endpoint IN FIFO and reads data from
this register for the corresponding Endpoint OUT FIFO.
USB Endpoint x FIFO Register
b7
USB Endpoint x OUT MAXP Register
b7
USB Endpoint x OUT Write Count Register
b7
b6
b6
b6
b5
b5
b5
b4
b4
b4
b3
b3
b3
b2
b2
b2
b1
b1
b1
b0
b0
b0
Bit symbol
Bit symbol
DATA_0
to
DATA_7
Symbol
EPi (i = 0-4)
OMAXP0
to
OMAXP7
Bit symbol
Symbol
EPiOMP (i = 1-4)
W_CNT0
to
W_CNT7
Symbol
EPiWC (i = 1-4)
Maximum packet size
(MAXP) of Endpoint x
OUT packet.
Endpoint x IN/OUT FIFO
register
Receive Byte Count
0338
Bit name
Bit name
16,
031C
031D
1-62
Bit name
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
0339
16,
16,
16,
0324
0325
033A
Address
Address
For endpoints that support smaller
FIFO size, unused bits are not
implemented, (always write "0" to
those bits).
16,
Address
16,
032C
16,
032D
033B
16,
16,
0334
16,
0335
Function
033C
Function
Function
16
16
When reset
When reset
16
00
16
00
Mitsubishi microcomputers
16
M30240 Group
Indeterminate
When reset
R
R
W
R
W
X
W
X

Related parts for M30240ECFP