Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

USB 2.0 ISP1761

Altera_Forum
Honored Contributor II
3,086 Views

Hi all! 

 

Does anybody use the ISP1761 in a NIOS-project yet? I've heard that there are drivers, but I've never tested it. Is there any experience? 

 

Thank you! 

 

e-tricky
0 Kudos
13 Replies
Altera_Forum
Honored Contributor II
1,081 Views

I will use the ISP1761 in a project. Some Sourcecode is available from Sourceforge. The code supports their evaluation board which has a PCI interface. In my case I cannot use this code directly because I will connect the chip directly to the Nios without PCI. I have no HW yet, so it will take some time for me to start the driver.  

 

I found following on Nios Wiki http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

Read in the nios wiki (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/usbhost) about USBhost, 

 

At the bottom there is a link provided for the ISP1761, 

I had no time to evaluate this yet, but it seems that it is the diff to the PCI sources. 

isp 1761 (http://dagobah.ucc.asn.au/isp1761/)
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

It&#39;s the same to me. I want to connect the ISP1761 directly to the FPGA without PCI. And I have no HW at the moment too. It is planned to develop a Santa Cruz daughter board for the Altera Dev Boards to evaluate the ISP1761. I thought I could find someone in this forum who has tested these drivers and to get some advise in using and modifying them.  

 

e-tricky
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

It is not difficult to connect ISP1761 to 40 pins headers on the dev board. 

You can use it at 16 bits mode. 

 

I have built the hardware, basic access is OK.  

I have tried it up to 10MB/sec sustained transfer rate using a custom DMA master. 

But I didn&#39;t have time to try uClinux yet. 

 

Bernard ported the driver to a PXA255 running 2.6.17. 

I am working on the new uClinux-dist-20060803, which is 2.6.17. 

I will release the update of uClinux-dist soon.
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

hippo, 

 

thats good news because I want to try the new approach with the uClinux-dist, 

but I do not know how to make the diff file for Nios, so I will wait on you. 

Maybe you can describe once how you create the diff file for Nios.
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

 

--- Quote Start ---  

originally posted by nacide@Oct 24 2006, 02:14 PM 

hippo, 

 

thats good news because i want to try the new approach with the uclinux-dist, 

but i do not know how to make the diff file for nios, so i will wait on you. 

maybe you can describe once how you create the diff file for nios. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18863) 

--- quote end ---  

 

--- Quote End ---  

 

I use SVN, just a "svn diff" . 

The new uClinux-dist patches are on the wiki now. 

 

Happy Hacking. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

That sounds good! 

 

@Hippo: Would you share your schematic to connect the ISP1761 to the santa cruz header and send it to me? That would save a plenty of time for me.  

 

I have additional questions, maybe you can help me: 

I&#39;m new with USB, how did you test the transfer rate of 10MB/s? Did you use a loop or an other device? How to communicate from a windows PC to the Nios System via USB? Is there some sample code? 

 

I would be very happy to get more information about this! 

 

Thank you! 

 

e-tricky
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

 

--- Quote Start ---  

originally posted by e-tricky@Oct 25 2006, 11:54 PM 

that sounds good! 

 

@hippo: would you share your schematic to connect the isp1761 to the santa cruz header and send it to me? that would save a plenty of time for me.  

 

i have additional questions, maybe you can help me: 

i&#39;m new with usb, how did you test the transfer rate of 10mb/s? did you use a loop or an other device? how to communicate from a windows pc to the nios system via usb? is there some sample code? 

 

i would be very happy to get more information about this! 

 

thank you! 

 

e-tricky 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18909) 

--- quote end ---  

 

--- Quote End ---  

 

It was based on 

http://www.nxp.com/acrobat/applicationnotes/an10037_4.pdf (http://www.nxp.com/acrobat/applicationnotes/an10037_4.pdf

use 16bits data mode, shared host/device dma and irq 

and add a latch from data bus to generate chip address. 

pull high data[31:16] with a single R. 

a[17] <= 0; 

a[16:1] <= data[15:0] 

then you have a data port and reg adress port. 

You may find other useful doc on their site. 

 

I wrote a simple test program (without Linux) to do the transcations directly to a fast USB thumb disk. 

I will try Linux later, and I will share with you. 

 

The USB driver is not trivial. But using Linux is easy, they hide the details.
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

I am on ISP1161A1. 

 

USB client is accessible on uClinux. But still have no clue about how to develop uClinux driver for my custom design, either access USB component without OS. 

 

Can any highly professional give me some suggestions?
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

 

--- Quote Start ---  

originally posted by legendbb@Oct 27 2006, 09:08 PM 

i am on isp1161a1. 

 

usb client is accessible on uclinux. but still have no clue about how to develop uclinux driver for my custom design, either access usb component without os. 

 

can any highly professional give me some suggestions? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18956) 

--- quote end ---  

 

--- Quote End ---  

 

If you are doing custom design, don&#39;t use isp1161 or 1362. 

Because they are quite old and getting obsolete. 

You should start with isp1761 instead.
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

 

--- Quote Start ---  

originally posted by hippo+oct 25 2006, 08:57 pm--><div class='quotetop'>quote (hippo @ oct 25 2006, 08:57 pm)</div> 

--- quote start ---  

<!--quotebegin-e-tricky@Oct 25 2006, 11:54 PM 

that sounds good! 

 

@hippo: would you share your schematic to connect the isp1761 to the santa cruz header and send it to me? that would save a plenty of time for me.  

 

i have additional questions, maybe you can help me: 

i&#39;m new with usb, how did you test the transfer rate of 10mb/s? did you use a loop or an other device? how to communicate from a windows pc to the nios system via usb? is there some sample code? 

 

i would be very happy to get more information about this! 

 

thank you! 

 

e-tricky 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18909) 

--- quote end ---  

 

--- Quote End ---  

 

It was based on 

http://www.nxp.com/acrobat/applicationnotes/an10037_4.pdf (http://www.nxp.com/acrobat/applicationnotes/an10037_4.pdf

use 16bits data mode, shared host/device dma and irq 

and add a latch from data bus to generate chip address. 

pull high data[31:16] with a single R. 

a[17] <= 0; 

a[16:1] <= data[15:0] 

then you have a data port and reg adress port. 

You may find other useful doc on their site. 

 

I wrote a simple test program (without Linux) to do the transcations directly to a fast USB thumb disk. 

I will try Linux later, and I will share with you. 

 

The USB driver is not trivial. But using Linux is easy, they hide the details. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18915)</div> 

[/b] 

--- Quote End ---  

 

 

Hi hippo, 

 

do you have a schematic for this? I want to use the ISP1761 too, but have some 

questions about connecting it to a nios2 system. 

 

Thanx 

Marco
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

Hi Mabcom, 

Sorry, I connot give you the schematic at this moment. I am still very busy. 

I followed those app notes. 

What are the questions about wiring?
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

 

--- Quote Start ---  

originally posted by hippo@Mar 13 2007, 09:26 PM 

hi mabcom, 

sorry, i connot give you the schematic at this moment. i am still very busy. 

i followed those app notes. 

what are the questions about wiring? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22260) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hi hippo, 

 

what is the access methode? Is there only PIO-access used? How to connect the DMA signals from the chip? 

That is the main question.  

 

Thanx 

Marco
0 Kudos
Altera_Forum
Honored Contributor II
1,081 Views

If you want DMA (sure), you have to design a DMA core and connect the DREQ/DACK. Please read the data sheet and apps note. 

 

But you still need to test PIO mode first. After PIO mode works, then you can try DMA.
0 Kudos
Reply