- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
I was trying to get some data to pop up over the 3300 (http://www.microchip.com/wwwproducts/devices.aspx?product=usb3300) USB phy. And was finding the .QSF file was incomplete, so I assigned the pins at 3.3v LVTTL. and used..
module Phytherface (
input clock,
input direction,
input readline,
inout uart,
output writeline
);
reg a;
reg b;
assign uart = direction ? a : 8'bz;
assign writeline = b;
always @ (posedge clock)
begin
b <= uart;
a <= readline;
end
in conjunction with.
Phytherface AK01 (.direction(HPS_USB_DIR),.clock(HPS_USB_CLKOUT),.uart(HPS_USB_DATA),.writeline(take));
wire take;
takeone TK01 (.in(take),.out (HEX5)); /*<-- posedge sample&hold*/
endmodule
But no go, Did I do something obviously wrong (with the tristate?)?
Link Copied
13 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USB 3300 is connected to HPS, why do you want to use it from FPGA?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mostly because I want to go purist FPGA on this one, possibly get a better fit or cheaper chip at that.
Not that I understand it all as to how to relate to the ARM part. Didn't even delve into it. Can I reroute this for now? Or how do I go about this problem?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USB to UART is FTDI chip and not USB 3300.
I dont think you can reroute pin. Better to use Linux on HPS to have USB. With FPGA is very complex to handle USB protocol. You can make FPGA and HPS talk, see DE1-SOC manual and examples.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The USB3300 chip has a 1byte bidirectional paralel IO, and the FTDI has RX TX lines.
I gues the 3300 chip does the handshake, and it puts out a clock for convenience. I think it lacks sense not to put this onto the FPGA. But hey.. :) Ill start to read about it, thanks in advance.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The answer should be in this topic, although I find it hard to grasp. Signals don't automatically show up on my part like I assume they should?
Also strange to have to clock some parts for this. http://www.alteraforum.com/forum/showthread.php?t=44486- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Would it be possible for you to show via some simple block diagram functionality you require? I have been working on USB cores. I might be able to help you. Warm Regards, Bhaumik- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hello, Would it be possible for you to show via some simple block diagram functionality you require? I have been working on USB cores. I might be able to help you. Warm Regards, Bhaumik --- Quote End --- In the topic I linked to in the post before, I updated the status of my problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I do not have much idea about using HPS. But I would like to inform that USB3300 is USB PHY which follows ULPI specification. I afraid code you have written at the beginning of this post would not work. Please refer datasheet of USB3300 as well as ULPI specification to get idea about how to communicate with it. Also in DE1-SOC board, D+/D- pins of USB3300 have been routed to one USB Hub. So it is intended to work only as USB Host mode. Terms I have used are related to USB. I afraid it may confuse. If it is not confidential, please let me know function you are planning to do with USB3300. Warm Regards, Bhaumik- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I would like to inform that USB3300 is USB PHY which follows ULPI specification. I afraid code you have written at the beginning of this post would not work. --- Quote End --- Why would that be then? Anyway, This thread is where it goes from here. Could be better suited for HPS dummies like me :P http://www.alteraforum.com/forum/showthread.php?t=44486
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Why would that be then? --- Quote End --- Cyclone V SOC has inbuilt USB Controller which supports ULPI Interface. That USB controller uses that USB PHY chip. If you wish to communicate with that USB chip from FPGA ( i.e. bypassing inbuilt USB Controller ), you need to follow ULPI specification while writing Verilog code. Anyway, best of luck for your attempt. Warm Regards, Bhaumik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want usb simple and fast add a ft232h ic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Cyclone V SOC has inbuilt USB Controller which supports ULPI Interface. That USB controller uses that USB PHY chip. --- Quote End --- If you're not going to tell what it's going to be that's causing it, you're just spamming the topic. Thats why I brought up the link to the area I'd like to move into twice. Since that topic sank into oblivion again.. Which may well have had the potential to save me a day of work. I don't know what the problem would be. So does it mean the chip is misconfigured by default to recieve "is what im doing" a byte of data from whatever device, (that may well be a computer slave,or a MIDI controller master) ? And if so why? Seeing I don't think I would "have" to start feeding it headers, since it provides it's own clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using DE1-SoC board with linux console provided by Terasic. what should i do to change the USB Host mode to USB peripheral mode ? I know that i have to short the ID pin of usb3300 PHY to V3.3. But i don't know if i have to do some software modifications. The idea is to make my board act as a device and establish a communication between the PC and the board. ps: sorry for my bad english
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page