📄 usb ad9245.mht
字号:
From: <Microsoft Internet Explorer 5肺 历厘>
Subject: USB
Date: Mon, 25 Sep 2006 14:29:14 +0900
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_001A_01C6E0AE.F9B7EE30"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
This is a multi-part message in MIME format.
------=_NextPart_000_001A_01C6E0AE.F9B7EE30
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://ccar.colorado.edu/opengps/usb/
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- HEADER --><?xml version=3D"1.0"?><HTML lang=3Den xml:lang=3D"en"=20
xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>USB</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3Desterhui name=3Dauthor>
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR>
<META content=3D"OpenGPS dmr Open Source GPS esterhui masters axelrad"=20
name=3Dkeywords>
<META content=3D"An open source GPS receiver" name=3Ddescription><LINK=20
href=3D"http://ccar.colorado.edu/opengps/include/opengps_style.css" =
type=3Dtext/css=20
rel=3Dstylesheet><!-- BODY_START --></HEAD>
<BODY>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D768 align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD width=3D700><!-- LOGO -->
<DIV class=3Dlogo><IMG height=3D80 alt=3DOpenGPS@CU=20
src=3D"http://ccar.colorado.edu/opengps/img/opengps4_logo.png" =
width=3D450>
<P></P><BR><BR>
<P class=3Dmediumtext><A =
href=3D"http://ccar.colorado.edu/opengps/">[Home]</A>=20
<A href=3D"http://ccar.colorado.edu/opengps/status">[Status]</A> =
<A=20
href=3D"http://ccar.colorado.edu/opengps/data">[Data]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/doc">[Docs]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/links">[Links]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/about">[About]</A> <BR><A =
href=3D"http://ccar.colorado.edu/opengps/gbt">[GBT]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/cosmic">[COSMIC]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/usb">[USB]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/playback">[IF =
Playback]</A> <A=20
href=3D"http://ccar.colorado.edu/opengps/loki">[Loki]</A> <A=20
=
href=3D"http://ccar.colorado.edu/opengps/gbt/tle2azel">[tle2azel]</A>=20
</P></DIV><LINK=20
href=3D"http://ccar.colorado.edu/opengps/include/t2t_style.css"=20
type=3Dtext/css rel=3Dstylesheet><!-- CONTENT -->
<DIV class=3Dbody id=3Dbody>
<DIV class=3Dtoc id=3Dtoc>
<UL>
<LI><A href=3D"http://ccar.colorado.edu/opengps/usb/#toc1">1.=20
Introduction</A>=20
<LI><A href=3D"http://ccar.colorado.edu/opengps/usb/#toc2">2. =
Hardware=20
setup</A>=20
<UL>
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc3">2.1.=20
AD9245</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc4">2.2. FX2</A>=20
</LI></UL>
<LI><A href=3D"http://ccar.colorado.edu/opengps/usb/#toc5">3. =
Software</A>=20
<UL>
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc6">3.1.=20
Files</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc7">3.2. Install=20
+ Compile</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc8">3.3.=20
Program</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc9">3.4. Download=20
ADC data</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc10">3.5. Viewing=20
data in MATLAB</A>=20
<LI><A =
href=3D"http://ccar.colorado.edu/opengps/usb/#toc11">3.6.=20
Troubleshooting</A> </LI></UL></LI></UL></DIV>
<P></P><A name=3Dtoc1></A>
<H1>1. Introduction</H1>
<P>This project attempts to stream high-speed ADC (or other =
digital)=20
samples into a computer equipped with USB 2.0 (as can be seen in =
the block=20
diagram). <IMG alt=3D""=20
src=3D"http://ccar.colorado.edu/opengps/usb/usb-blockdiagram.png"=20
align=3Dmiddle border=3D0> </P>
<P>The general purpose interface (GPIF) on the Cypress (CY3681 =
FX2) is=20
being used to automatically commit packets from the GPIF to the =
USB=20
domain. The FX2 fifos are setup as quad-buffered 512kB buffers =
with an=20
auto-commit size of 512 bytes. With this setup (and a good USB =
chipset:=20
Intel ICH5 82801EB) 39MB/s can be sustained without much trouble =
(this was=20
tested on a 3.0GHz machine). About 10-20% of the CPU is being used =
during=20
these transfers. </P>
<P>Thanks to the <A =
href=3D"http://www.gnu.org/software/gnuradio/">GNU=20
Radio</A> folks - the software presented here is based on the USRP =
software. </P>
<P>The information presented below targets users of the board I =
put=20
together, so some information might seem irrelevant if you are =
trying to=20
do this yourself. </P><A name=3Dtoc2></A>
<H1>2. Hardware setup</H1>
<P>Once the everything is hooked up below, this is the power up =
sequence:=20
</P>
<OL>
<LI>Power up ADC (3V)=20
<LI>Power up ADC CLK=20
<LI>Power up FX2 chip=20
<LI>Program FX2 chip </LI></OL>
<P>If the above procedure is not followed, the FX2 chip sometimes =
fail to=20
send any data via the USB bus. </P><A name=3Dtoc3></A>
<H2>2.1. AD9245</H2>
<P>This ADC has power, clock and analog signal inputs. The output =
is a=20
clock, 14 bits of data and an overrange detect. The cable is wired =
up as=20
such: </P><PRE>FX2 ADC
D[13:0]<------D[13:0]
D[14]<--------OR (Overrange)
D[15]<--------GND
</PRE>
<P>This way bit 14 in the data stream is a flag for ADC =
saturation. Make=20
sure to <CODE>line up pin 1 on the cable and pin 1 on the =
ADC</CODE> when=20
connecting the cable. </P>
<P>The ADC requires 2.7V-3.6V for power at ~120mA (this is =
dependent on=20
input clock frequency). </P><A name=3Dtoc4></A>
<H2>2.2. FX2</H2>
<P>The Cypress CY3681 FX2 USB development kit is being used. This =
board is=20
powered via the USB cable. Three things need to be connected to =
this=20
board: </P>
<OL>
<LI>USB2.0 cable=20
<LI>P1: D[13:0],OR,GND=20
<LI>P5: CLK,GND </LI></OL>
<P>The cable is not marked, but it is easy to spot which connector =
should=20
go to P5 and which to P1: P5 has only GND and CLK connected. =
Again,=20
<CODE>make sure to line up</CODE> pin1 on the connector and the =
FX2 board.=20
</P><A name=3Dtoc5></A>
<H1>3. Software</H1><A name=3Dtoc6></A>
<H2>3.1. Files</H2>
<UL>
<LI><A=20
=
href=3D"http://ccar.colorado.edu/opengps/usb/usrp-0.8-swighack.tar.bz2">U=
SRP-0.8</A>=20
- similar to official 0.8 release, except hacked to compile with =
SWIG=20
1.3.21 (1.3.24 still hard masked in gentoo).=20
<LI><A=20
=
href=3D"http://ccar.colorado.edu/opengps/usb/adcstream-0.3.tar.bz2">ADCSt=
ream-0.3</A>=20
- host and firmware files (Now empties EP6 FIFO before starting =
a data=20
transfer and bails out when a GPIF stall is detected (buffer =
overrun)).=20
<LI><A href=3D"http://sdcc.sourceforge.net/">sdcc</A> - 8051 C =
compiler, I=20
used version 2.4.4. (with gentoo just type <CODE>emerge =
sdcc</CODE>).=20
<LI>FX2 Programmer <A=20
=
href=3D"http://ccar.colorado.edu/opengps/usb/Makefile">Makefile</A>,<A=20
=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -