Oki JOB60851 user manual Running User Programs

Page 19

Chapter 2 Putting Board through its Paces

"USB_ENDPOINT_DESCRIPTOR for Pipe00"

"USB_ENDPOINT_DESCRIPTOR for Pipe01"

"USB_ENDPOINT_DESCRIPTOR for Pipe02"

The software defines three pipes, PIPE00 to PIPE02. The first is for output--that is, from the development host to the JOB60851 board. The other two are for input (in the opposite direction).

PIPE00OUTPUT:PCFrom host to JOB60851

PIPE01INPUT:JOB60851To host from JOB60851

PIPE02INPUT:JOB60851To host from JOB60851

4.Try one data transfer in each direction.

C:\USB>rwbulk.exe -o PIPE00 -w 1024 -i PIPE01 -r 1024

<Enter>

This command line writes one kilobyte of test data using output pipe PIPE00 and then reads the same amount of data using input pipe PIPE01.

The following messages appear if both operations are successful.

Device Opened successfully.

<pipe00> W (tot:1024 @ 17:04:16) : req 1024 - 1024 written

<pipe01> R (tot:1024 @ 17:04:16) : req 1024 - 1024 read

5.Try multiple transfers.

C:\USB>rwbulk.exe -o PIPE00 -w 1024 -i PIPE01 -r 1024 –c 10 <Enter>

This command line adds a repeat count of ten, so should produce ten such message pairs.

Opened successfully.

Device Opened successfully.

<pipe00> W (tot:1024 @ 17:21:07) : req 1024 - 1024 written

<pipe01> R (tot:1024 @ 17:21:07) : req 1024 - 1024 read

:

:

<pipe00> W (tot:9216 @ 17:21:07) : req 1024 - 1024 written <pipe01> R (tot:9216 @ 17:21:07) : req 1024 - 1024 read <pipe00> W (tot:10240 @ 17:21:07) : req 1024 - 1024 written <pipe01> R (tot:10240 @ 17:21:07) : req 1024 - 1024 read

6.Additional operation

For more detailed operation please refer to readme.txt file in host driver (Package\Host) directory.

2-3. Running User Programs

This section gives the procedures for downloading a program over a serial link to the JOB60851 board and then running it.

page 2-6

Image 19
Contents JOB60851 Starter Kit Page OKI Contents Software Development Port 7 LED2 Control Introduction Introduction Checking Packing List1. Packing List Host Environment Labels Precaution for Safe and Proper UseIcons 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 Configuring JOB60851 Board SetupPutting 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 ObjectiveConnectors and Switches Hardware SpecificationUse 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 Resources Uses System Limitations1. MSM66Q573 Pin Assignments 1/2 P11-3/XTOUT System Specifications 1. MSM66Q573 Pin Assignments 2/2Software Development Bus Topology, Addresses, and Hot Plugging USB BasicsSoftware Development Core Specifications Specification DocumentsBus Transactions Data Flow Types2. USB Data Flow Types Endpoints Packets3. 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 FirmwareCompiling and Executing Sample USB Firmware Sample USB Host SoftwareConfirming 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 ConsiderationsVendor and Product IDs Building a ProductOther 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