基于CY7C68013芯片的高速數(shù)據(jù)采集系統(tǒng)的設(shè)計(jì)方法
Void TD_Poll(void)
{
If(GPIFTRIG 0x80) //判斷GPIF是否空閑
{
If(EXTFIFONOTEMPTY ) //判斷外部FIFO是否非空
{
If(?。‥P24FIFOFLGS 0x01)) //判斷FIFO是否不滿
{
IF(enum_high_speed)
{
SYNCDELAY;
GPIFTCB1=0x02; //設(shè)置處理計(jì)數(shù)
SYNCDELAY;
GPIFTCB0=0x00;
SYNCDELAY;
}
Else
{
SYNCDELAY;
GPIFTCB1=0x00;
SYNCDELAY;
GPIFTCB0=0x20;
SYNCDELAY;
}
Setup_FLOWSTATE_Read();
SYNCDELAY;
GPIFTRIG=GPIFTRIGRD|GPIF_EP2;
SYNCDELAY;
While(?。℅PIFTRIG 0x80))
{;}
SYNCDELAY;
}
}
}
}
評(píng)論