Oki JOB60851 user manual Synchronizing Link, Downloading and Executing

Page 21

Chapter 2 Putting Board through its Paces

Speed

38,400 b/s

Word size

8 bits

Parity check

None

Stop bits

2

Flow control

None

(3)Activating JOB60851 board

Once the terminal emulator is configured, turn on the power (#2 in Figure 2.1.1).

2-3-3. Synchronizing Link

Before communicating with the JOB60851 board, check that it and the development host are using the same data transfer speed by downloading the file !zero.dat in the work directory--c:\test in our example.

(1)Using HyperTerminal

1.Choose the Transfer menu's Send text file command.

2.In the dialog box that appears, double-click the file !zero.dat.

3.Wait for the response OK indicating synchronization.

(2)Using Tera Term Pro

1.Choose the File menu's Send file command.

2.In the dialog box that appears, make sure that the Binary option in the lower left corner is selected and double-click the file !zero.dat.

3.Wait for the response OK indicating synchronization.

2-3-4. Downloading and Executing

Next repeat the above procedure with the precompiled "Hello world!" program (main.hex) in the work directory--c:\test in our example.

(1)Using HyperTerminal

1.Choose the Transfer menu's Send text file command.

2.In the dialog box that appears, double-click the file main.hex.

3.Wait for the response "Hello World" indicating successful downloading and execution.

4.To terminate communications, close the window and answer "Yes" to the query asking permission to break the link.

5.Answering "Yes" to the query asking whether to save the session saves the current settings under the name first entered or selected above in Section 2.3.2 for reuse next time.

(2)Using Tera Term Pro

1.Choose the File menu's Send file command.

2.In the dialog box that appears, make sure that the Binary option in the lower left corner is selected and double-click the file main.hex.

3.Wait for the response "Hello World" indicating successful downloading and execution.

(3)Compiling, downloading, and executing a program

The above procedures simply download a precompiled program that was ready to run. Now it is time to compile an actual user program. By way of illustration, the following simply modifies

page 2-8

Image 21
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 Connecting Board Running Default ProgramInstalling USB Driver Running Flash Memory ProgramUse 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 Objective System ComponentsHardware 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/2Software 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 5. USB Device Class Specifications Device Class SpecificationsData Rates 4. Maximum Payload SizesStandard Device Requests Device Requests6. Device Request Types 7. Control Transfer Data PacketDevice Descriptor for Bidirectional Printer Device DescriptorsString descriptor Sample Firmware Specifications SetupSample USB Firmware 1. 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 Debugging1. ML60851C Specifications Device Controller SpecificationsUSB Bits and Pieces Overview of ML60851C Operation1. 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