Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

USB Device Controller ISP1362

Hi,

I'd like to ask if anyone knows how to transfer more than 64 kBytes between the Device Controller (in chip ISP1362 placed on my DE2_Board) and the Host controller (my computer).

I'm not able to write more then 64 kbytes into the buffer of the OUT endpoint.

I access the register of the endpoints in PIO mode.

Maybe I have to change the configurations of the 2 endpoints I use, for example to ISOCHRONOUS one (that i don't really know what it is)?

I hope I have been clear enough,

if anyone would give me even a little suggestion it would be a great help for me!

thank you,

Paola

21 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hello,

    I'm using the wsiausb of Tonyslagle. You search wisiausb.zip in the web and use the code in your DE2 o DE2-70 board.

    I am now working in a project which needs to make the DE2-70 board as a USB device and the host is the PC.

    When I try to probe the system, I found these problems:

    1) If I connect both the blaster cable and the device cable to the pc or only the blaster, the host

    shows initially the blaster, then I download the firmware to the FPGA and the system do the Enumeration and initialization

    process and the ISP1362 is recognize by the host PC. But, if I disconnect the blaster cable, the system

    is not respond, then I reset the driver by the firmware and the device is doesn't show by the host.

    I am using the VISA USB Raw of National Instrument and its driver in the host.

    2) If I work with both the blaster cable and the device cable connected, the system can transmit data

    from PC to device successful, but when I try to send data from device to host PC, it show me a timeout error.

    I check the firmware step by step and it apparently work correctly.

    Please, if you can probe and solve these problem, you say me..

    Thanks...

    --- Quote End ---

    Hello,

    wsiausb project has a lot of shortcumings in its design - mainly the fact that if you compile it, the reported Fmax is lower than required for the desing to operate correctly. The fact that it works even sometimes can be just luck. Also, the state machine, designed part of wsiausb does not meet certain reset timing requirements (according to the Datasheet).

    I have used the code in wsiausb as a reference to develop my own project attempts to improve the things mentioned above. You can find it here:

    http://mzakharo.github.com/usb-de2-fpga/