URL
https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
5 |
ZTEX |
mmio
|
2 |
|
|
----
|
3 |
|
|
|
4 |
|
|
This example is intended for ZTEX USB-FPGA Modules 1.15. It demonstrates
|
5 |
|
|
memory mapped I/O between the EZ-USB FX2 and the FPGA.
|
6 |
|
|
|
7 |
|
|
The firmware (defined in ucecho.c) declares Endpoint 2 and Endpoint 4
|
8 |
|
|
(both 512 bytes, double buffered, bulk transfer, belong to interface 0).
|
9 |
|
|
All data that is written to Endpoint 4 is converted to uppercase by
|
10 |
|
|
the FPGA and can be read back from Endpoint 2.
|
11 |
|
|
|
12 |
|
|
This example does the same as the example in directory ../../all/ucecho
|
13 |
|
|
except that the uppercase - lowercase conversion is made by the FPGA
|
14 |
|
|
through memory mapped I/O: The EZ-USB FX2 writes the data to address
|
15 |
|
|
0x5001 and reads the converted data back from 0x5002.
|
16 |
|
|
|
17 |
|
|
The driver (defined in UCEcho.java) uploads the the Firmware (ucecho.ihx)
|
18 |
|
|
to the EZ-USB Microcontroller and the Bitstream (fpga/ucecho.bit) to the
|
19 |
|
|
FPGA if necessary, sends user string to the device and reads them back.
|
20 |
|
|
|
21 |
|
|
Uploading the Firmware to EEPROM is also supported by the firmware (e.g.
|
22 |
|
|
using the FWLoader utility).
|
23 |
|
|
|
24 |
|
|
This example may serve a good starting point for own projects.
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.