electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How to transfer a image file to FPGA using USB chip


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> How to transfer a image file to FPGA using USB chip
Author Message
hoangthanhtung



Joined: 23 Apr 2004
Posts: 173
Helped: 2


Post12 Oct 2004 5:10   

How to transfer a image file to FPGA using USB chip


I have a FPGA KIT which has a USB inteface by using SL811HS chip(Cypress Corp.). Now I want to write a C/C++ program to read a image file which is located in PC, and tranfer data to FPGA KIT, by using USB port. After that I use FPGA to process data of image and send image return to PC for displaying.

Could anyone let me know some thing ? I need some API function to access USB port to read/write data ? Or you can send the link and document to me. I need it hurry.

Contact with me: httung(at)asic.korea.ac.kr

Thank you so much.
Best regards
Back to top
Regnum



Joined: 17 Jun 2004
Posts: 264
Helped: 12
Location: Hurlingham


Post12 Oct 2004 6:58   

Re: How to transfer a image file to FPGA using USB chip


...first of all, does your kit come with a library to access the USB ?
(if the answer is "NO" I think you should claim for cash refund... Smile )

As far as I know, the API functions are only suitable for low-speed HID devices (keyboards, mice, joysticks, etc) and I guess you're talking about transferring video at real-time, so check the Cypress website for drivers and development tools for your USB chip.


Last edited by Regnum on 14 Oct 2004 3:47; edited 1 time in total
Back to top
hoangthanhtung



Joined: 23 Apr 2004
Posts: 173
Helped: 2


Post12 Oct 2004 8:49   

Re: How to transfer a image file to FPGA using USB chip


Regnum wrote:
...first of all, doesn't your kit come with a library to access the USB ?
(if the answer is "NO" I think you should claim for cash refund... Smile )

As far as I know, the API functions are only suitable for low-speed HID devices (keyboards, mice, joysticks, etc) and I guess you're talking about transferring video at real-time, so check the Cypress website for drivers and development tools for your USB chip.


My SoC board can support USB interface. It is Exxalibur EPXA10K Embedded system of Altera. It has USB interface (EBI interface). USB IC - SLH811 of Cypress can transfer data with full-speed 12Mbps and I only receiver data from webcam which is like as keyboard, joystich (slower speed). If you know about API funtion for USB interface, let me know please. Thank so much.
Back to top
Regnum



Joined: 17 Jun 2004
Posts: 264
Helped: 12
Location: Hurlingham


Post12 Oct 2004 10:32   

Re: How to transfer a image file to FPGA using USB chip


...in low-speed mode, the fastest guaranteed delivery for a single transfer is 8 bytes in 10 milliseconds, equivalent to 800 bytes per second, what isn't enough for a webcam at all !!!

what's the throughput you need... ?


Last edited by Regnum on 12 Oct 2004 10:41; edited 1 time in total
Back to top
davorin



Joined: 07 Jun 2003
Posts: 1396
Helped: 8


Post12 Oct 2004 10:36   

Re: How to transfer a image file to FPGA using USB chip


Is there a dedicated microcontroller connected to the USB chip and the FPGA configuration pins?

The SL811 can't talk directly to the FPGA since it is a periphal device which needs to be programmed for either USB host or USB device first..
Back to top
hoangthanhtung



Joined: 23 Apr 2004
Posts: 173
Helped: 2


Post13 Oct 2004 4:25   

Re: How to transfer a image file to FPGA using USB chip


davorin wrote:
Is there a dedicated microcontroller connected to the USB chip and the FPGA configuration pins?

The SL811 can't talk directly to the FPGA since it is a periphal device which needs to be programmed for either USB host or USB device first..


I see what you mean. I believe that my Alteral chip has been connected with SLH811 and SLH811 has been setup in the Host or Slave mode( My board has two USB port). What I need is how to receiver data from web cam by using FPGA and USB chip. That is all.
Back to top
Google
AdSense
Google Adsense




Post13 Oct 2004 4:25   

Ads




Back to top
Regnum



Joined: 17 Jun 2004
Posts: 264
Helped: 12
Location: Hurlingham


Post14 Oct 2004 3:46   

Re: How to transfer a image file to FPGA using USB chip


have a look over here:
http://www.alanmacek.com/usb/deviceAPI.html


Additionally, you'll get in-depth info at the following books:

USB Complete
http://www.edaboard.com/viewtopic.php?t=78090

USB Design By Example
http://www.edaboard.com/viewtopic.php?t=40133

Developing USB PC Peripherals
http://www.edaboard.com/viewtopic.php?t=56227


Frankly, I believe you'll end up writing a high-speed Device-Driver...
Anyways, good luck.
Back to top
RegUser_2



Joined: 24 Dec 2001
Posts: 235
Helped: 2


Post14 Oct 2004 4:30   

Re: How to transfer a image file to FPGA using USB chip


There are USB to LPT convertors. For the rest look at the Xilinx paralel port programer schematic for FPGA and CPLD.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> How to transfer a image file to FPGA using USB chip
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to intergrate USB chip on FPGA (5)
how to transfer file from HD to SD using microcontroller? (6)
how to do Image resizing using FPGA (5)
Automate USB file transfer (1)
Where can i find a USB data ( file ) transfer schematic ? (2)
interfacing with usb without using a built in usb chip (6)
image processing using fpga (4)
Image compression using FPGA (3)
How to transfer file to Solaris from PC? (2)
q) How to LAN Crosswire pc-to-pc file transfer (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS