Texas Instruments OMAP5912 Reference Manual page 1433

Multimedia processor device overview and architecture
Hide thumbs Also See for OMAP5912:
Table of Contents

Advertisement

Figure 12.
Endpoint Configuration Routine
Enter endpoint
configuration
routine
Set PTR_FLAG
to 8
Fill EP0 register with
− EP0_SIZE
− EP0_PTR=PTR_FLAG
PTR_FLAG =
PTR_FLAG +
EP0_SIZE
Any OUT
Yes
endpoint to
configure ?
(EPn)
No
Any IN
Yes
endpoint to
configure ?
(EPn)
No
Double-buffering is
activated in DMA mode
only.
SPRU761A
Fill EPn_RX register with:
− EPn_RX_VALID = 1
Yes
Endpoint n is
− EPn_RX_SIZE = EP size (3 bits)
of type ISO ?
− EPn_RX_ISO = 1
− EPn_RX_PTR = PTR_FLAG
No
Fill EPn_RX register with:
Double
− EPn_RX_VALID = 1
Yes
− EPn_RX_DB = 1
-buffer
− EPn_RX_SIZE = EP size (2 bits)
allowed for
− EPn_RX_ISO = 0
EPn ?
− EPn_RX_PTR = PTR_FLAG
No
Fill EPn_RX register with:
− EPn_RX_VALID = 1
− EPn_RX_DB = 0
− EPn_RX_SIZE = EP size (2 bits)
− EPn_RX_ISO = 0
− EPn_RX_PTR = PTR_FLAG
Fill EPn_TX register with:
Yes
− EPn_TX_VALID = 1
Endpoint n is
− EPn_TX_SIZE = EP size (3 bits)
of type ISO ?
− EPn_TX_PTR = PTR_FLAG
No
Fill EPn_TX register with:
Double
− EPn_TX_VALID = 1
Yes
-buffer
− EPn_TX_DB = 1
allowed for
− EPn_TX_SIZE = EP size (2 bits)
− EPn_TX_ISO = 0
EPn ?
− EPn_TX_PTR = PTR_FLAG
No
Fill EPn_TX register with:
− EPn_TX_VALID = 1
− EPn_TX_DB = 0
− EPn_TX_SIZE = EP size (2 bits)
− EPn_TX_ISO = 0
− EPn_TX_PTR = PTR_FLAG
USB Device Controller
Another
PTR_FLAG =
OUT endpoint
PTR_FLAG +
to configure ?
2^EPn_RX_SIZE
(EPn)
PTR_FLAG =
PTR_FLAG +
EPn_RX_SIZE
Another
PTR_FLAG =
IN endpoint
PTR_FLAG +
to configure ?
2^EPn_TX_SIZE
(EPn)
PTR_FLAG =
PTR_FLAG +
EPn_TX_SIZE
Universal Serial Bus (USB)
Yes
No
Yes
No
End of endpoint
configuration
routine
141

Advertisement

Table of Contents
loading

Table of Contents