Using double EP for iso on FX2LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
tash_284946
Level 1
Level 1
        Hello. I'd like to do iso transfer. Our goal is video capture. Our device has two EP for iso, EP2 and EP6. One EP sends odd line of the frame, and another EP sends even line of the frame. A line is 748byte data. I'd like to transfer earch line with order of line number. I modified "streamer" sample C# program(added code about 2nd EP). But it couldn't get the lines alternate odd(1st EP) and even(2nd EP). If I show more detail: Odd 8 lines comes first, and Even 8 lines comes. 8 is value which I input Packets per Xfer. Of cause it is not that it comes always 8 line, "Odd 8 line" > "Even 8 line" > "Odd 8 line" > "Even 16 line" > "Odd 16 line"... Does anybody know the way to transfer "Odd 1 line" > "Even 1 line"...? Let me attache my modified "streamer". LockNLoad: I added ODD/EVEN process. XferData1and2: It does two EPs. Thank you. -Device----- Slave FIFO, Data Bus 8bit, sync-mode, IFCLK-External28.636MHz EP1 IN/OUT BULK 64byte EP2 IN ISO 1024byte (buffer 1024byte*2) (*) EP6 IN ISO 1024byte (buffer 1024byte*2) (*) (*)After My device send 748byte to PC, PKETEND ON. ------------   
0 Likes
4 Replies
tash_284946
Level 1
Level 1
        sorry, let me retry my post with "return".. Hello. I'd like to do iso transfer. Our goal is video capture. Our device has two EP for iso, EP2 and EP6. One EP sends odd line of the frame, and another EP sends even line of the frame. A line is 748byte data. I'd like to transfer earch line with order of line number. I modified "streamer" sample C# program(added code about 2nd EP). But it couldn't get the lines alternate odd(1st EP) and even(2nd EP). If I show more detail: Odd 8 lines comes first, and Even 8 lines comes. 8 is value which I input Packets per Xfer. Ofcause it is not that it comes always 8 line, "Odd 8 line" > "Even 8 line" > "Odd 8 line" > "Even 16 line" > "Odd 16 line"... Does anybady know the way to transfer "Odd 1 line" > "Even 1 line"...? I'll attache my modified "streamer". LockNLoad: I added ODD/EVEN process. XferData1and2: It does two EPs. Thank you. -Device----- Slave FIFO, Data Bus 8bit, sync-mode, IFCLK-External28.636MHz EP1 IN/OUT BULK 64byte EP2 IN ISO 1024byte (buffer 1024byte*2) (*) EP6 IN ISO 1024byte (buffer 1024byte*2) (*) (*)After My device send 748byte to PC, PKETEND ON. ------------   
0 Likes
tash_284946
Level 1
Level 1
        oh..   
0 Likes
lock attach
Attachments are accessible only for community members.
tash_284946
Level 1
Level 1
        I don't know why newlines deleted but I'll attach my post as txt file. add more info. Device is ready to send data below step. 1.748byte from EP2 -(data1) 2.748byte from EP6 -(data2) 3.748byte from EP2 -(data3) 4.748byte from EP6 -(data4) ...continue this flow What I want to do is receive data with correct order. 1.data1 2.data2 3.data3 4.data4 When I try "streamer" sample(I added only dump logic) using only an endpoint, it seems good working. I could get data in correct order. 1.data1 3.data3 ... However I try to use double endpoint, I couldn't get data in correct order. ex) 1.data1 2.data3 3.data2 4.data4 ... Could someone help me?   
0 Likes
lock attach
Attachments are accessible only for community members.
tash_284946
Level 1
Level 1
        Hi. Does anyone know similar case? I'd like to go through by within this week. I'm afraid that I'm lacking some of information which is needed, please let me know. If someone have something which may be help, please tell me. Our firm is made referring to AN61345. (http://www.cypress.com/?rID=43046) Attached is our firm. Thank you.   
0 Likes