嗨,正如Garima所说,如果你想从FX2LP数据源到奴隶FIFO,你可以这样做如下。保持端点(在这种情况下的EP2)作为无效端点,但在缓冲、方向和自动/手动模式方面配置正确。在这个例子中,我选择了EP2是一个外端点,四缓冲,每个字节512个,手动模式。EP2CFG=0x7f;EP2CFOFFG=0x00;FiPosit=0x80;SimcCdTe= 0x02;SycCdEnter;EP2FIFOBUF(0)=0xAA;SycCdEnter;EP2BCH=0x02;SYNCDELAY;//EP2BCL=0x00;SYNCDELAY;/EP2BCH=0x02;SYNCDELAY;/EP2BCL=0x00;SimcDelp;EP2BCH=0x02;SimcDelp;EP2BCL=0x0;(0;同步延迟;EP2BCH= 0x02;同步延迟;EP2BCL=0x00;同步延迟;FippET= 0x00;问候,Gayathri
以上来自于百度翻译
以下为原文
Hi, As Garima said, if you want to source the data from FX2LP to the Slave FIFO, you can do so as below. Keep the endpoint (EP2 OUT in this case) as invalid endpoint, but configured properly with respect to buffering, direction and Auto/ Manual mode. In this example, I have chosen EP2 to be an OUT endpoint, quad buffered, of 512 bytes each, manual mode. (EP2CFG = 0xA0; EP2CFG &= 0x7F; EP2FIFOCFG = 0x00; ) FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x02; SYNCDELAY; EP2FIFOBUF[0] = 0xAA; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; // EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; FIFORESET = 0x00; Regards, Gayathri
嗨,正如Garima所说,如果你想从FX2LP数据源到奴隶FIFO,你可以这样做如下。保持端点(在这种情况下的EP2)作为无效端点,但在缓冲、方向和自动/手动模式方面配置正确。在这个例子中,我选择了EP2是一个外端点,四缓冲,每个字节512个,手动模式。EP2CFG=0x7f;EP2CFOFFG=0x00;FiPosit=0x80;SimcCdTe= 0x02;SycCdEnter;EP2FIFOBUF(0)=0xAA;SycCdEnter;EP2BCH=0x02;SYNCDELAY;//EP2BCL=0x00;SYNCDELAY;/EP2BCH=0x02;SYNCDELAY;/EP2BCL=0x00;SimcDelp;EP2BCH=0x02;SimcDelp;EP2BCL=0x0;(0;同步延迟;EP2BCH= 0x02;同步延迟;EP2BCL=0x00;同步延迟;FippET= 0x00;问候,Gayathri
以上来自于百度翻译
以下为原文
Hi, As Garima said, if you want to source the data from FX2LP to the Slave FIFO, you can do so as below. Keep the endpoint (EP2 OUT in this case) as invalid endpoint, but configured properly with respect to buffering, direction and Auto/ Manual mode. In this example, I have chosen EP2 to be an OUT endpoint, quad buffered, of 512 bytes each, manual mode. (EP2CFG = 0xA0; EP2CFG &= 0x7F; EP2FIFOCFG = 0x00; ) FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x02; SYNCDELAY; EP2FIFOBUF[0] = 0xAA; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; // EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; FIFORESET = 0x00; Regards, Gayathri
举报