ST7265x
USB INTERFACE (Cont’d)
USB Endpoint RAM Buffers
There are five bidirectional Endpoints including
one control Endpoint 0. Endpoint 1 and Endpoint 2
are counted as 4 bulk or interrupt Endpoints (two
IN and two OUT).
Endpoint 0 and Endpoint 1 are both 2 x 16 bytes in
size. Endpoint 2 is 2 x 64 bytes in size and can be
configured to physically target different USB Data
Buffer areas depending on the MOD[1:0] bits in
the CTLR register (see Figure 41, Figure 42 and
Figure 43).
The USB Data Buffer operates as a double buffer;
while one 512-byte block is being read/written by
the DTC, the USB interface reads/writes the other
512-byte block.
The management of the data transfer is performed
in upload and download mode (2 x 512 byte buff-
ers for Endpoint 2) by the USB Data Buffer Manag-
er.
Figure 41. Endpoint 2 Normal Mode selected by (MOD[1:0] Bits = 00h)
1550h
155Fh
156Fh
157Fh
158Fh
15CFh
Endpoint 0 Buffer OUT
Endpoint 0 Buffer IN
Endpoint 1 Buffer OUT
Endpoint 1 Buffer IN
Endpoint 2 Buffer OUT
16 Bytes
16 Bytes
16 Bytes
16 Bytes
64 Bytes
Endpoint 2 Buffer IN
160Fh
64 Bytes
Figure 42. Endpoint 2 Download Mode selected by MOD[1:0] Bits = 10b
1550h Endpoint 0 Buffer OUT
Endpoint 0 Buffer IN
Endpoint 1 Buffer OUT
158Fh Endpoint 1 Buffer IN
Endpoint 2 Buffer IN
Endpoint 2 Buffer OUT
1590h
15CFh
1650h
USB DATA
USB DATA
USB DATA
USB DATA
USB DATA
1A4Fh
64-byte buffer
512-byte buffer
as 64-byte slices
512-byte buffer
as 64-byte slices
66/166
1