AUTOPTRH1 = MSB( &EP2FIFOBUF );//自动指针地址高/低,APTR1H和AUTOPTRH1是同一个寄存器,前者是旧的
AUTOPTRL1 = LSB( &EP2FIFOBUF );//EP2FIFOBUF 端点2缓冲区
AUTOPTRH2 = MSB( &myBuffer1 );//目的单元
AUTOPTRL2 = LSB( &myBuffer1 );
for( i = 0x0000; i < 1024; i++ )
{
EXTAUTODAT2 = EXTAUTODAT1;
SBUF1=myBuffer1[i]; //SBUF0:Serial Port 0 transmit/receive buffer.
while(TI1 == 0);
SYNCDELAY;
TI1 = 0;
}
|