Oki JOB60851 user manual Special USB Considerations, Microcontroller with 16- or 32-Bit Bus

Page 54

Chapter 4 Software Development

Figure 4.3.2 shows sample connections to a microcontroller with a 16- or 32-bit bus.

Register must be 8 bits wide. Only DMA uses 16-bit bus. Registers must be aligned at word boundaries for 16-bit bus and at double boundaries for 32-bit bus.

ML60851C/D

A7-A0

AD7-AD0

D15-D8

RD/

WR/

CS/

INTR/

DREQ

DACK

ADSEL

16/32 bitMCU

+

A8-A1 DMA

D7-D0

D15-D8

RD/

The 16- bit data

WR/

bus is only

CS/

available when

INT/

8- bit DMA is

 

DREQ

used.

DACK

 

Figure 4.3.2. Microcontroller with 16- or 32-Bit Bus

4-3-4. Special USB Considerations

The following are special points to keep in mind about USB functions.

(1)D+ pull-up resistor

Some systems require software control over the timing with which the USB device connects to the upstream host or hub to provide extra time for initialization and other tasks. The JOB60851 board therefore gives the microcontroller control over the D+ pull-up resistor. For further details, refer to the circuit diagram and the source code for the sample firmware.

(2)Vbus monitor

The JOB60851 board connects the USB power supply (Vbus) line to the microcontroller's analog-to-digital converter. This arrangement makes it possible for the firmware to measure the voltage and thus monitor the connection to an upstream host or hub for disconnected USB cables or removal of power to the host personal computer or intervening hubs. For further details, refer to the circuit diagram.

(3)Bus-powered operation

Moving both the J3 and J15 jumpers from their default 1-2 positions to their 1-3 positions configures the JOB60851 board to take its power from the bus, eliminating the need for the power adapter. We do not recommend using this setting, however, because of the board's development role. The board is able to guarantee neither that power consumption, a function of the program under development, is within the limit reported by the firmware nor that the device under development observes the USB requirement of an average suspend current of 500 μA for bus-powered devices. In the worst case scenario, a power consumption exceeding the figure reported by the firmware risks damaging the host or intervening hubs.

The ML60851C is, strictly speaking, not a fully compliant bus-powered device. Although it notifies the firmware when it suspends operation in response to a suspend signal from the bus, it also shuts down its clock signal, rendering it unable to detect a subsequent resume signal from the bus. calling sequence Shutting down the clock signal is, however, the only way to comply

page 4-19

Image 54
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 Use only the specified voltage Do not pile objects on top of the productUse only the cables and other accessories provided Notation Putting Board through Its Paces Setup Configuring JOB60851 BoardPutting Board through its Paces Installing Development Software Installing USB Driver Running Default ProgramConnecting Board Running Flash Memory ProgramUse the -u command line option to view the USB pipe numbers Running User Programs Connecting Serial Cable Loading Terminal EmulatorSynchronizing Link Downloading and ExecutingOverwriting Flash Memory Contents System Specifications System Objective System SpecificationsSystem Components System ComponentsHardware Specification Connectors and SwitchesUse only the AC adapter included with the product System Specifications Circuit Diagram 2. Circuit Diagram 1/2System Specifications Parts List 1. Parts List 1/24. Memory Map for Download Mode Memory Maps5. 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 System Specifications 1. MSM66Q573 Pin Assignments 2/2 P11-3/XTOUTSoftware Development USB Basics Bus Topology, Addresses, and Hot PluggingSoftware Development Specification Documents Core SpecificationsData Flow Types Bus Transactions2. USB Data Flow Types Packets Endpoints3. lists the USB packet types Data Rates Device Class Specifications5. USB Device Class Specifications 4. Maximum Payload Sizes6. Device Request Types Device RequestsStandard Device Requests 7. Control Transfer Data PacketDevice Descriptors Device Descriptor for Bidirectional PrinterString descriptor Sample USB Firmware SetupSample Firmware Specifications 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 Simple Debugging Evaluating USB EquipmentUSB Bits and Pieces Device Controller Specifications1. ML60851C Specifications Overview of ML60851C OperationConnecting Microcontroller to USB Controller 1. ML60851C Block DiagramSpecial USB Considerations 2. Microcontroller with 16- or 32-Bit BusBuilding a Product Vendor and Product IDsOther Tools Necessary Products Limitations Port 7 LED2 Control Port 7 RegistersChanging LED2 Color Sample Port 7 Control Program Standard I/O over Serial Link JOB60851 Board Standard I/OSerial Port 2. Serial Port StructureSerial port SIO0 Chapter Internal timer 9 and following Read and write Functions 3. read Operation4. write Operation Sample Program Using Standard Output Standard I/O ExamplesSample Program Using Standard Input Debugging with Standard I/O