Lucent Technologies USS-720 manual Preliminary User Guide, Rev February, Signal Directions

Page 59

Preliminary User Guide, Rev. 2

February 1999

USS-720

USB Device Driver

1 Introduction

This document describes the design and implemen- tation of USS720.SYS, a Windows* WDM USB driver developed by In-System Design, Inc. (Note that this driver was written specifically to work with the In- System Design USB Smart Cable. For vendor- specific implementations, refer to the “Notes for Developers” in the Introduction of this Information Manual.) The purpose of USS720.SYS is to provide bulk data transfers and a mapping layer for the IEEE1284 registers over the Universal Serial Bus inter- face.

The purpose of this document is to:

Define how USS720.SYS will interact with the Win- dows operating system components and the inter- face layer to other device classes.

Provide a guide for using USS720.SYS.

Note: The USS-720’s Automatic Mode is recom- mended for almost all applications. The drivers included in the Lucent Technologies USS-720 Evaluation Kit use only Automatic Mode. Auto- matic mode implements all negotiation hand- shakes automatically for Compatibility, Nibble, and ECP modes. In Register Mode, the user must do the negotiations manually in software. Register Mode can be useful when imple- menting a nonstandard parallel port interface.

For more information on the Windows system-level components, USB architecture, and 1284 hardware, please refer to:

Microsoft Win32 SDK (October 96 or later), avail- able from Microsoft *.

WDM Driver Model Specification, available from Microsoft.

WDM USB Driver Specification, available from Microsoft.

USB Device Class Definition for Printing Devices, from usb.org web site.

USS-720 USB-to-IEEE1284 Bridge Preliminary Data Sheet (DS98-393CMPR), available from Lucent Technologies Microelectronics Group.

IEEE Standard Signaling Method for a Bidirectional Parallel Peripheral Interface for Personal Comput- ers (IEEE Standard 1284-1994)

Figure 1 provides a point of reference for directions mentioned in this document.

 

 

USB

USS-720 IN

 

 

 

 

HOST PC

 

 

 

PERIPHERAL

 

 

BULK OUT

 

OUTPUT

INPUT

 

 

 

 

 

 

DRIVER

 

 

 

 

INPUT

 

 

 

OUTPUT

 

BULK IN

 

 

 

 

 

 

 

 

5-6005.r2

Figure 1. Signal Directions

*Windows and Microsoft are registered trademarks of Microsoft Corporation.

IEEE is a registered trademark of The Institute of Electrical and Electronics Engineers, Inc.

Lucent Technologies Inc.

7-1

Image 59
Contents Information Manual, Rev September IntroductionTable of Contents September USB-to-IEEE Bridge Information Manual, Rev Evaluation Kit for USS-720IOCTLSET1284REGISTER USS-720 USB Device Driver Preliminary User GuideIOCTL1284 Terminate USS-720 USB Port Monitor Application Note Evaluation Kit Contents \SAMPLES Hardware RequirementsGetting Started Instructions OSR2.1 Cable Installation InstructionsWindows 98 Cable Installation Instructions Software UpdatesPort Creation USB Driver and Port MonitorPlug and Play Eeprom Lucent Technologies Inc In-System Design, Inc Lucent Technologies Microelectronics GroupUSB Applications Support September Introduction Evaluation Kit SoftwareUSS-720 Driver Software Object Code License Agreement FebruaryOwnership USS-720 Software Use Agreement FebruaryLicensed Software Furnishing of Licensed SoftwareFebruary Software Use Agreement USS-72004 Confidentiality Warranty and IndemnityAgreement Prevails Nothing ConstruedIntegration PublicityNonassignability AddressesDisputes Applicable LawDocumentation USS720.SYSUSS720.INF USS-720 Software Use Agreement February Application Note, Rev February Software ComponentsPrinter Enumeration Customer-Defined DataPlug and Play Operation PnP USB Hardware Types Supported Power ManagementInstallation Process Operating Systems SupportedPrint Types Supported Printer Types SupportedDescription FeaturesPreliminary Data Sheet, Rev September Table of Contents USB-to-IEEE Preliminary Data Sheet, Rev USS-720Pin Information Parallel Port nAck Signal Active-Low Parallel Port nAutoFd Signal Active-LowParallel Port nSelectIn Signal Active-Low Parallel Port nInit Signal Active-LowDescriptor Locations OverviewUSB Port Device Descriptor, Configurations, and Inter- facesDevice Descriptor Offset Field Size Value Description USB-to- Ieee 1284 Bridge SeptemberOnboard Device Descriptor Configuration Descriptor USB-to- IeeeBulk Out Endpoint Descriptor, I0A0E1 Interface DescriptorsBulk In Endpoint Descriptor, I0A1E2 September USB-to-IEEE1284 BridgeBulk Out Endpoint Descriptor, I0A1E1 Interrupt Endpoint Descriptor, I0A2E3 Bulk Out Endpoint Descriptor, I0A2E1Bulk In Endpoint Descriptor, I0A2E2 Standard Requests PipesRequests Get Port Status Data Bit Description Printer Class-Specific RequestsSET1284REGISTER Vendor-Specific RequestsGET1284REGISTER Register-Based Operation Ieee 1284 PortByte Register Data RegistersGET1284REGISTER Data Byte Register Data Interrupt Pipe Read DataParallel Port nFault Signal Reserved Status Register Address Bit SymbolDefault Bit Symbol Bit Description USB-to-IEEE1284 Bridge Control Register Address Bit SymbolAccess Default Bit Symbol Bit Description Parallel Port nInit SignalUSS-720Instant USB ECP Command Register Address Bit Symbol Access Mode20 Description Extended Control Register Address Bit SymbolUSS-720 Control Register Address Bit Symbol USS-720 Setup Register Address Bit Symbol Interrupts External Crystal Connection External Circuitry RequirementsAbsolute Maximum Ratings Parameter Symbol Min Unit Filter Bypass ModeHigh Drive Mode Self-Powered ModeClklo Clkhi Electrical CharacteristicsParameter Symbol Test Conditions Min Typ Max Unit Capacitance Values Parameter UnitOutput Delay Timing Parameter Min Max Unit Timing CharacteristicsSetup and Hold Input Timing Parameter Device Code Package Comcode Outline DiagramOrdering Information Pin MqfpApplication Note February Description USS ParallelPort Bridging USB to Typical Circuit ShowingLucent Technologies Inc Preliminary User Guide, Rev February Signal DirectionsIOCTL1284 Setmode USB Device Driver InitializationO File Functions Preliminary User Guide, Rev USS-720 FebruaryCreateFile ReadFile Error CodesWriteFile DeviceIoControl CloseHandle Control Code Description O Control CodesParameters IOCTL1284 EcpfwdtorevIOCTL1284ECPREVTOFWD IOCTL1284 Ecpsetchannel IOCTL1284 Setmode Register Mode DescriptionIOCTL1284 Terminate Bulkinpipe IoctlabortpipeValue Description BulkoutpipeIoctlcancelpiperequest IOCTLGET1284REGISTER ALTINTERFACE2 IoctlgetaltsettingALTINTERFACE0 ALTINTERFACE1Ioctlgetcapabilities Ioctlgetconfigurationdescriptor Ioctlgetdevicedescriptor Ioctlgetdeviceinstances Ioctlgetinterface Bit Meaning IoctlgetportstatusCommand Description IOCTLISSUEUSS720COMMANDByte Description IoctlreadinterruptpipeIoctlresetpipe IOCTLSET1284REGISTER Ioctlsetaltsetting Ioctlsoftreset Data Structure O Control Data StructuresDeviceinstanceheader DeviceinstanceREGISTER1284, *PREGISTER1284 REGISTER1284ADVREGISTER1284, *PADVREGISTER1284 ADVREGISTER1284Lucent Technologies Inc USS-720 USB Port Monitor Printer Cable with Instant USB USS-720 Application Note USB Port Monitor FebruaryClick on Enter Library Software Installation InstructionsW98USS720EvalKit2402.zip to download the installation files Application Note JuneSeptember MN99-052CMPR-1 Replaces MN97-061CMPR-04