Cypress Semiconductor FX2LP Informations techniques Page 252

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 460
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 251
EZ-USB FX2 Technical Reference Manual
Page 10-62 EZ-USB FX2 Technical Reference Manual v2.1
Figure 10-56. Burst FIFO-Read Transaction Example, Writing INPKTEND w/SKIP=0 to Commit
void TD_Poll( void )
{
… … … … …
if( ibn_event_flag )
{ // host is asking for EP8 data
Peripheral_SetEP8GPIFTC( HSPKTSIZE );
Peripheral_FIFORead( GPIF_EP8 );
ibn_event_flag = 0;
}
if( gpifdone_event_flag )
{ // GPIF currently pointing to EP8, last FIFO accessed
if( !( EP2468STAT & 0x80 ) )
{ // EP8F=0 when buffer available
INPKTEND = 0x08; // Firmware commits pkt
// by writing #8 to INPKTEND
gpifdone_event_flag = 0;
}
}
// decide how GPIF transitions to DONE for FIFO Transactions
if( gpif_pf_event_flag )
{
EP8GPIFPFSTOP = 0x01; // set bit0=1 to use GPIF_PF
}
else
{
EP8GPIFPFSTOP = 0x00; // set bit0=0 to use TC
}
… … … … …
}
Vue de la page 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 459 460

Commentaires sur ces manuels

Pas de commentaire