for(i=0;i<8;i++)
{
UPID0 = (unsigned int)&fpga8way_1[i]; //Window Address
UPID1 = 0x00014000; //Line Count,Byte Count
UPID2 = 0x00004000; //Line Offset Address
while(UPIS2 & 0x2){};
}
接收来自FPGA的数据只能接收到第一帧数据,第二帧数据接收不到程序一直停在while(UPIS2 & 0x2){};此时i等于2
当把程序改成
for(i=0;i<8;i++)
{
UPID0 = (unsigned int)&fpga8way_1[i]; //Window Address
UPID1 = 0x00022000; //Line Count,Byte Count
UPID2 = 0x00004000; //Line Offset Address
while(UPIS2 & 0x2){};
}
接收来自FPGA的数据第一帧数据都不能接收完全,只能是一行数据,然后程序一直停在while(UPIS2 & 0x2){};此时i=1