Forum Discussion

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

USB External Chip

Has anyone had any experience with interfacing to an external (to the gate array) USB Chip ? I am looking for a simple, cheap, low power chip that interfaces directly to a NIOS or even better to Internal Memory. I know that there are USB controllers available that will do the job (I am currently looking into an Cycpress chip that has a 8051 controller, and it will do the job, however it might be a little "over kill". We don't need as many features as are offered there in!). We have also investigated a USB-to-serial chip which will also do the job, but we would prefer a direct USB connection.

Anyone got any ideas ?

15 Replies

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

    --- Quote Start ---

    We are about to get a FT232H module in which we are hoping to be able to connect up to one of our current gate arrays. This chip has FIFO 245 interface!

    --- Quote End ---

    I haven't used that particular device - but looking at the data sheet, I agree it should work fine.

    --- Quote Start ---

    Yes I am comfortable working with VHDL. Are you able to send me your design?

    --- Quote End ---

    Yeah, sure. Let me review/clean-up the documentation I'd started, and I'll post a zip file or a link to a zip file. I'll look at it tonight.

    Cheers,

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

    Dear Dave,

    --- Quote Start ---

    Let me review/clean-up the documentation I'd started, and I'll post a zip file or a link to a zip file.

    --- Quote End ---

    Did you end in the end manage to make the zip file and documentation ? Are you able to send it to me ?

    Best regards

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

    Hi Shmuel,

    --- Quote Start ---

    Did you end in the end manage to make the zip file and documentation ? Are you able to send it to me ?

    --- Quote End ---

    Sorry, I have been busy with another aspect of the project I am working on. I plan on using the FT232H on my board, so I will be returning to the code soon.

    Have you tried writing some code? If you have, and you have had problems, post questions.

    Cheers,

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

    Dave,

    Thanks for the reply. Please let me know when you get back to it and if you can send me something to look at. In the mean time I have started on the design myself..... We are considering using the FT2232H chip probably. Have you any good suggestions of how to implement interrutps ? We were thinking of usinging a dedicated endpoint for this purpose (I found out from FTDI they have 2 IN endpoints and 2 OUT endpoints !)

    Regards

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

    --- Quote Start ---

    I have started on the design myself..... We are considering using the FT2232H chip probably. Have you any good suggestions of how to implement interrutps ? We were thinking of usinging a dedicated endpoint for this purpose (I found out from FTDI they have 2 IN endpoints and 2 OUT endpoints !)

    --- Quote End ---

    You don't need to do anything at the USB end, that is the point of using these devices :)

    The FT2232H will show up as two serial ports. Your host code can access them just like it would a USB-to-serial serial port. Under Linux they will show up as /dev/ttyUSBx devices, and under Linux as COM port devices.

    At the FPGA end, you just need to implement the FIFO interface to your hardware. The SIWU (send-immediate/wake-up) signal can be used to trigger the data to be sent 'faster', i.e., send-now, rather than waiting for a full USB packet to be buffered.

    Did you order an evaluation kit? FTDI have a module FT2232HQ_mini_module for $27

    http://www.digikey.com/product-detail/en/ft2232h%20mini%20module/768-1030-nd/2027252

    I haven't tried interfacing to this board yet (I have a module I was given at ESC, but have not had time to test it). I have used the UM245R module, and it was easy to work with. I have a couple of the FT232H modules that should show up in a couple of days.

    Cheers,

    Dave