home *** CD-ROM | disk | FTP | other *** search
/ hobbes.nmsu.edu / 2008-06-02_hobbes.nmsu.edu.zip / dos / Usb4pas.zip / README.PAS < prev    next >
Pascal/Delphi Source File  |  1999-01-25  |  3KB  |  60 lines

  1. ******************************************************************************
  2. *                                                                            *
  3. *                      U S B - Support for Turbo-Pascal                      *
  4. *                                                                            *
  5. *                                                                            *
  6. *            (c) 1998 by Dieter R. Pawelczak <dieterpbigfoot.de>             *
  7. *                                                                            *
  8. ******************************************************************************
  9.  
  10.  
  11. For many embedded systems USB seems to be a good solution for data acquisition
  12. modules - as USB supports a frame rate of 1 ms which is fast enough for many
  13. feedback control applications. The problem now is that USB is currently only
  14. supported by Windows 98 and updates of Windows 95. The design of the USB host
  15. controller again emphasizes the possibilities using USB in an embedded System:
  16. Once the USB communication is established, the host controller can work in the
  17. background using DMA-memory transfers - accompanied with a synchronous
  18. interrupt every millisecond, a real time feedback control system is easily
  19. established.
  20.  
  21. For a simple motor velocity control I developped a microcontroller board with
  22. the USBN9602 controller by National Semiconductors. For a simple test
  23. environment I created some basic routines to access the USB host controller
  24. and did some experiments on the USB transfers. The following Turbo-Pascal units
  25. allow the initialization and the control of the USB host controller. As an
  26. example how to access and configure a USB device, I added the example program
  27. HUBDISCO, which enables and configures a 4-port HUB (using TUSB2040 from TI)
  28. and switches through its downstream ports.
  29.  
  30. The example must be run in real mode environment as it needs the fact:
  31. physical address == linear address.
  32.  
  33. These units have been created for testing purpose only and don't present a
  34. complete USB environment. It has been tested on several different main boards
  35. and processor types (Intel PIIX4,PIIX3).
  36. The units are created for Turbo-Pascal 7.0, but should run with some minor
  37. changes with Turbo-Pascal 6.0. The strange looking inline asm instructions are
  38. mainly 32 bit port access commands, which are not supported by Turbo Pascal.
  39.  
  40. USB.PAS:      basic USB routines
  41. PCI.PAS:      access of PCI devices
  42. DUTILS.PAS:   utility unit
  43. HUBDISCO.PAS: example program
  44.  
  45. The units are based on the USB specification Version 1.1 and the Intel UHCI
  46. documentation.
  47.  
  48.  
  49. Literature
  50.  
  51. USB-Spec., Version 1.1., see http://www.usb.org
  52. Intel UHCI, Intel PIIX4 documentation,  see http://www.intel.com
  53.  
  54.  
  55.  
  56. Dieter R. Pawelczak, January 1999
  57.  
  58. As I don't work on the USB-sector any longer, this is a final release of the
  59. units.
  60.