Cypress Semiconductor FX2LP Technické informace Strana 253

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 460
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 252
Chapter 10. General Programmable Interface (GPIF) Page 10-63
Figure 10-57. Burst FIFO-Read Transaction Example, Writing EPxBCL to Commit
10.5 UDMA Interface
The FX2 has additional GPIF registers specifically for implementing a UDMA (Ultra-ATA) interface.
For more information, please contact the Cypress Semiconductor Applications Department.
void TD_Poll( void )
{
… … … … …
if( !( EP68FIFOFLGS & 0x10 ) )
{ // EP8FF=0 when buffer available
// host is taking EP8 data fast enough
Peripheral_SetEP8GPIFTC( HSPKTSIZE );
Peripheral_FIFORead( GPIF_EP8 );
}
if( gpifdone_event_flag )
{ // GPIF currently pointing to EP8, last FIFO accessed
if( !( EP2468STAT & 0x80 ) )
{ // EP8F=0 when buffer available
// modify the data
EP8FIFOBUF[ 0 ] = 0x02; // <STX>, packet start of text msg
EP8FIFOBUF[ 7 ] = 0x03; // <ETX>, packet end of text msg
SYNCDELAY;
EP8BCH = 0x00;
SYNCDELAY;
EP8BCL = 0x08; // pass buffer on to host
}
}
// 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
}
… … … … …
}
Zobrazit stránku 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 459 460

Komentáře k této Příručce

Žádné komentáře