MCC IPort MIIC-201D/U User manual

User’s Guide
DLL/USB
I2C Host Adapter
with iPort Utility Pack Software
www.mcc-us.com

Introduction
The MCC iPort™ DLL/USB to I2C Host Adapter (#MIIC-201D/U) allows any
Windows 98se, 2000, XP, or higher PC, with a free USB port or self-powered USB
hub, to become an I2C Master or Slave device, transmitting or receiving I2C
messages between the PC and one or more I2C devices across an I2C Bus.
This user’s guide describes the installation and operation of the iPort DLL/USB I2C
Bus host adapter and the iPort Utility Pack Software for Windows.
Are you new to I2C? Want to know more? We suggest you review “What is I2C?” at
www.mcc-us.com/I2CBusTechnicalOverview.pdf.
MCC products use Philips components and are licensed to use the I²C Bus.
“Purchase of Philips I²C components conveys a license under the Philips’ I²C patent
to use the components of the I²C system, provided the system conforms to the I²C
specifications defined by Philips.”
I²C is a trademark of Philips Corporation.
09-JAN-07

Copyright© 2006 by Micro Computer Control Corporation. All rights are reserved.
No part of this publication may be reproduced by any means without the prior
written permission of Micro Computer Control Corporation, PO Box 275,
Hopewell, New Jersey 08525 USA.
DISCLAIMER: Micro Computer Control Corporation makes no representations or
warranties with respect to the contents hereof and specifically disclaims any implied
warranties of merchantability or fitness for any particular purpose. Further, Micro
Computer Control Corporation reserves the right to revise the product described in
this publication and to make changes from time to time in the content hereof
without the obligation to notify any person of such revisions or changes.
WARNING - Life Support Applications: MCC products are not designed for use
in life support appliances, devices, or systems where the malfunction of the product
can reasonably be expected to result in a personal injury.
WARNING - Radio Frequency Emissions: This equipment can radiate levels of
radio frequency energy that may cause interference to communications equipment.
Operation of this equipment may cause interference with radio, television, or other
communications equipment. The user is responsible for correcting such interference
at the expense of the user.
WARNING - Electrostatic Discharge (ESD) Precautions: Any damage caused by
Electrostatic Discharge (ESD) through inadequate earth grounding is NOT covered
under the warranty of this product. See the “Electrostatic (ESD) Precautions”
section of this guide for more information.
Printed in the United States of America

Table of Contents
Part 1 - iPort DLL/USB I2C Bus Host Adapter ..........................1
1 Overview .......................................................2
iPort DLL/USB I2CBusHostAdapter ................................2
iPortDLL/USBVirtualCommunicationsPort(VCP) ....................2
iPort Utility Pack Software .........................................3
iPort Software Development Kit for Windows ..........................3
PackingSlip.....................................................3
SystemRequirements .............................................3
2 Interconnects ....................................................3
USBConnector ..................................................4
VirtualCommunicationsPort(VCP) ...............................4
+5VDCPowerJack ...............................................4
I2C Interface Connector ............................................4
3 HardwareConfiguration ...........................................6
Pull-upResistors .................................................6
Connectingtoa3.3VoltTargetSystem ...............................6
ConnectingtoanSMBusTargetSystem...............................6
4 ESD (Electrostatic Discharge) Precautions .............................7
Host Computer Grounding .........................................7
Grounding Solutions ..............................................8
5 HardwareSet-Up.................................................8
Part 2 - iPort Utility Pack for Windows ...............................11
1 iPort Utility Pack for Windows .....................................13
iPortMessageCenter.............................................13
iPortMessageManager ...........................................14
2 SystemRequirements ............................................15
3 iPort Utility Pack Installation ......................................15
InstallingfromCD...............................................15
InstallingfromtheWeb...........................................15

4 iPortMessageCenter ............................................16
MessageCenterOperations........................................17
StartingtheMessageCenter .....................................17
SelectingtheAdapter ..........................................17
SelecttheCommunicationsPort ..................................18
OptionsMenu ................................................18
EstablishAdapterCommunicationsLink ...........................18
Entering or Editing I2CMessages .................................18
Set I2CAddress ...............................................19
SetMessageRead/WriteDirection ................................19
SpecifyRepeatedStartMessages .................................19
SetTimeDelay ...............................................20
Specify Write Data or Read Byte Count ............................20
InsertingandDeletingMessages..................................21
SavingorLoadingMessageLists .................................21
SendtheMessageList..........................................21
SpecialEventHandling.........................................21
Slave Not Acknowledging ......................................22
CommandLineArguments ........................................23
SetAdapterType..............................................24
Set RS-232 Communication Port .................................24
Set RS-232 Baud Rate ..........................................24
Set I2CBusClockRate .........................................24
Enable/INTSignalMonitor .....................................25
StopOnBusy ................................................25
StopOnArbitrationLoss .......................................25
Stop On Slave Negative Acknowledgment ..........................25
BeepOnBusy ................................................25
BeepOnArbitrationLoss .......................................26
Beep On Slave Negative Acknowledgment .........................26
BeepOn/INTAssert...........................................26
Load I2CMessageListFile......................................26
Saved I2CMessageListFile .....................................27
AutoOpen...................................................27
AutoSend ...................................................27
AutoExit....................................................27
5 iPort MessageManager ..........................................28
MessageManagerOperations ......................................29
StartingtheMessageManager ...................................29

SelecttheAdapter .............................................29
EstablishAdapterCommunicationsLink ...........................30
BasicSetup ..................................................30
AdvancedSetup ..............................................31
Adapter’s Own I2CSlaveAddress ..............................31
GeneralCallEnable .........................................31
I2CBusMasterBitRate ......................................31
I2CBusTime-Out...........................................31
EnableINTSignalMonitor ...................................31
Diagnostic Setup ..............................................32
LogFileLevel .............................................32
LogFileName .............................................32
LogFileSize...............................................32
Sending I2CMessages..........................................33
MasterOperations.............................................33
SpecifyingtheDestinationAddress ...............................33
RepeatedStartMessages........................................33
AutoRepeat..................................................34
Master Transmitting Data .......................................34
SpecifyingMasterTxMessageBytes ...........................34
Sending Master Transmit Messages .............................35
Master Receive Data ...........................................35
SpecifyingDatatoRead......................................35
Negative Acknowledge Last Byte ..............................36
Master Transmit and Receive ....................................36
SlaveOperations ..............................................36
Slave Transmit Data ...........................................36
Slave Receive Data ............................................36
6 Uninstalling Software Components ..................................37
Uninstalling iPort Utility Pack for Windows ...........................37
UninstallingiPortDLL/USBVCPDeviceDriver.......................37
iPort DLL/USB Revision Report ....................................39
Additional Information ............................................39
Appendix A - I2C Connector Information .............................40

1
Part 1 - iPort DLL/USB I2C Bus Host Adapter
Part 1
DLL/USB
I2C Bus Host Adapter
User’s Guide
Model: MIIC-201D/U

2
1 Overview
The MCC iPort DLL/USB I2C Bus Host Adapter (#MIIC-201D/U) allows any
Windows 98se, 2000, XP, or higher PC with a free USB port or self-powered USB
hub, to become an I2C Master or Slave device, transmitting or receiving I2C
messages between the PC and one or more I2C devices across an I2C Bus.
iPort DLL/USB Product Features:
• Compatible with existing iPort (#MIIC-201) applications.Upgrade existing iPort
applications from RS-232 to USB. No software changes required.
• Windows DLL Application Program Interface (API).
• Compatible with Windows 98se, 2000, XP, or higher based PC.
• Compatible with USB 2.0 Specifications.
• Supports I2C Bus Master and Slave, Transmit and Receive operations.
• User Selectable Master I2C bit rates of 12.5 KHz and 100 KHz.
• Compatible with 3.3V to 5V I2C Bus voltages.
• Includes switch-enabled internal I2C Pull-Up resistors.
• Includes our free I2C Message Center and Message Manager Windows
Applications. Get on the I2C Bus in Seconds.
• Includes our easy to use Virtual Communications Port (VCP) driver.
The I2C adapter system consists of the following components:
1.1 iPort DLL/USB I2C Bus Host Adapter
The iPort DLL/USB adapter is a bus-powered USB device that plugs into a host
computer’s USB port or self-powered USB hub and generates I2C Bus signals.
1.2 iPort DLL/USB Virtual Communications Port (VCP)
The iPort DLL/USB Virtual Communications Port (VCP) driver creates a virtual
serial port within the iPort DLL/USB device. To a Windows software application,
the VCP looks just like a legacy serial communications port, allowing standard
iPort DLL programming methods to work unchanged. No special USB
programming is required. The iPort DLL/USB VCP is available to the host
computer whenever the iPort DLL/USB is attached to the host computer.

3
1.3 iPort Utility Pack Software
This free software package includes the iPort Message Center and Message
Manager applications to help you easily send and receive I2C Bus messages.
1.4 iPort Software Development Kit for Windows
This optional software package includes:
• iPort DLL (Dynamic Linked Library) for Windows
• Programmer’s Guide
• Sample Application Programs
This iPort Software Development Kit for Windows is only needed if you are
developing a custom Windows software application for the iPort DLL/USB. Find
additional sample programs and complete projects on our web site’s Sample
Program page.
1.5 Packing Slip
This package includes the following items:
• iPort DLL/USB I2C Bus Host Adapter (#MIIC-201D/U).
• USB Interface Cable.
•I
2C Clip-Lead Cable.
•I
2C Interface Cable.
• iPort DLL/USB User’s Guide (this document).
• iPort Utility Pack for Windows CD.
• Global Power Supply (Optional supplement power for target system).
1.6 System Requirements
a. A host computer with one free USB port or self-powered USB hub.
b. Windows 98se, 2000, XP or higher.
2 Interconnects
The iPort DLL/USB includes three interconnections:

4
2.1 USB Connector
The USB connector provides connection from the I2C adapter to a USB port on the
host computer or self-powered USB hub. The iPort DLL/USB operates as a
bus-powered USB device, with limited target system power. Additional target
system power can be provided via an included external power supply.
2.1.1 Virtual Communications Port (VCP)
The iPort DLL/USB provides a Virtual Communications Port (VCP) interface via a
host computer driver. Application programs running on the host computer
communicate with the iPort DLL/USB via the standard iPort DLL.
2.2 +5VDC Power Jack
The iPort DLL/USB is a bus-powered USB device. When deriving power from the
Universal Serial Bus only, a limited amount of power is available to a target system
via +5V wire in the I2C Interface Connector. Additional power for a target system
can be provided via the +5VDC Power Jack. When connected to the +5VDC Power
Jack, an external power supply will remove all target system power load from the
USB and replace it with power from the external power supply. See the “Hardware
Setup” section for additional details.
2.3 I2C Interface Connector
The I2C adapter includes a four wire, positive locking, modular receptacle connector
(see Appendix A) for interfacing to an external I2C Bus. Lines provided include I2C
Clock (SCL), I2C Data (SDA), Ground, and +5V.
Minimum wiring for I2C communications include I2C Clock, Data, and Ground.

5
Use of the +5V wire in the I2C Interface connector is optional. Connect this wire to
the target system to power the target system from either:
1 USB derived power. Maximum available target system power is 100 ma at
+5V.
2 A +5VDC Power Jack connected external +5V regulated power supply.
Maximum available target system power is 250 ma at +5V.
Receptacle Connector
An I2C Clip-Lead cable is provided to connect the I2C adapter to a target system.
Each clip-lead is clearly marked (C=SCL, V=+5VDC, D=SDA, G=Ground).
An I2C Interface Cable (White=SCL, Red=+5VDC, Green=SDA, Black=Ground) is
also provided to connect the I2C adapter to an external I2C Bus. Since there is no
standard I2C Bus connector, you may want to cut off one end of the cable and add a
connector compatible with your target system. Additional I2C Interface Cables (4
ft., 8 ft., or 16 ft.), and modular connectors are available from MCC. Additional
Clip-Lead cables are also available. (see Appendix A)

6
3 Hardware Configuration
3.1 Pull-up Resistors
I2C Bus systems are based on open-collector technology requiring pull-up devices
on each signal wire. These pull-up devices usually take the form of pull-up resistors
connected to bus power.
The I2C adapter includes a slide switch used to enable or disable internal +5VDC
I2C Bus 1.8K ohm pull-up resistors attached to the SCL, SDA, and /INT lines.
Every I2C Bus system must have at least one pull-up on the signal lines. Use this
switch to configure the pull-up resistors for your system.
3.2 Connecting to a 3.3 Volt Target System
If you are connecting the I2C adapter to a 3.3 volt target system, you should follow
these steps BEFORE applying power:
• Shut off the I2C adapter’s internal pull-ups (See Pull-up Resistor section). Use
external pull-ups to the target system’s 3.3V power. These pull-ups may already
be present in the target system.
• Disconnect the I2C connector +5V wire from the target system. The I2C adapter
will be powered from its own +5V power supply, and the target system will be
powered by its own 3.3V power supply.
The I2C adapter is a 5-volt device. Any signal above 3.3V on the SCL, SDA, and
/INT lines is high enough for the adapter to see a Logical 1.
3.3 Connecting to an SMBus Target System
If you are connecting the I2C adapter to a SMBus target system, you should follow
these steps BEFORE applying power:
• Shut off the I2C adapter’s internal pull-ups (See Pull-up Resistor section).
• Use external SMBus rated (appoximately15k ohms) pull-up resistors. These
pull-ups may already be present in the target system.
• Visit our I2C versus SMBus FAQ page (www.mcc-us.com/I2CSMBusFAQ.htm).
• See the SMBus Specification for additional details.
Special Note for SMBus Users: MCC’s I2C adapters are designed to be I2C Bus

7
compatible, not SMBus compatible. Some features of the SMBus protocol not
supported include time-outs, device reset, and Packet Error Check byte processing.
The non-supported SMBus features may, or may not, permit the use of the I2C
adapter in your SMBus application. Consult the MCC FAQ web page and SMBus
Specification for details.
4 ESD (Electrostatic Discharge) Precautions
Electrostatic discharge is defined as the transfer of charge between bodies at
different electrical potentials. Electrostatic discharge can change the electrical
characteristics of a semiconductor device, degrading or destroying it. Electrostatic
discharge also may upset the normal operation of an electronic system, causing
equipment malfunction or failure.
When connecting the I2C adapter to a host computer and a target system, extreme
care must be taken to avoid electrostatic discharge. Failure to follow ESD protection
procedures when using the I2C adapter could damage the host computer, I2C
adapter, or the target system, and void product warranty coverage.
4.1 Host Computer Grounding
Case 1 - Desktop and Single-board Computers. The chassis on a desktop or
single-board host computer must be connected to earth ground to comply with
safety regulations. If the computer chassis is NOT connected to earth ground for
some reason (i.e., use of a two-prong power mains plug), the host computer power
supply ground will float to some unknown voltage potential.
Case 2 - Laptop Computers. Laptop computers present special ESD problems. Most
laptop computers use an external double-insulated mains power supply which is
NOT connected to the mains earth ground. This means that the laptop chassis is
floating at some unknown voltage potential.
In either case, upon connection to the I2C adapter and the target system, the host
computer will discharge energy through its serial port to the I2C adapter, and on to
the target system. This discharge could damage the host computer, I2C adapter, and
the target system.

8
4.2 Grounding Solutions
To avoid damage to the host computer, I2C adapter, or target system, follow these
instructions:
• Wear an earth grounded wrist strap, or discharge any static charge build-up,
when handling the I2C adapter or any target system devices.
• Ensure that both the host computer and target system are connected to a common
earth ground point.
• Make sure that all interconnections are made BEFORE applying power to the
host computer, I2C adapter, and target system.
• If you are using a laptop computer or host computer that is NOT connected to
mains earth ground, make a hard-wired connection from the host computer (i.e.,
port connector shell) and the target system ground connector to a common earth
ground point.
• Avoid plugging and unplugging system components while the host computer or
target system is powered.
• Ensure that any devices connected to the target system are properly grounded to
the common earth ground point.
• If unsure how to properly ground system components, seek electrical expert help.
WARNING: Any damage caused by Electrostatic Discharge (ESD) through
inadequate earth grounding is NOT covered under the warranty of this product.
5 Hardware Set-Up
This section provides information on connecting the I2C adapter to your host
computer and I2C Bus target system.
1. Attach the iPort DLL/USB adapter to a free USB port on your host computer
or self-powered USB hub. If this is the first time the iPort DLL/USB is
connected to the host computer, the Windows Hardware Wizard will appear.
Follow the on-screen directions. The required driver files can be found in the
root-directory of the iPort Utility Pack for Windows CD, and after iPort
Utility Pack software installation, in the installed iPortDLLUSB Driver folder.
NOTE: The Hardware Wizard may run multiple times to install the iPort
DLL/USB VCP driver, and the iPort DLL/USB device. If the Hardware
Wizard warns that the driver files is not certified, press continue.

9
The Windows Hardware Wizard will assign the iPort DLL/USB to a new
communications port number. You can find the ComPort number of the iPort
DLL/USB by running our Message Center or Message Manager software, and
selecting the iPort DLL/USB device. You can also find the ComPort number
by expanding the Ports Icon in the Windows Control Panel | System | Device
Manager application.
At this time you can install the iPort Utility Pack software. See the installation
instructions in “Part 2 - iPort Utility Pack for Windows” of this User’s Guide.
2. Connect the I2C Bus cable to the I2C adapter and your I2C device. You can
make this connection with the included I2C Clip-Lead cable or I2C Interface
Cable.
The I2C interconnect includes a +5V wire. You may not need to, or want to,
connect the +5V wire to your target system. Refer to the “+5VDC Power
Jack” and “Hardware Configuration” sections for details on pull-up resistors
and connecting the optional +5V wire.
3. Optionally connect the external power supply to the power jack. I2C adapter
power is derived from the USB, with a limited amount of power available to
the target system via the I2C connector. Use of the external power supply
provides additional power to the target system via the I2C connector. See
“+5VDC Power Jack” section for additional details.
If you have any questions on I2C adapter setup and configuration, please contact our
technical support department via our web site.

10

11
Part 2 - iPort Utility Pack for Windows
Part 2
iPort Utility Pack
for
Windows
V5.4

12

13
1 iPort Utility Pack for Windows
The iPort Utility Pack for Windows is your express lane to I2C Bus
communications. The Utility Pack includes two (2) Windows-based applications
(Message Center and Message Manager) that will help you get started sending and
receiving I2C Bus messages quickly and easily.
1.1 iPort Message Center
The iPort Message Center, our most popular application, operates with all versions
of our I2C Bus Host Adapters. With the Message Center, you can create, save, and
automatically execute scripts of I2C Bus messages. I2C Bus message activity
includes:
• Master Transmit
• Master Receive

14
1.2 iPort Message Manager
The iPort Message Manager operates with all versions of our I2C Bus Host
Adapters. Using the Message Manager, you can perform all four (4) modes of I2C
Bus message activity, including:
• Master Transmit
• Master Receive
• Slave Transmit
• Slave Receive
Table of contents
Other MCC Host Adapter manuals