28 USB FUNCTION CONTROLLER (USB)
28-52
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
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
EPbStartAdrs exceed the setting value of the EPcStartAdrs.
EPcStartAdrs_H (EPc FIFO Start Address HIGH)
EPcStartAdrs_L (EPc FIFO Start Address LOW)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPcStartAdrs_H
(EPc FIFO start
address high)
0x300c74
(8 bits)
D7–4 –
–
–
–
0 when being read.
D3–0 EPcStartAdrs[11:8]
Endpoint EPc start address
0x0 R/W
EPcStartAdrs_L
(EPc FIFO start
address low)
0x300c75
(8 bits)
D7–2 EPcStartAdrs[7:2]
Endpoint EPc start address
0x0 R/W
D1–0 –
–
–
–
0 when being read.
EPcStartAdrs[11:2]
Sets the start address of the FIFO area allocated to the endpoint EPc.
The area that is allocated to the endpoint EPc is from the address set by the EPcStartAdrs and to the ad-
dress one byte before the one set by the EPdStartAdrs.
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 EPcMaxSize of the endpoint EPc 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
EPcStartAdrs exceed the setting value of the EPdStartAdrs.
EPdStartAdrs_H (EPd FIFO Start Address HIGH)
EPdStartAdrs_L (EPd FIFO Start Address LOW)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPdStartAdrs_H
(EPd FIFO start
address high)
0x300c76
(8 bits)
D7–4 –
–
–
–
0 when being read.
D3–0 EPdStartAdrs[11:8]
Endpoint EPd start address
0x0 R/W
EPdStartAdrs_L
(EPd FIFO start
address low)
0x300c77
(8 bits)
D7–2 EPdStartAdrs[7:2]
Endpoint EPd start address
0x0 R/W
D1–0 –
–
–
–
0 when being read.
EPdStartAdrs[11:2]
Sets the start address of the FIFO area allocated to the endpoint EPd.
The area that is allocated to the endpoint EPd is from the address set by the EPdStartAdrs and to the
end address of the FIFO.
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 EPdMaxSize of the endpoint EPd is larger than the area specified in here, the macro does not op-
erate normally.