Cypress Semiconductor FX2LP Información técnica Pagina 401

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 460
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 400
Chapter 15. Registers Page 15-81
15.11.20 Setup Data Pointer Auto
Figure 15-91. Setup Data Pointer AUTO Mode
Bit 0 SDPAUTO Setup Data Pointer Auto Mode
To send a block of data using the Setup Data Pointer, the blocks starting address is loaded into
SUDPTRH:L. The block length must previously have been set; the method for accomplishing this
depends on the state of the SDPAUTO bit:
SDPAUTO = 0 (Manual Mode): Used for general-purpose block transfers. Firmware
writes the block length to EP0BCH:L.
SDPAUTO = 1 (Auto Mode): Used for sending Device, Configuration, String, Device
Qualifier, and Other Speed Configuration descriptors only. The block length is automati-
cally read from the length field of the descriptor itself; no explicit loading of EP0BCH:L is
necessary.
Writing to SUDPTRL starts the transfer; the FX2 automatically sends the entire block, packetizing
as necessary.
When SDPAUTO = 0, writing to EP0BCH:L only sets the block length; it does not arm the transfer
(the transfer is armed by writing to SUDPTRL). Therefore, before performing an EP0 transfer
which does not use the Setup Data Pointer (i.e., one which is meant to be armed by writing to
EP0BCL), SDPAUTO must be set to 1.
SUDPTRCTL Setup Data Pointer AUTO Mode E6B5
b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 0 0 0 0 SDPAUTO
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 0 0 0 0 1
Vista de pagina 400
1 2 ... 396 397 398 399 400 401 402 403 404 405 406 ... 459 460

Comentarios a estos manuales

Sin comentarios