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

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.44: USB Endpoint 0 CSR
Figure 1.45: USB Endpoint 0 MAXP
2.18.4.13 USB Endpoint 0 MAXP Register
data will be in the FIFO. For this case, because the SETUP_END bit is set near the beginning of the packet
when the SETUP PID is encountered and the OUT_PKT_RDY bit is set at the end of the packet, the value
read from EP0IN_CSR in the USB functional interrupt routine may only show that the SETUP_END bit as “1”
instead of both the SETUP_END and OUT_PKT_RDY bits.
• EP0CSR6 and EP0CSR7:
These bits are used to clear EP0CSR0 and EP0CSR5 respectively. Writing a “1” to these bits clears the cor-
responding register bit.
The USB Endpoint 0 MAXP Register, shown in Figure 1.45, indicates the maximum packet size (MAXP) of
Endpoint 0 IN/OUT packet. The default value for Endpoint 0 MAXP is 8 bytes.
USB Endpoint 0 Control and Status Register (Note 5)
b7
b6
USB Endpoint 0 MAXP Register
b5
b7
0 0
b4
b6
b3
b5
b2
b4
b3
b1
b2
b0
Note 1: Read only
Note 2: Write "1" only or Read
Note 3: Write "0" only or Read
Note 4: Write only - Read "0"
Note 5: Refer to Section 5.5 "Programming Notes" for this register
b1
Bit symbol
EP0CSR0
EP0CSR1
EPOCSR2
EPOCSR3
EP0CSR4
EPOCSR5
EP0CSR6
EPOCSR7
b0
Symbol
EP0CS
EP0MXP0 to
EP0MXP5
Bit symbol
Reserved
Symbol
EP0MP
OUT_PKT_RDY Flag
IN_PKT_RDY Bit
SEND_STALL Bit
DATA_END Bit
FORCE_STALL Flag
SETUP_END Flag
SERVICED_OUT_PKY_RDY Bit
SERVICED_SETUP_END Bit
Maximum packet size (MAXP)
of Endpoint 0 IN/OUT packet
Bit name
1-58
Bit name
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Address
0311
0 : Not ready
1 : Ready
0 : Not ready
1 : Ready
0 : No action
1 : Stall Endpoint 0 by CPU
0 : No action
1 : Last packet transferred from/to FIFO
0 : No action
1 : Stall Endpoint 0 by USB FCU
0 : No action
1 : Control transfer ended before specific
0 : No change
1 : Clear the OUT_PKT_RDY bit (EPOCSR0)
0 : No change
1 : Clear the STUP-END bit (EP0CSR5)
Address
16
0313
length of data transferred during data phase
16
Must always be set to "0"
Function
When reset
Function
08
Mitsubishi microcomputers
When reset
00
16
16
M30240 Group
R
W
R
Note 2
Note 1
Note 4
Note 4
Note 1
Note 2
Note 3
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
W

Related parts for M30240ECFP