Oki JOB60851 user manual Bus Transactions, USB Data Flow Types

Page 39

Chapter 4 Software Development

 

 

standard device requests, and standard device

 

 

descriptors

Chapter 10

USB Host: Hardware

Functions and operation of host hardware and

 

and Software

software

Chapter 11

Hub Specification

Hub port operation, requests, and descriptors

Chapter 4 provides a firm grounding in the USB core specifications. All developers of USB equipment must study Chapter 5 very carefully. Hardware developers must read Chapter 7; firmware developers, Chapters 8 and 9. Firmware developers must pay particular attention to the timing specifications in Chapter 7.

What follows are key points from the core specifications. For complete details, refer to the specifications available from the USB Implementers Forum web site.

4-1-4. Data Flow Types

The USB specifications define four data flow types with the following characteristics. Flexibly combining these four data flow types provides solutions to the communications needs of a wide variety of applications.

Table 4.1.2. USB Data Flow Types

Control

Communication of commands and responses for device configuration and pipe

 

control

Bulk

Transfer of relatively large, bursty data volumes with wide dynamic latitude in

 

transmission constraints

Interrupt

Transfer of small data volumes within time limits based on human-perceptible echo

 

or feedback response characteristics

Isochronous

Transfer using prenegotiated USB bandwidth with a prenegotiated delivery latency--

 

audio data, for example--with no procedure for retransmitting data

 

 

 

4-1-5. Bus Transactions

Data transfers consist of bus transactions, exchanges of basic packets between the host and a specific device. The example below shows two such transactions.

The first data request (IN) from the host arrives when the device has no data for delivery, so the latter returns a NAK handshake, completing the transaction. The NAK indicates two things: that the device has no data ready and that the host should resend the request later.

The second data request (IN), in contrast, causes the device to deliver the data (DATA0) that it has ready. The host acknowledges successful receipt of this data with an ACK, completing the transaction.

Transactions require cirtain bit time order response, so are implemented in hardware.

Host

(1)Data request (IN)

(3)Data request (IN)

(5)Successful receipt acknowledgment (ACK)

Device

(2) No data (NAK)

(4) Data transfer (DATA0)

page 4-4

Image 39
Contents JOB60851 Starter Kit Page OKI Contents Software Development Port 7 LED2 Control Introduction Checking Packing List Introduction1. Packing List Host Environment Precaution for Safe and Proper Use LabelsIcons Do not pile objects on top of the product Use only the specified voltageUse only the cables and other accessories provided Notation Putting Board through Its Paces Setup Configuring JOB60851 BoardPutting Board through its Paces Installing Development Software Running Flash Memory Program Running Default ProgramConnecting Board Installing USB DriverUse the -u command line option to view the USB pipe numbers Running User Programs Loading Terminal Emulator Connecting Serial CableDownloading and Executing Synchronizing LinkOverwriting Flash Memory Contents System Specifications System Components System SpecificationsSystem Components System ObjectiveHardware Specification Connectors and SwitchesUse only the AC adapter included with the product System Specifications 2. Circuit Diagram 1/2 Circuit DiagramSystem Specifications 1. Parts List 1/2 Parts ListMemory Maps 4. Memory Map for Download Mode5. Memory Map for Flash Execution Mode 6. Memory Map for Application Mode 7. Memory Map for Flash Rewrite Mode System Limitations Resources Uses1. MSM66Q573 Pin Assignments 1/2 P11-3/XTOUT System Specifications 1. MSM66Q573 Pin Assignments 2/2 Software Development USB Basics Bus Topology, Addresses, and Hot PluggingSoftware Development Core Specifications Specification DocumentsData Flow Types Bus Transactions2. USB Data Flow Types Packets Endpoints3. lists the USB packet types 4. Maximum Payload Sizes Device Class Specifications5. USB Device Class Specifications Data Rates7. Control Transfer Data Packet Device RequestsStandard Device Requests 6. Device Request TypesDevice Descriptor for Bidirectional Printer Device DescriptorsString descriptor 1. Sample USB Firmware SetupSample Firmware Specifications Sample USB FirmwareSample USB Host Software Compiling and Executing Sample USB FirmwareConfirming USB Compliance with Usbcheck.exe Software Development Creating USB Mouse Demo Modifying Application Layer Receive Only Skeleton Evaluating USB Equipment Simple DebuggingOverview of ML60851C Operation Device Controller Specifications1. ML60851C Specifications USB Bits and Pieces1. ML60851C Block Diagram Connecting Microcontroller to USB Controller2. Microcontroller with 16- or 32-Bit Bus Special USB ConsiderationsBuilding a Product Vendor and Product IDsOther Tools Necessary Products Limitations Port 7 Registers Port 7 LED2 ControlChanging LED2 Color Sample Port 7 Control Program JOB60851 Board Standard I/O Standard I/O over Serial Link2. Serial Port Structure Serial PortSerial port SIO0 Chapter Internal timer 9 and following 3. read Operation Read and write Functions4. write Operation Standard I/O Examples Sample Program Using Standard OutputDebugging with Standard I/O Sample Program Using Standard Input