Cypress Semiconductor FX2LP Información técnica Pagina 239

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 460
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 238
Chapter 10. General Programmable Interface (GPIF) Page 10-49
Figure 10-33. FIFO-Read Transaction Code, AUTOIN = 1
Figure 10-34. Firmware intervention, AUTOIN = 0/1
10.4.7 Firmware Access to IN Packet(s), (AUTOIN = 0)
In manual IN mode (AUTOIN=0), the firmware has the following options:
1. It can commit (“pass-on”) packet(s) sent from the master to the host when a buffer is available,
by writing the INPKTEND register with the corresponding EPx number and SKIP=0 (see
Figure 10-35).
2. It can skip a packet by writing to INPKTEND with SKIP=1. See Figure 10-36.
3. It can source or edit a packet (i.e., write directly to EPxFIFOBUF) then write the EPxBCL. See
Figure 10-37.
TD_Init():
EP8CFG = 0xE0; // EP8 is DIR=IN, TYPE=BULK
SYNCDELAY;
EP8FIFOCFG = 0x0C; // EP8 is AUTOOUT=0, AUTOIN=1, ZEROLEN=1, WORDWIDE=0
SYNCDELAY;
EP8AUTOINLENH = 0x02; // if AUTOIN=1, auto commit 512 byte packets
SYNCDELAY;
EP8AUTOINLENL = 0x00;
TD_Poll():
// no code necessary to xfr data from master to host!
// AUTOIN=1 and EP8AUTOINLEN=512 auto commits packets,
// in 512 byte chunks.
8051
USB
Host Peripheral
AUTOIN=0 or
AUTOIN=1
Slave GPIF
Data Path
Vista de pagina 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 459 460

Comentarios a estos manuales

Sin comentarios