User’s Guide DLL/USB 2 I C Host Adapter with iPort Utility Pack Software www.mcc-us.
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.
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.
Table of Contents Part 1 - iPort DLL/USB I2C Bus Host Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort DLL/USB I2C Bus Host Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort DLL/USB Virtual Communications Port (VCP) . . . . . . . . . . . . . . . . . . . . iPort Utility Pack Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 iPort Message Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Message Center Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the Message Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Selecting the Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select the Communications Port . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Select the Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Establish Adapter Communications Link . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Advanced Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adapter’s Own I2C Slave Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part 1 - iPort DLL/USB I2C Bus Host Adapter Part 1 DLL/USB 2 I C Bus Host Adapter User’s Guide Model: MIIC-201D/U 1
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.
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.
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.
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.
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.
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.
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.
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.
10
Part 2 - iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows V5.
12
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.
1.2 iPort Message Manager The iPort Message Manager operates with all versions of our I2C Bus Host Adapters.
2 System Requirements One of the following MCC I2C Bus adapters: 1. iPort/USB (#MIIC-204) USB to I2C Bus Host Adapter. 2. iPort/AFM (#MIIC-203) RS-232 to I2C Bus Host Adapter with ASCII Fast Mode Interface. 3. iPort/AI (#MIIC-202) RS-232 to I2C Bus Host Adapter with ASCII Interface 4. iPort (#MIIC-201) Windows to I2C Bus Host Adapter. 5. Variable Clock Rate (#MIIC-201-V) I2C Bus Host Adapter. 6. iPort DLL/USB (#MIIC-201D/U) I2C Bus Host Adapter. Windows 95 OS or higher.
4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receive activities for all MCC I2C Bus host adapters. With this program you can create, save, and execute scripts of I2C Master messages. Main Application The iPort Message Center allows a PC to become an I2C Master transmitter or receiving device, sending I2C messages between the PC and one or more I2C devices across an I2C Bus.
4.1 Message Center Operations Communicating with another device on the I2C Bus is easy. Just install the software as described in Section 3, then follow these simple steps: 4.1.1 Starting the Message Center Click, Start *Programs *iPort Utility Pack*iPort Message Center 4.1.2 Selecting the Adapter Select the I2C adapter you are using by clicking the corresponding adapter image (see Opening Screen), or the Device Select checkbox (see Main Application Screen).
4.1.3 Select the Communications Port Use the “ComPort:” control to select the communication port connected to the I2C adapter. If an iPort/USB or iPort DLL/USB is selected, the serial number for the adapter is displayed (Win 2000, XP+ only). In addition to legacy RS-232 ports and Virtual Communication Ports, Message Center supports USB and network connected local or remote RS-232 ports via the Windows Com driver. 4.1.
Use the I2C Message Editor to: 1. Set I2C Address. The I2C Address is the I2C slave address of the slave device being addressed on the bus. All slave addresses are displayed as even numbers (00...FE), representing the 7 most significant bits of the 8-bit slave address transmitted on the bus (aaaa aaa0). The I2C adapter automatically supplies the 8th, least significant, Read/Write bit when it sends the slave address across the bus.
across the bus begins with a Start Condition, in this case a Repeated Start. An I2C Bus master, that successfully sends a message on the bus, owns the bus until that master sends a message with a terminating Stop Condition. The Repeated Start operation allows the bus master to retain control of the bus while sending one or more messages on the bus. This prevents other bus masters, in a multi-master system, from accessing the bus and interfering with message sequences.
4.1.7 Inserting and Deleting Messages You can insert a new message between existing messages by clicking once on a message below where you want to insert, then press the “Insert” key on your keyboard. The Message Editor also remembers the last message displayed, so double clicking on a blank spreadsheet row will allow you to copy a message. Delete a message by single clicking on the message row and pressing the “Delete” key on your keyboard. 4.1.
4.1.11 Slave Not Acknowledging If you get a “Slave Not Acknowledging” message in the Status window, this could indicate you have the wrong address in the I2C Destination Address, or the device is not answering to its address. Some slave devices temporarily stop acknowledging their address. Consult the slave device’s data sheet for details.
4.2 Command Line Arguments The Message Center can be controlled via command line arguments. This feature allows the Message Center to be accessed from a batch file or another program. Message Center Command Line Arguments Command Description iPort, iPort/AI, iPort/AFM, Variable, iPort/USB, iPortDLL/USB Specify I2C adapter type.* COM1...COM20 Specify RS-232 communication port. BAUD19200, BAUD57600, BAUD115200 Set RS-232 Baud Rate.* CLOCK12.
4.2.1 Set Adapter Type iPort/USB iPort/AFM iPort/AI iPort Variable iPortDLL/USB iPort/USB (#MIIC-204) iPort/AFM (#MIIC-203) iPort/AI (#MIIC-202) iPort (#MIIC-201) Variable Clock (#MIIC-201-V) iPort DLL/USB (#MIIC-201D/U) The Adapter Type argument should be the first argument in the argument list as it controls the availability of other arguments. If the Adapter Type is not specified, the startup adapter selection screen will be presented. 4.2.2 Set RS-232 Communication Port 1st Available ComPort COM1...
within the specified range. The Message Center will adjust the specified rate to the nearest available supported rate. 4.2.5 Enable /INT Signal Monitor Monitor/INT (on INT supported adapters only. Default=OFF) Enable /INT signal monitoring. 4.2.6 Stop On Busy StopOnBusy (Default=OFF) Stop sending I2C messages if the adapter returns a "Busy" response to the host computer. 4.2.
4.2.10 Beep On Arbitration Loss BeepOnArbLoss (Default=OFF) Generate a host computer beep if the adapter returns a "Bus Arbitration Loss" response to the host computer. Bus Arbitration Loss occurs when another I2C Bus master wins arbitration while the adapter is attempting to become a bus master. 4.2.11 Beep On Slave Negative Acknowledgment BeepOnNak (Default=OFF) Generate a host computer beep if the adapter returns a "Slave Not Acknowledging" response to the host computer.
4.2.14 Saved I2C Message List File AutoSave=filename AutoSave="file name" Automatically save message list to the specified file upon executing AutoExit. Use to save message data read from a slave transmitter device. 4.2.15 Auto Open AutoOpen Auto Open Link to I2C Adapter Open link to the adapter. 4.2.16 Auto Send AutoSend Auto Send I2C Message List Send I2C messages loaded with the AutoLoad command. 4.2.17 Auto Exit AutoExit Auto exit after sending the message list.
5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receive activities for all MCC I2C Bus host adapters, allowing a PC 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. Main Application The Message Manager is designed to be a simple application for experimenting with I2C messages. Message Manager provides methods to: 1.
5.1 Message Manager Operations Communicating with another device on the I2C Bus is easy. Just install the software as described in Section 3, then follow these simple steps: 5.1.1 Starting the Message Manager Click, Start *Programs *iPort Utility Pack*iPort Message Manager 5.1.2 Select the Adapter Select the I2C adapter you are using by clicking the corresponding adapter image (see Opening Screen), or the Device Select checkbox (see Main Screen).
5.1.3 Establish Adapter Communications Link On the main screen, click the Open button to view the Set Up Screen. Three levels of setup options are available, Basic, Advanced, and Diagnostic. Only Basic setup is required. Basic Set Up Screen 5.1.3.1 Basic Setup Use the “ComPort” control to select the communication port connected to the I2C adapter. If an iPort/USB or iPort DLL/USB is selected, the serial number for the selected adapter is displayed (Win 2000, XP+ only).
Advanced Set Up Screen 5.1.3.2 Advanced Setup On the Advanced Setup screen you can set the following parameters: Adapter’s Own I2C Slave Address Select the I2C adapter’s own slave address. The adapter will acknowledge messages sent to this slave address. The default address is 0x6E. General Call Enable General Call Enable allows the I2C adapter to respond as a slave receiver to the I2C General Call Address (0x00). General Call is used by a master to broadcast an I2C message to multiple devices.
Diagnostic Set Up Screen 5.1.3.3 Diagnostic Setup (on supported adapters) On the Diagnostic Set-up screen you can set the following parameters: Log File Level A log file is available for troubleshooting communication problems between the host computer and the I2C adapter. The log file is an ASCII text file viewable with any text editor. Select logging level. Level 1 provides minimum information. Level 4 provides maximum information. Log File Name Specify a log file name.
5.1.4 Sending I2C Messages 5.1.4.1 Master Operations 5.1.4.1.1 Specifying the Destination Address The Destination Address is the I2C slave address of the slave device being addressed on the bus. All slave addresses are displayed as even numbers (00...FE), representing the 7 most significant bits of the 8-bit slave address transmitted on the bus (aaaa aaa0). The I2C adapter automatically supplies the 8th, least significant, Read/Write bit when it sends the slave address across the bus.
5.1.4.1.3 Auto Repeat The situation often arises, where you would like to automatically repeat a master message operation. The Message Manager supports auto-repeat with the Auto Repeat checkbox. You can automatically repeat a master operation by checking the Auto Repeat control before clicking the Master Tx, Master Rx, or Master TxRx buttons. The master operation repeats until the Auto Repeat control is unchecked. 5.1.4.1.
Click OK to accept the data. Sending Master Transmit Messages Click the Master Tx button to write the specified Master Tx Data Bytes to the selected destination slave device. If Auto Repeat is checked, the message will automatically repeat upon completion. The Communications Events window on the main screen should report “Master Tx Complete.” If this message does not appear, check the slave device address, connections, and power.
Negative Acknowledge Last Byte On supported adapters, the doNak checkbox gives you the option to acknowledge, or negatively acknowledge, the last byte read from a slave device. Some Slave Transmitter Devices require a negative acknowledgment on the final byte read from the slave device. I2C adapters not supporting this option automatically negatively acknowledge the last byte read. 5.1.4.1.
6 Uninstalling Software Components Software components include the iPort Utility Pack for Windows, and, for iPort/USB and iPort DLL/USB users, the Virtual Communications Port (VCP) Device Driver. The following instructions can be used to remove either or both software components from your computer. 6.1 Uninstalling iPort Utility Pack for Windows The iPort Utility Pack for Windows software is installed from the iPort Utility Pack for Windows CD.
38
iPort DLL/USB Revision Report This section defines revisions and changes made to the iPort DLL/USB interface: Revision: 1.00 1 Initial Release Additional Information For additional information on the I2C Bus, please refer to the following: “What is I2C?” www.mcc-us.com/I2CBusTechnicalOverview.pdf “Frequently Asked Questions (FAQ)” www.mcc-us.com/faq.htm "The I2C and How to Use It" www.mcc-us.com/i2chowto.htm "80C51-Based 8-Bit Microcontroller" Data Handbook. Philips Semiconductors, Tel.
Appendix A - I2C Connector Information Interface Connector and Plug Information MCC uses two (2) different connectors and plug assemblies. We have found these parts to be compatible. I2C Receptacle Connectors Molex SEMCONN ACCESS.bus Receptacle Connector Molex Part # 15-83-0064 AMP SDL (Shielded Data Link) Connectors for ACCESS.bus AMP Part # 4-943197-1 I2C Plug Connectors Molex SEMCONN ACCESS.bus Plug Molex Part # 15-83-1564 AMP SDL (Shielded Data Link) Plug for ACCESS.
Declaration of Conformity This Declaration of Conformity is issued by the indicated company which is solely responsible for the declared compliance.