The Usb Host component is provided with a demo application.
The demo includes
- Virtual platform consisting of a MIPS32 core model, USB Peripheral model and memory model, running under Windows XP
- Demo application decoding an Ogg Vorbis-compressed audio file and playing the output using USB speakers
- Decompression is done on the MIPS core as a pure C implementation
- A binary intercept library providing the link between the USB Peripheral model and the Windows USB Host Peripheral device driver layer.
- Audio samples can be downloaded from a number of sites, for example vorbis.com∞. After downloading the song please rename the audio file as "sample.ogg". Alternatively a sample audio file is available to download from this page, see below.
-
This example makes use of host driver software that is only supported on Windows and so cannot be run on other host platforms
| DOWNLOAD UsbHost Demonstration Files UsbHost.zip / 309.51 KB |
| DOWNLOAD Sample Vorbis compressed audio file sample.ogg / 901.17 KB |
To run the demo please refer
readme.txt included in zip file.
The peripheral model and platform in this example were last updated for release
20120906.0. It may run with other releases, but edits may be required to support API changes.
Component Description for UsbHost/usb.model.xml
PERIPHERAL | UsbHost |
VENDOR | sibridgetech.com |
LIBRARY | peripheral |
VERSION | 1.0 |
IMAGEFILE | pse.pse |
Description | Basic Test Peripheral. |
License | Open Source Apache 2.0 |
Description | Enhanced Host Port Controller. |
Limitations | This is a preliminary model with support for Periodic transfers only. |
BUSSLAVEPORT | USB |
MUSTBECONNECTED | T |
WIDTH | 32 |
SIZE | 0x140 |
MEMORYMAPPEDREGISTER | CAPLENGTH |
ACCESS | r |
WIDTH | 8 |
OFFSET | 0x00 |
MEMORYMAPPEDREGISTER | HCIVERSION |
ACCESS | r |
WIDTH | 16 |
OFFSET | 0x02 |
MEMORYMAPPEDREGISTER | HCSPARAMS |
ACCESS | r |
WIDTH | 32 |
OFFSET | 0x04 |
MEMORYMAPPEDREGISTER | HCCPARAMS |
ACCESS | r |
WIDTH | 32 |
OFFSET | 0x08 |
MEMORYMAPPEDREGISTER | HCSP-PORTROUTE |
ACCESS | r |
WIDTH | 64 |
OFFSET | 0x0C |
MEMORYMAPPEDREGISTER | USBCMD |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x14 |
MEMORYMAPPEDREGISTER | USBSTS |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x18 |
MEMORYMAPPEDREGISTER | USBINTR |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x1C |
MEMORYMAPPEDREGISTER | FRINDEX |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x20 |
MEMORYMAPPEDREGISTER | CTRLDSSEGMENT |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x24 |
MEMORYMAPPEDREGISTER | PERIODICLISTBASE |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x28 |
MEMORYMAPPEDREGISTER | ASYNCLISTADDR |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x2C |
MEMORYMAPPEDREGISTER | CONFIGFLAG |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x34 |
MEMORYMAPPEDREGISTER | PORTSC |
ACCESS | rw |
WIDTH | 32 |
OFFSET | 0x38 |
BUSMASTERPORT | MREAD |
MUSTBECONNECTED | T |
WIDTH | 32 |
BUSMASTERPORT | MWRITE |
MUSTBECONNECTED | T |
WIDTH | 32 |
NETPORT | INTTC |
MUSTBECONNECTED | F |
TYPE | output |
EXTLIBRARY | input |
SEMIHOSTNAME | semihost |
FILEVERSION | _version |
MAJOR | 1 |
MINOR | 0 |
CategoryPeripheral SibridgePage
Page was generated in 0.0146 seconds