Renesas M16C Series User Manual page 73

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

Advertisement

M30240 Group
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 flag 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.
USB Endpoint 0 Control and Status Register (Note 5)
b7
b6
b5
b4
b3
b2
Figure 1.44: USB Endpoint 0 CSR
1.2.18.4.12 USB Endpoint 0 MAXP Register
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 MAXP Register
b7
b6
b5
0 0
Figure 1.45: USB Endpoint 0 MAXP
Rev.1.00 Sep 24, 2003 Page 55 of 360
b1
b0
Symbol
EP0CS
Bit symbol
Bit name
OUT_PKT_RDY Flag
EP0CSR0
IN_PKT_RDY Bit
EP0CSR1
SEND_STALL Bit
EPOCSR2
DATA_END Bit
EPOCSR3
FORCE_STALL Flag
EP0CSR4
SETUP_END Flag
EPOCSR5
SERVICED_OUT_PKY_RDY Bit
EP0CSR6
SERVICED_SETUP_END Bit
EPOCSR7
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 1.5.5 "Programming Notes" for this register
b4
b3
b2
b1
b0
Symbol
EP0MP
Bit symbol
Maximum packet size (MAXP)
EP0MXP0 to
EP0MXP5
of Endpoint 0 IN/OUT packet
Reserved
Address
0311
16
Function
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
length of data transferred during data phase
0 : No change
1 : Clear the OUT_PKT_RDY bit (EPOCSR0)
0 : No change
1 : Clear the STUP-END bit (EP0CSR5)
Address
0313
16
Bit name
Function
Must always be set to "0"
Universal Serial Bus
When reset
00
16
R
W
0 0
Note 1
0 0
Note 2
0 0
0 0
Note 2
0 0
Note 3
0 0
Note 1
0 0
Note 4
0 0
Note 4
When reset
08
16
R
W

Advertisement

Table of Contents
loading

Table of Contents