User’s GuideUSB to I2C Host AdapterASCII Fast Modewith iPort Utility Pack Softwarewww.mcc-us.com
1Part 1 - iPort/USB USB to I2C Bus Host AdapterPart 1USB to I2C BusHost AdapterwithASCII Fast ModeUser’s GuideModel: MIIC-204
21 OverviewThe MCC iPort/USB USB to I2C Bus Host Adapter with ASCII Fast Mode(#MIIC-204) allows any Windows 2000, XP, Vista, or 7 PC with a free USB p
3standard serial communication programming methods to work unchanged. Nospecial USB programming is required. The iPort/USB VCP is available to the hos
42.1 USB ConnectorThe USB connector provides connection from the I2C adapter to a USB port on thehost computer or self-powered USB hub. The iPort/USB
5supply. See the “Hardware Setup” section for additional details.2.3 I2C Interface ConnectorThe I2C adapter includes a four wire, positive locking, mo
6standard I2C Bus connector, you may want to cut off one end of the cable and add aconnector compatible with your target system. Additional I2C Interf
7If you are connecting the I2C adapter to a 3.3 volt target system, you should followthese steps BEFORE applying power:• Shut off the iPort/USB intern
8care must be taken to avoid electrostatic discharge. Failure to follow ESD protectionprocedures when using the I2C adapter could damage the host comp
9the common earth ground point.• If unsure how to properly ground system components, seek electrical expert help.WARNING: Any damage caused by Electro
10(Start | Settings | Control Panel | System | Device Manager | Ports (COM &LPT)), or the Driver Uninstall short-cut on the iPort Utility Pack Sta
IntroductionThe MCC iPort/USB™ USB to I2C Host Adapter with ASCII Fast Mode(#MIIC-204) allows any Windows 2000, XP, Vista(x86/x64), or 7(x86/x64) PC,w
11provides additional power to the target system via the I2C connector. See“+5VDC Power Jack” section for additional details.If you have any questions
12
13Part 2 - iPort Utility Pack for WindowsPart 2iPort Utility PackforWindows
14
15Main Screen (Typical)1 iPort Utility Pack for WindowsThe iPort Utility Pack for Windows is your express lane to I2C Buscommunications. The Utility P
16Main Screen (Typical)1.2 iPort Message ManagerThe iPort Message Manager operates with all versions of our I2C Bus HostAdapters. Using the Message Ma
172 System RequirementsOne of the following MCC I2C Bus adapters:1. i2cStick (#MIIC-207) USB to I2C Bus Host Adapter.2. iPort/USB (#MIIC-204) USB to I
18Main Screen (Typical)4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receiveactivities for all MCC I2C Bus h
19Opening Screen (Typical)Main Screen (Typical)4.1 Message Center OperationsCommunicating with another device on the I2C Bus is easy. Just install the
204.1.3 Select the Communications PortUse the “ComPort:” control to select the communication port connected to the I2Cadapter. If a USB-based device i
Copyright© 2011 by Micro Computer Control Corporation. All rights are reserved.No part of this publication may be reproduced by any means without the
21Use the I2C Message Editor to:1. Set I2C Address.The I2C Address is the I2C slave address of the slave device being addressedon the bus. All slave
22across 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 t
234.1.7 Inserting and Deleting MessagesYou can insert a new message between existing messages by clicking once on amessage below where you want to ins
244.1.11 Slave Not AcknowledgingIf you get a “Slave Not Acknowledging” message in the Status window, this couldindicate you have the wrong address in
254.2 Command Line ArgumentsThe Message Center can be controlled via command line arguments. This featureallows the Message Center to be accessed from
264.2.1 Set Adapter Typei2cStick i2cStick (#MIIC-207)iPort/USB iPort/USB (#MIIC-204)iPort/AFM iPort/AFM (#MIIC-203)iPort/AI iPort/AI (#MIIC-202)iPort
27nearest available supported rate.4.2.5 Enable /INT Signal MonitorMonitor/INT (on INT supported adapters only. Default=OFF)Enable /INT signal monitor
284.2.10 Beep On Arbitration LossBeepOnArbLoss (Default=OFF)Generate a host computer beep if the adapter returns a "Bus Arbitration Loss"res
294.2.14 Saved I2C Message List FileAutoSave=filenameAutoSave="file name"Automatically save message list to the specified file upon executin
30Main Screen (Typical)5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receiveactivities for all MCC I2
Table of ContentsPart 1 - iPort/USB USB to I2C Bus Host Adapter ...11 Overview ...
31Opening Screen (Typical)Main Screen (Typical)5.1 Message Manager OperationsCommunicating with another device on the I2C Bus is easy. Just install th
32Basic Set Up Screen5.1.3 Establish Adapter Communications LinkOn the main screen, click the Open button to view the Set Up Screen. Three levelsof se
33Advanced Set Up Screen5.1.3.2 Advanced SetupOn the Advanced Setup screen you can set the following parameters:Adapter’s Own I2C Slave AddressSelect
34Diagnostic Set Up Screen5.1.3.3 Diagnostic Setup (on supported adapters)On the Diagnostic Set-up screen you can set the following parameters:Log Fil
355.1.4 Sending I2C Messages5.1.4.1 Master Operations5.1.4.1.1 Specifying the Destination AddressThe Destination Address is the I2C slave address of t
365.1.4.1.3 Auto RepeatThe situation often arises, where you would like to automatically repeat a mastermessage operation.The Message Manager supports
37Click OK to accept the data.Sending Master Transmit MessagesClick the Master Tx button to write the specified Master Tx Data Bytes to theselected de
38Negative Acknowledge Last ByteOn supported adapters, the doNak checkbox gives you the option to acknowledge,or negatively acknowledge, the last byte
39based adapters, the Virtual Communications Port (VCP) Device Driver. Thefollowing instructions can be used to remove either or both software compone
40
1 iPort Utility Pack for Windows ...15iPort Message Center...15iPort Messa
41Part 3 - iPort/USB Programmer’s ReferencePart 3Programmer’s ReferenceASCII Command InterfaceDefinitions
42Programmer’sQuick StartCreating a custom iPort/USB program is easier if you know what to expect. Followthese steps to manually control the iPort/USB
43iPort/USBASCII Command InterfaceNote: [CR] = Carriage Return Code or Enter Key.Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767]Command De
44 /Stext[CR]Slave Transmit MessageWrite the specified data bytes to a requesting I2C Master Receiver device. /(*)Ttext[CR]Master Transmit MessageMast
45Command: //[CR] 'Status Display Response: iPort/USB I2C Host Adapter w/ASCII Fast Mode Interface Vxx.xx Copyright © xxxx, Micro Computer Contro
46Set the destination I2C Slave Address (Hex 0,2...FE) for all subsequent MasterTransmit or Receive operations. Command: /Dxx[CR] 'Set Destinati
47these control characters are normally automatically stripped out of the data streamby Host communication driver software, and are not visible at the
48Response 1: * 'iPort/USB Ready Response 2: /I89[CR] 'Invalid Command Argument Default Setting: 6EI2C Bus Clock Rate ControlSet the I2C Bus
49/O Open I2C Connection /(*)Rn Master Rx Message *=No Stop /S(text) Slave Tx Message /(*)T(text) Master Tx Message *=No Stop/Un Set I2C Bus Time-o
50Enter Byte Count (Decimal 0...32767) then Press Enter, or ESCape to Cancel. AByte Count of Zero (0) represents a Variable Length message, where the
Load I2C Message List File...28Saved I2C Message List File ...29Auto Open...
51the I2C Bus, the iPort/USB outputs a Slave Transmit Request to its Host device, andinitiates an I2C Clock Stretch (SCL Low) until a Slave Transmit c
52Enter Message Bytes (0 or more Printable ASCII or Hex-equivalent ~00..~FF), thenPress Enter, ESCape to Cancel.Note: The tilde (~) character and the
53Set I2C Bus Time-oUt in msecSet bus time-out in milliseconds.The iPort/USB reports a bus time-out if no inter-byte bus activity for the specifiedtim
54S = Send Start~xx = Send Byte (xx = 00...FF)(response = A or N)R = Read Byte with Ack (response = ~xx)r = Read Byte with Nak (response = ~xx)P = Sen
55Low Level Response: /XCC0000[CR]Master read three bytes from slave address 0x4F. First two bytes are acknowledgedby master.Command: /X S ~4f Rrr P [
56Command: /Y[CR] 'Tx bYte CountResponse: /TBCn[CR] 'n =00000...32767
57Asynchronous Interface Events Asynchronous Events are those iPort/USB interface activities initiated by theiPort/USB I2C Host Adapter in response to
58The received text is a representation of the data bytes within the Slave Receivemessage. The format of this data is controlled by the current settin
59Cause: iPort/USB has detected an error condition on the I2C Bus. The host computershould retry the last command or issue an iPort/USB Reset command.
60host. The host should reissue the correct command.iPort/USB Receive Buffer OverflowPrompt: /I90[CR] ‘iPort/USB Serial Receive Buffer OverflowCause:
Part 3 - iPort/USB Programmer’s Reference ...41Quick Start ...42ASCII Comma
61Example CodeThe following examples are written in MS Visual Basic V3 for Windows using theserial communications control (MSCOMM.VBX). It can be use
62Communication Event ProcessingStatic Sub Comm1_OnComm () Static LineBuf$While Comm1.InBufferCount Msg$ = Comm1.Input ' Get Comm input character
63ElseIf (StrComp(iPortResp$, "/BC0") = 0) Then ' iPort/USB Baud Change 0 {19.2K} TextBox.Text = "iPort/USB Baud Change 0 {19.2K}
64TextBox.Text = "/I83 Arbitration Loss" 'Update DisplayElseIf (StrComp(iPortResp$, "/I84") = 0) Then TextBox.Text = "/I
65iPort/USB Revision ReportThis section defines revisions and changes made to the iPort/USB interface:Revision: 1.001 Initial ReleaseAdditional Inform
66Appendix A - I2C Connector InformationInterface Connector and Plug InformationMCC uses two (2) different connectors and plug assemblies. We have fou
67Declaration of ConformityThis Declaration of Conformity is issued by the indicated company which is solely responsiblefor the declared compliance.Pr
Invalid iPort/USB Command ...59iPort/USB Receive Buffer Overflow ...60Example Code ...
Comentarios a estos manuales