ADSP-BF535 Blackfin Processor Hardware Reference
14-51
USB Device
4. Wait for interrupts.
• If
USBD_PC
interrupt:
• Software can monitor transfer progress on a
packet-by-packet basis. After each packet transfers, software
must clear the
USBD_PC
and
USBD_EPxINTR
interrupts. Go
back to step 4.
• If
USBD_BCSTAT
interrupt and not
USBD_TC
interrupt:
• If more data is to be sent, clear interrupts and go back to
step 2. Update
USBD_EPADRx
and
USBD_EPLENx
to point to
the next buffer of data, then set
USBD_ARM
= 1 to re-arm the
endpoint.
• If no more data is to be sent, clear interrupts, program
USBD_BC
= 0, and set
UDBD_ARM
= 1. Wait for interrupts.
• If
USBD_TC
interrupt, the transfer is complete.
Bulk Out
Assume 16-byte packet size, packet buffer located at address 0x80 in the
L2 memory space, and buffer size 0x80 (four 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_PC
= 0.
•
USBD_GMASK
:
USBD_EPxMSK
= 0.
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...