//-------------------tiao ji IN depth_1204---------------------
EP6AUTOINLENH = 0x02; //set the packet size 512
SYNCDELAY;
EP6AUTOINLENL = 0x00;//EP6 recevie 10 num (16bit)LYF
SYNCDELAY;
PINFLAGSAB = 0xe8; //F,FLAGA IS THE FIFO2 EF,FLAGb IS THE FIFO6 FULL FLAG
SYNCDELAY;
PORTACFG = 0x00;//PA7 pin as a port pin,not as a fifo flag;
SYNCDELAY;
FIFOPINPOLAR = 0x00; // set all slave FIFO interface pins as active low PKTEND OR SLOE SLWR LOW AVTIVE
SYNCDELAY;