USB Programming Model
14-50
ADSP-BF535 Blackfin Processor Hardware Reference
Note that the endpoint configuration registers allow software to create
data transfers larger than a single USB packet. The DMA master channel
can address a 2 KB buffer space in system memory. Software must manage
the space as a pool of buffers. By using the endpoint configuration regis-
ters, it can create transfers from 1 to 1023 bytes at various locations in the
2 KB buffer space. This can be a single 1023-byte isochronous endpoint
buffer or many 16-byte bulk endpoint buffers.
Bulk In
Assume 64-byte packet size, packet buffer located at address 0x80 in the
L2 memory space, and buffer size 0x80 (two packets). Programming flow
is:
1. Clear interrupt registers:
USBD_EPINTRx
and the
USBD_EPxINTR
bit
of the
USBD_GINTR
register.
2. Unmask interrupts:
•
USBD_MASKx
:
USBD_BCSTAT
= 0,
USBD_TC
= 0.
•
USBD_GMASK
:
USBD_EPxMSK
= 0.
3. Configure the endpoint:
•
USBD_EPCFGx
:
USBD_TYP
= 01,
USBD_DIR
= 1,
USBD_MAX
= 11,
USBD_ARM
= 1.
•
USBD_EPADRx
:
USBD_OFFSET
= 0x0080.
•
USBD_EPLEN0
:
USBD_BC
= 0x0080.
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...