28 USB FUNCTION CONTROLLER (USB)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
28-51
Perform the setup so that combination of the EndpointNumber and the INxOUT does not overlap with those of
other endpoints.
D7
ISO
Sets the isochronous mode.
D6
ISO_CRCmode
According to USB spec, a packet must be discarded when CRC error occurs in isochronous transaction.
When this bit is set, a packet with CRC error is not discarded. This bit is valid when ISO bit (D7) is set.
D[5:0]
Reserved
EPaStartAdrs_H (EPa FIFO Start Address HIGH)
EPaStartAdrs_L (EPa FIFO Start Address LOW)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPaStartAdrs_H
(EPa FIFO start
address high)
0x300c70
(8 bits)
D7–4 –
–
–
–
0 when being read.
D3–0 EPaStartAdrs[11:8]
Endpoint EPa start address
0x0 R/W
EPaStartAdrs_L
(EPa FIFO start
address low)
0x300c71
(8 bits)
D7–2 EPaStartAdrs[7:2]
Endpoint EPa start address
0x0 R/W
D1–0 –
–
–
–
0 when being read.
EPaStartAdrs[11:2]
Sets the start address of the FIFO area allocated to the endpoint EPa.
The area that is allocated to the endpoint EPa is from the address set by the EPaStartAdrs and to the ad-
dress one byte before the one set by the EPbStartAdrs.
After setting the StartAdrs of all endpoints, be sure to set the AllFIFO_Clr bit of the EPnControl regis-
ter to 1 to clear all FIFOs.
If the EPaMaxSize of the endpoint EPa is larger than the area specified in here, the macro does not op-
erate normally.
Set the total of the FIFO area secured for all endpoints does not exceed the total capacity of the built-in
RAM.
Allocate the FIFO area to the endpoints in the order from the lower order address to higher order ad-
dress like EP0, EPa, EPb, EPc, EPd.
The FIFO of the endpoint EP0 is allocated from the address 0 to up to the size specified as the Max-
PacketSize of the endpoint EP0 set in the EP0MaxSize register. Allocate the succeeding area for other
endpoints.
Since the FIFO capacity is 1K bytes, do not let the EPd end address exceed 0x3ff. And do not let the
EPaStartAdrs exceed the setting value of the EPbStartAdrs.
EPbStartAdrs_H (EPb FIFO Start Address HIGH)
EPbStartAdrs_L (EPb FIFO Start Address LOW)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPbStartAdrs_H
(EPb FIFO start
address high)
0x300c72
(8 bits)
D7–4 –
–
–
–
0 when being read.
D3–0 EPbStartAdrs[11:8]
Endpoint EPb start address
0x0 R/W
EPbStartAdrs_L
(EPb FIFO start
address low)
0x300c73
(8 bits)
D7–2 EPbStartAdrs[7:2]
Endpoint EPb start address
0x0 R/W
D1–0 –
–
–
–
0 when being read.
EPbStartAdrs[11:2]
Sets the start address of the FIFO area allocated to the endpoint EPb.
The area that is allocated to the endpoint EPb is from the address set by the EPbStartAdrs and to the ad-
dress one byte before the one set by the EPcStartAdrs.
After setting the StartAdrs of all endpoints, be sure to set the AllFIFO_Clr bit of the EPnControl regis-
ter to 1 to clear all FIFOs.
If the EPbMaxSize of the endpoint EPb is larger than the area specified in here, the macro does not op-
erate normally.